rte_flow_p...plate_attr(3)

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

πŸ’… NAME πŸ’…

okay so bestie, welcome to the rte_flow_p...plate_attr(3) page β€” yes that's literally the title, it's from the Library Functions Manual, and the whole star of the show is rte_flow_pattern_template_attr. it's giving "struct with four bitfields and a lot of feelings." let's get into it 🫢


✨ SYNOPSIS ✨

pull it in like this, no cap:

#include <rte_flow.h>

πŸŽ€ Data Fields πŸŽ€

the whole squad, and yes every single one is a uint32_t bitfield of width 1:

  • uint32_t relaxed_matching:1
  • uint32_t ingress:1
  • uint32_t egress:1
  • uint32_t transfer:1

πŸ”₯ Detailed Description πŸ”₯

⚠️ Warning β€” EXPERIMENTAL: this API may change without prior notice. like, fr fr, it can shift under you. don't get too attached 😭

so what even is this? it's the Flow pattern template attributes β€” the little vibe-check settings that ride along with a pattern template. that's the whole personality.

Definition at line 5690 of file rte_flow.h. πŸ“


🌸 Field Documentation 🌸

πŸ¦‹ uint32_t relaxed_matching

the relaxed matching policy, aka the chill setting. here's how it goes:

  • if it's 1, matching is performed only on items with the mask member set, and matching on protocol layers specified without any masks is skipped.
  • if it's 0, matching on protocol layers specified without any masks is done as well β€” and this is the standard behaviour of Flow API now. iconic default energy πŸ‘‘

Definition at line 5698 of file rte_flow.h. πŸ“

🌈 uint32_t ingress

flow direction for the pattern template, and heads up: at least one direction must be specified (yes, that's a real rule, not a suggestion πŸ’€). this one means the pattern is valid for rules applied to ingress traffic. come on in πŸšͺ

Definition at line 5704 of file rte_flow.h. πŸ“

⭐ uint32_t egress

pattern valid for rules applied to egress traffic. bye bestie, leaving the building πŸ‘‹

Definition at line 5706 of file rte_flow.h. πŸ“

πŸ’œ uint32_t transfer

pattern valid for rules applied to transfer traffic. main character energy, moving between worlds ✨

Definition at line 5708 of file rte_flow.h. πŸ“


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. so nobody hand-wrote this babe, the tooling did it and honestly? it ate. πŸ€–πŸ’–


okay that's the whole page, you ate that read 🌟 β€” this gorgeous specimen is DPDK Version 26.03.0, brought to you by the same rte_flow_p...plate_attr(3) header up top, so go forth and template your patterns, bestie πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from