rte_eth_ntuple_filter(3)
π rte_eth_ntuple_filter(3) π
okay bestie, so this is a page from the Library Functions Manual, and the star of the show is rte_eth_ntuple_filter β a struct, not a function, don't let the name fool you π«Ά. Sit with me, we're gonna go field by field, no skipping, periodt.
β¨ NAME β¨
rte_eth_ntuple_filter β the little struct that says "hey NIC, here's the exact packet shape I want you to catch" π
πΈ 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 π¦
A structure used to define the ntuple filter entry to support RTE_ETH_FILTER_NTUPLE data representation.
She's defined at line 50 of file rte_eth_ctrl.h, and yes she's iconic for it π
π Field Documentation π
π uint16_t flags
Flags from RTE_NTUPLE_FLAGS_* β go peek at those if you wanna know which tricks she can do β¨
Definition at line 51 of file rte_eth_ctrl.h.
π uint32_t dst_ip
Destination IP address in big endian. big endian bestie, don't embarrass yourself π
Definition at line 52 of file rte_eth_ctrl.h.
π uint32_t dst_ip_mask
Mask of destination IP address. that's how you tell her which bits actually matter π
Definition at line 53 of file rte_eth_ctrl.h.
π uint32_t src_ip
Source IP address in big endian. again β big endian, fr fr π
Definition at line 54 of file rte_eth_ctrl.h.
π uint32_t src_ip_mask
Mask of destination IP address.
okay so heads up: the docs literally say "destination IP address" right here on the source mask field. that's what the page says, so that's what I'm telling you. not my business to fix it, i just report π
Definition at line 55 of file rte_eth_ctrl.h.
π uint16_t dst_port
Destination port in big endian. yep. big endian. always π
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. (capital P in "Port" up there, i'm being faithful, don't come for me π)
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. keep it short, keep it sweet π
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. The packet matched above ntuple fields and contain any set bit in tcp_flags will hit this filter.
so basically: TCP-only vibe, and if the packet matches all the ntuple fields above and has any of the bits you set in tcp_flags lit up β she hits the 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. seven whole levels of main character energy, and 111b is that girl π
Definition at line 66 of file rte_eth_ctrl.h.
π uint16_t queue
Queue assigned to when match. where the packet gets to go when she's caught π«Ά
Definition at line 68 of file rte_eth_ctrl.h.
π Author π
Generated automatically by Doxygen for DPDK from the source code. bless the machines, they did the typing so we didn't have to πβ¨
that's the whole page bestie, nothing skipped, every field accounted for π
this was brought to you by DPDK, Version 25.11.3, and it's the rte_eth_ntuple_filter(3) page itself β mwah, take care of her πΈπ§π
π¦ 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