rte_eth_fdir_masks(3)
π rte_eth_fdir_masks β the DPDK glow-up page
okay so bestie, this is a page from the DPDK library docs (the Library Functions Manual girlies), and today's main character is rte_eth_fdir_masks. She's a struct. She's iconic. She holds masks. Let's get into it π
β¨ NAME β¨
rte_eth_fdir_masks β the struct you use to tell your device which bits of an incoming Rx packet header actually matter when it's doing FDIR matching π¦
πΈ 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
π Detailed Description π
This is the structure you use to configure FDIR masks, and likeβ¦ the device literally uses these to match the various fields of Rx packet headers. That's the whole gig. She matches. She masks. She slays π
Definition at line 351 of file rte_eth_ctrl.h.
π 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 the L4 source port, in big endian.
Definition at line 358 of file rte_eth_ctrl.h.
π₯ uint16_t dst_port_mask
Bit mask for the L4 destination port, in big endian.
Definition at line 360 of file rte_eth_ctrl.h.
π¦ uint8_t mac_addr_byte_mask
A 6 bit mask for the proper 6 bytes of the Mac address β and listen, bit 0 matches the first byte on the wire. no cap, that's the ordering, don't come for me π
Definition at line 363 of file rte_eth_ctrl.h.
π 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 vibe check β¨
Definition at line 366 of file rte_eth_ctrl.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. Not me, not you, not anybody's fave β Doxygen did that π
lowkey reminder bestie: every one of these fields is doing bit-mask business in big endian unless the docs said otherwise, so mind your byte order before you ship it fr fr π«Ά
mwah, that's the page π This little masterpiece is brought to you by DPDK, Version 26.03.0, and the manual page rte_eth_fdir_masks(3) β go forth and match some headers, queen ππ
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms