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_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

πŸ‘‘ 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