rte_eth_ntuple_filter(3)

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

πŸ’… rte_eth_ntuple_filter πŸ’…

okay bestie, welcome to the rte_eth_ntuple_filter(3) page from the DPDK Library Functions Manual β€” this one's a struct, and it's giving "filter config but make it fashion" ✨


🌸 NAME 🌸

rte_eth_ntuple_filter β€” the struct itself, no cap 🫢


✨ SYNOPSIS ✨

#include <rte_eth_ctrl.h>

πŸŽ€ Data Fields πŸŽ€

  • uint16_t flags
  • uint32_t dst_ip
  • uint32_t dst_ip_mask
  • uint32_t src_ip
  • uint32_t src_ip_mask
  • uint16_t dst_port
  • uint16_t dst_port_mask
  • uint16_t src_port
  • uint16_t src_port_mask
  • uint8_t proto
  • uint8_t proto_mask
  • uint8_t tcp_flags
  • uint16_t priority
  • uint16_t queue

πŸ¦‹ Detailed Description πŸ¦‹

So like, this is the structure you use to define a single ntuple filter entry β€” it's the whole data representation situation for RTE_ETH_FILTER_NTUPLE. That's the vibe. πŸ’–

It lives at Definition at line 50 of file rte_eth_ctrl.h β€” go say hi to it.

πŸ’– Field Documentation πŸ’–

grab a snack, we're going field by field, no skipping, iykyk πŸ“

⭐ uint16_t flags

Flags from RTE_NTUPLE_FLAGS_* β€” that's the family of constants, fr fr.

Definition at line 51 of file rte_eth_ctrl.h.

⭐ uint32_t dst_ip

Destination IP address in big endian. bestie, big endian, don't forget it 😭

Definition at line 52 of file rte_eth_ctrl.h.

⭐ uint32_t dst_ip_mask

Mask of destination IP address.

Definition at line 53 of file rte_eth_ctrl.h.

⭐ uint32_t src_ip

Source IP address in big endian. yes, endianness again, it's important πŸ’…

Definition at line 54 of file rte_eth_ctrl.h.

⭐ uint32_t src_ip_mask

Mask of destination IP address.

πŸ’€ okay so lowkey the doc literally says "Mask of destination IP address" right here on the source IP mask field. that's what it says, i'm just the messenger, not me inventing anything πŸ™ˆ

Definition at line 55 of file rte_eth_ctrl.h.

⭐ uint16_t dst_port

Destination port in big endian. (yes. again. big endian era 🌈)

Definition at line 56 of file rte_eth_ctrl.h.

⭐ uint16_t dst_port_mask

Mask of destination port.

Definition at line 57 of file rte_eth_ctrl.h.

⭐ uint16_t src_port

Source Port in big endian.

Definition at line 58 of file rte_eth_ctrl.h.

⭐ uint16_t src_port_mask

Mask of source port.

Definition at line 59 of file rte_eth_ctrl.h.

⭐ uint8_t proto

L4 protocol. that's it, that's the field 🧚

Definition at line 60 of file rte_eth_ctrl.h.

⭐ uint8_t proto_mask

Mask of L4 protocol.

Definition at line 61 of file rte_eth_ctrl.h.

⭐ uint8_t tcp_flags

tcp_flags only meaningful when the proto is TCP β€” like, if it's not TCP, this field is just standing there doing nothing, main character energy wasted 😭. The packet matched above ntuple fields and contain any set bit in tcp_flags will hit this filter. πŸ”₯

Definition at line 65 of file rte_eth_ctrl.h.

⭐ uint16_t priority

seven levels (001b-111b), 111b is highest, used when more than one filter matches. so yeah β€” when multiple filters match, this is the tiebreaker and 111b takes the crown πŸ‘‘

Definition at line 66 of file rte_eth_ctrl.h.

⭐ uint16_t queue

Queue assigned to when match.

Definition at line 68 of file rte_eth_ctrl.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. (so like, don't come for me about the wording, a robot wrote the source text and i just gave it a makeover πŸ’…βœ¨)


k that's the whole page bestie, every field, every mask, every line number, all of it 🫢

🌟 cute sign-off: this was DPDK, Version 26.03.0, on the rte_eth_ntuple_filter(3) page β€” periodt. go configure some filters, you're gonna slay πŸ’œ
πŸ“¦ where this page comes from