rte_flow_item_flex(3)

πŸ’– rte_flow_item_flex β€” the vibe check πŸ’–

okay bestie, sit DOWN, because this one is from rte_flow_item_flex(3) in the Library Functions Manual and it's lowkey iconic. it's a struct, it's giving bitfield realness, and yes we're gonna go through every single field. no skipping. periodt. 🌸


✨ SYNOPSIS ✨

#include <rte_flow.h>

πŸŽ€ Data Fields

  • struct rte_flow_item_flex_handle *handle
  • uint32_t length
  • const uint8_t *pattern

πŸ¦‹ Detailed Description πŸ¦‹

⚠️ Warning: EXPERIMENTAL β€” this structure may change without prior notice. not me emotionally preparing you for that 😭 she's experimental, she's evolving, she does NOT owe you stability.

RTE_FLOW_ITEM_TYPE_FLEX

so what does she actually do? she matches a specified set of fields within the network protocol header. each field is presented as set of bits with specified width, and bit offset from the header beginning. literally just "here are some bits, here's how wide they are, here's where they start" and she's obsessed with it πŸ’…

the pattern is concatenation of bit fields configured at item creation by rte_flow_flex_item_create(). at configuration the fields are presented by sample_data array. iykyk.

and the important one, no cap: this type does not support ranges (struct rte_flow_item.last). so don't come for her with a .last, she will not be engaging πŸ™ˆ

Definition at line 2150 of file rte_flow.h.


πŸ‘‘ Field Documentation πŸ‘‘

🌈 struct rte_flow_item_flex_handle* handle

Opaque item handle. that's it, that's the whole personality β€” she's opaque, you don't get to look inside, respect her privacy bestie.

Definition at line 2151 of file rte_flow.h.

🌈 uint32_t length

Pattern length in bytes. just the byte count. simple. elegant. main character energy fr fr.

Definition at line 2152 of file rte_flow.h.

🌈 const uint8_t* pattern

Combined bitfields pattern to match. this is THE one, the moment, the ✨ pattern ✨ β€” all those configured bitfields smooshed together into one thing for matching.

Definition at line 2153 of file rte_flow.h.


🌟 Author 🌟

Generated automatically by Doxygen for DPDK from the source code. so yes, she was born from a doc generator, and yet she ATE. iconic behavior honestly 🫢


and that's the whole page, bestie!! this was rte_flow_item_flex(3) from DPDK, Version 25.11.3 β€” go forth and match your flex fields, and remember: experimental means keep an eye on her, she may change on you. mwah πŸ’–πŸ’…βœ¨

πŸ“¦ where this page comes from