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_mask applied, don't forget the mask bestie) gets sent to the pipeline output port port_id.
  • When it's zero, it flips β€” every input packet that does NOT match the key (again with key_mask applied) gets sent to the pipeline output port port_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