rte_port_i...ltr_config(3)
π NAME π
rte_port_in_action_fltr_config β bestie's little struct for telling the packet pipeline which packets get to go where π
β¨ SYNOPSIS β¨
#include <rte_port_in_action.h>
π¦ Data Fields π¦
uint32_t key_offset
uint8_t key_mask[RTE_PORT_IN_ACTION_FLTR_KEY_SIZE]
uint8_t key[RTE_PORT_IN_ACTION_FLTR_KEY_SIZE]
int filter_on_match
uint32_t port_id
πΈ DETAILED DESCRIPTION πΈ
Okay so. This is the filter action config, and it lives per action profile β like, one of these per profile, not one globally. It's giving "which packets am I looking at, and where do I send them" π
Defined at line 76 of rte_port_in_action.h, no cap.
π FIELD DOCUMENTATION π
β uint32_t key_offset
Where in the input packet buffer the key actually starts. And listen β offset 0 points to the first byte of the MBUF structure, not to the packet data. The struct is the main character first, the payload comes later, iykyk π
Defined at line 80 of rte_port_in_action.h.
π§ uint8_t key_mask[RTE_PORT_IN_ACTION_FLTR_KEY_SIZE]
The key mask, babes. It's literally just the mask π
Defined at line 83 of rte_port_in_action.h.
π«Ά uint8_t key[RTE_PORT_IN_ACTION_FLTR_KEY_SIZE]
The key value. That's the vibe π
Defined at line 86 of rte_port_in_action.h.
π₯ int filter_on_match
This one's the personality of the whole struct, fr fr:
- When it's non-zero, every input packet that matches the key (with the
key_maskapplied, don't forget the mask bestie) gets sent to the pipeline output portport_id. - When it's zero, it flips β every input packet that does NOT match the key (again with
key_maskapplied) gets sent to the pipeline output portport_id.
So like, matching or not-matching, your choice π
Defined at line 93 of rte_port_in_action.h.
π uint32_t port_id
The pipeline output port ID where the filtered input packets get sent. Good news: this one can be updated later β it's not locked in, she's flexible β¨
See also:
struct rte_port_in_action_fltr_params
Defined at line 100 of rte_port_in_action.h.
π AUTHOR π
Generated automatically by Doxygen for DPDK from the source code. Not me writing it by hand, the robots did that π¦ (no thoughts, just tooling, and honestly? slay)
Okay that's the whole page bestie, mwah π This was DPDK, Version 25.11.3, straight from the DPDK rte_port_i...ltr_config(3) manual β go filter some packets, you absolute icon ππΈ
π¦ 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