rte_eth_fdir_masks(3)
π rte_eth_fdir_masks(3) π
okay bestie, buckle up, because this one is a struct and structs are lowkey the moment. this is a page from the DPDK library functions manual, and we're about to get real cozy with FDIR masks. it's giving β¨network card internalsβ¨, and honestly? obsessed.
πΈ NAME πΈ
rte_eth_fdir_masks β the struct that holds your FDIR mask config, periodt.
β¨ SYNOPSIS β¨
#include <rte_eth_ctrl.h>
π Data Fields
uint16_t vlan_tci_maskstruct rte_eth_ipv4_flow ipv4_maskstruct rte_eth_ipv6_flow ipv6_maskuint16_t src_port_maskuint16_t dst_port_maskuint8_t mac_addr_byte_maskuint32_t tunnel_id_maskuint8_t tunnel_type_mask
π DESCRIPTION π
so here's the tea. this is a structure used to configure FDIR masks β and those masks are what the device uses to match the various fields of Rx packet headers. the device is the one doing the matching, you're just handing it the vibes. π
the whole thing lives at Definition at line 351 of file rte_eth_ctrl.h. no cap.
π¦ FIELD DOCUMENTATION π¦
uint16_t vlan_tci_mask
Bit mask for vlan_tci in big endian.
Definition at line 352 of file rte_eth_ctrl.h.
struct rte_eth_ipv4_flow ipv4_mask
Bit mask for ipv4 flow in big endian.
Definition at line 354 of file rte_eth_ctrl.h.
struct rte_eth_ipv6_flow ipv6_mask
Bit mask for ipv6 flow in big endian.
Definition at line 356 of file rte_eth_ctrl.h.
uint16_t src_port_mask
Bit mask for L4 source port in big endian.
Definition at line 358 of file rte_eth_ctrl.h.
uint16_t dst_port_mask
Bit mask for L4 destination port in big endian.
Definition at line 360 of file rte_eth_ctrl.h.
uint8_t mac_addr_byte_mask
6 bit mask for proper 6 bytes of Mac address, bit 0 matches the first byte on the wire. π«Ά little bit gets first dibs, that's the rule.
Definition at line 363 of file rte_eth_ctrl.h.
side note bestie: it literally says 6 bit mask, not 8, not 16. type it how it's written, okay? we don't freestyle the docs.
uint32_t tunnel_id_mask
Bit mask for tunnel ID in big endian.
Definition at line 365 of file rte_eth_ctrl.h.
uint8_t tunnel_type_mask
1 - Match tunnel type, 0 - Ignore tunnel type. that's it, that's the whole toggle. binary decision, main character energy. β
Definition at line 366 of file rte_eth_ctrl.h.
π AUTHOR π
Generated automatically by Doxygen for DPDK from the source code. not a human, not a bestie, just a doc generator doing its lil thing. still iconic tho. π€β¨
and that's the whole page, no crumbs left. this little blessing came to you from DPDK, Version 25.11.3, in the rte_eth_fdir_masks(3) era of the library functions manual. go forth and mask responsibly, gorgeous. πππ
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms