rte_eth_fdir_masks(3)

πŸ“¦ version 26.03, in nixos 26.05, nixpkgs unstable

πŸ’… 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_mask
  • struct rte_eth_ipv4_flow ipv4_mask
  • struct rte_eth_ipv6_flow ipv6_mask
  • uint16_t src_port_mask
  • uint16_t dst_port_mask
  • uint8_t mac_addr_byte_mask
  • uint32_t tunnel_id_mask
  • uint8_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