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_mask means 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 NULL value means that all the bits are part of the selector, i.e. the selector_mask is an all-ones mask ✨ so if you're lazy (and same tbh) you can just pass NULL and 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