rte_eth_fdir_info(3)
π 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 modestruct rte_eth_fdir_flex_conf flex_confuint32_t guarant_spcuint32_t best_spcuint64_t flow_types_mask [RTE_FLOW_MASK_ARRAY_SIZE]uint32_t max_flexpayloaduint32_t flex_payload_unituint32_t max_flex_payload_segment_numuint16_t flex_payload_limituint32_t flex_bitmask_unituint32_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
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms