rte_eth_ntuple_filter(3)
π 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 flagsuint32_t dst_ipuint32_t dst_ip_maskuint32_t src_ipuint32_t src_ip_maskuint16_t dst_portuint16_t dst_port_maskuint16_t src_portuint16_t src_port_maskuint8_t protouint8_t proto_maskuint8_t tcp_flagsuint16_t priorityuint16_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
- 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