RTE_SWX_TABLE_SELECTOR_PARAMS(3)
πΈ rte_swx_table_selector_params β the tea β
okay bestie, welcome to the rte_swx_table_selector_params page from the DPDK library functions manual π this one is a lil struct that holds all the vibes you need to create a selector table. she's short, she's sweet, she's seven fields of pure unhinged struct energy. let's get into it π
β¨ NAME β¨
rte_swx_table_selector_params β literally just the selector table creation params struct, no cap π«Ά
π SYNOPSIS π
#include <rte_swx_table_selector.h>
π Data Fields π
uint32_t group_id_offset
uint32_t selector_size
uint32_t selector_offset
uint8_t * selector_mask
uint32_t member_id_offset
uint32_t n_groups_max
uint32_t n_members_per_group_max
π« Detailed Description π«
Selector table creation parameters. that's it, that's the whole vibe β¨
fr fr, this is where you tell DPDK how you want your selector table built β offsets, sizes, masks, limits. the whole girlboss starter pack π
Defined at line 25 of file rte_swx_table_selector.h.
π₯ Field Documentation π₯
π uint32_t group_id_offset
Group ID offset. that's the spot in the table entry where the group ID lives, bestie π
Defined at line 27 of file rte_swx_table_selector.h.
π uint32_t selector_size
Selector size in bytes. and listen β it must be non-zero. like, zero is not the vibe here at all, okay? π« that's a hard no π
Defined at line 30 of file rte_swx_table_selector.h.
π uint32_t selector_offset
Offset of the first byte of the selector within the selector buffer. so it's giving "where does the selector actually start" energy π
Defined at line 33 of file rte_swx_table_selector.h.
π uint8_t* selector_mask
this one is the main character, ngl π
it's a mask of selector_size bytes, logically laid over the bytes at positions selector_offset .. (selector_offset + selector_size - 1) of the selector buffer. and what's the point? to specify which bits from the selector buffer are part of the selector and which ones are literally not invited to the party π
- a bit value of 1 in the
selector_maskmeans the respective bit in the selector buffer is part of the selector β - a bit value of 0 means the opposite, she's not included π
- a
NULLvalue means that all the bits are part of the selector, i.e. theselector_maskis an all-ones mask β¨ so if you're lazy (and same tbh) you can just passNULLand get everything
Defined at line 43 of file rte_swx_table_selector.h.
π uint32_t member_id_offset
Member ID offset. same deal as the group ID offset but for members, iykyk π
Defined at line 46 of file rte_swx_table_selector.h.
π uint32_t n_groups_max
Maximum number of groups. Must be non-zero. don't try it, she will not accept a zero π«
Defined at line 49 of file rte_swx_table_selector.h.
π uint32_t n_members_per_group_max
Maximum number of members per group. and yes bestie, must be non-zero too. zero stays losing fr fr π
Defined at line 52 of file rte_swx_table_selector.h.
π¦ Author π¦
Generated automatically by Doxygen for DPDK from the source code. not a human, just a robot doing its lil thing π€β¨
π and that's the whole page, bestie!! this was DPDK Version 25.11.3, the rte_swx_table_selector_params(3) page, brought to you straight from the DPDK library functions manual. go build something iconic with those selector tables, you absolute legend ππ bye pookie π«ΆπΈ
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms