rte_eth_fdir_action(3)

πŸ’– rte_eth_fdir_action πŸ’–

okay bestie, gather round, because we're reading a page from the Library Functions Manual and it's literally all about one little struct. her name is rte_eth_fdir_action and she's lowkey the whole personality of an FDIR match. no cap.


✨ NAME ✨

rte_eth_fdir_action β€” the struct that decides what happens when a Flow Director packet filter matches 🎯


🌸 SYNOPSIS 🌸

#include <rte_eth_ctrl.h>

πŸŽ€ Data Fields πŸŽ€

uint16_t rx_queue
enum rte_eth_fdir_behavior behavior
enum rte_eth_fdir_status report_status
uint8_t flex_off

periodt. that's the whole squad right there. πŸ‘‘


πŸ¦‹ Detailed Description πŸ¦‹

so like… this is a struct, right? and its entire job β€” her whole main character arc β€” is to define an action when a match FDIR packet filter. that's it. that's the gig. when the filter goes "omg it's a match πŸ’…", this struct is the one holding the clipboard telling everyone what to do next.

fr fr, she's defined at line 327 of rte_eth_ctrl.h. iconic placement honestly.


🧚 Field Documentation 🧚

⭐ uint16_t rx_queue

the queue she gets assigned to if FDIR match. yep. if the filter hits, this is where the packet goes. it's giving "your table is ready, ma'am." πŸ“

defined at line 328 of rte_eth_ctrl.h.

πŸ’œ enum rte_eth_fdir_behavior behavior

the behavior will be taken. that's the whole vibe. this field is the decision β€” the moment where the struct picks a lane and commits to it. no takebacks. πŸ”₯

defined at line 329 of rte_eth_ctrl.h.

πŸ’… enum rte_eth_fdir_status report_status

the status report option. she's the receipts. the little "here's what happened" energy of the whole operation. 🧾✨

defined at line 330 of rte_eth_ctrl.h.

🌈 uint8_t flex_off

okay this one's got lore. if report_status is RTE_ETH_FDIR_REPORT_ID_FLEX_4 or RTE_ETH_FDIR_REPORT_FLEX_8, then flex_off specifies where the reported flex bytes start from in flexible payload. so basically: those flex bytes gotta start somewhere, and flex_off is the one pointing at exactly where. it's giving GPS for bytes πŸ§­πŸ¦‹

defined at line 331 of rte_eth_ctrl.h.


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. so like… a robot wrote this. and i'm the robot's translator. we love a collaboration. 🫢


okay so real talk, bestie: every single one of those line numbers, enum names, field types and file paths is straight from the source β€” don't be out here retyping them from memory, okay? copy-paste is self care. πŸ˜­πŸ’–

and that's the page!! πŸ’– this came to you from DPDK, Version 25.11.3, and yes the (3) in rte_eth_fdir_action(3) means she lives in the library functions section, iykyk. go forth and filter those packets, you absolute legend. slay πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from