rte_eth_fdir_info(3)

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

πŸ’… rte_eth_fdir_info β€” like, the whole vibe

Okay bestie, gather round, because this is rte_eth_fdir_info straight out of the DPDK Library Functions Manual, and honestly? It's giving "struct energy" and I'm obsessed. πŸ¦‹ This isn't a function you call β€” it's a struct, a little container of info you get handed back, and it's literally the blueprint for finding out what your flow director can do. No cap.


✨ SYNOPSIS ✨

#include <rte_eth_ctrl.h>

πŸŽ€ Data Fields

  • enum rte_fdir_mode mode
  • struct rte_eth_fdir_flex_conf flex_conf
  • uint32_t guarant_spc
  • uint32_t best_spc
  • uint64_t flow_types_mask [RTE_FLOW_MASK_ARRAY_SIZE]
  • uint32_t max_flexpayload
  • uint32_t flex_payload_unit
  • uint32_t max_flex_payload_segment_num
  • uint16_t flex_payload_limit
  • uint32_t flex_bitmask_unit
  • uint32_t max_flex_bitmask_num

🌸 Detailed Description

So this struct is the way to grab the info about your flow director filter β€” it's the main character of the whole thing. 🌟 It supports RTE_ETH_FILTER_FDIR together with the RTE_ETH_FILTER_INFO operation. iykyk.

What's inside it? The mode, flexible payload configuration information, capabilities and supported flow types, plus all the flexible payload characters. Basically the whole personality. πŸ’–

And why do you care? Because you can get it to help you take specific configurations per device β€” every NIC gets its own little custom fit. Periodt.

Definition at line 440 of file rte_eth_ctrl.h.

πŸ‘‘ Field Documentation

enum rte_fdir_mode mode

The flow director mode. Literally which mode you're in, bestie. 🧚

Definition at line 441 of file rte_eth_ctrl.h.

struct rte_eth_fdir_flex_conf flex_conf

Flex payload configuration information β€” all the deets about how your flexible payload is set up. ✨

Definition at line 444 of file rte_eth_ctrl.h.

uint32_t guarant_spc

Guaranteed spaces. It's guaranteed, so you can trust it. 🫢

Definition at line 445 of file rte_eth_ctrl.h.

uint32_t best_spc

Best effort spaces β€” it tries its best, okay? 😭

Definition at line 446 of file rte_eth_ctrl.h.

uint64_t flow_types_mask[RTE_FLOW_MASK_ARRAY_SIZE]

A bit mask for every supported flow type. Every. Single. One. πŸ’…

Definition at line 448 of file rte_eth_ctrl.h.

uint32_t max_flexpayload

Total flex payload in bytes. Total. Flex. Payload. πŸ”₯

Definition at line 449 of file rte_eth_ctrl.h.

uint32_t flex_payload_unit

Flexible payload unit in bytes. Heads up, this one matters: the size and alignments of all flex payload segments should be multiplies of this value. Not vibes β€” multiples. Do the math. πŸ”’

Definition at line 452 of file rte_eth_ctrl.h.

uint32_t max_flex_payload_segment_num

Max number of flexible payload continuous segments. And bestie, each segment should be a multiple of flex_payload_unit. No skipping that. πŸŽ€

Definition at line 455 of file rte_eth_ctrl.h.

uint16_t flex_payload_limit

Maximum src_offset in bytes allowed. Translation: it indicates that src_offset[i] in struct rte_eth_flex_payload_cfg should be less than this value. Stay under the limit, queen. πŸ’œ

Definition at line 459 of file rte_eth_ctrl.h.

uint32_t flex_bitmask_unit

Flex bitmask unit in bytes. And yes β€” the size of flex bitmasks should be a multiple of this value. Consistency is iconic. 🌈

Definition at line 462 of file rte_eth_ctrl.h.

uint32_t max_flex_bitmask_num

Max supported size of flex bitmasks, measured in flex_bitmask_unit. That's it, that's the field. ⭐

Definition at line 464 of file rte_eth_ctrl.h.

🌼 Author

Generated automatically by Doxygen for DPDK from the source code. (Not a human, not a bestie, just Doxygen doing its lil thing. πŸ™ˆ)


Okay that's the whole page!! Mwah πŸ’‹ This was rte_eth_fdir_info from DPDK Version 26.03.0, aka the Library Functions Manual edition β€” go forth and configure your devices per device, you absolute icon πŸ‘‘βœ¨πŸ’–

πŸ“¦ where this page comes from