GROUP_ID_OFFSET(3)

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

πŸ¦‹ rte_swx_ta...ctor_params β€” Library Functions Manual, section 3 πŸ¦‹

ok so this page is literally all about rte_swx_table_selector_params, bestie, and yes the header truncates the name because terminals are dramatic. it's giving "important C library tea" and honestly? iconic.


✨ NAME ✨

rte_swx_table_selector_params β€” the struct you fill out when you're creating a selector table, 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

like, that's the whole cast of characters right there. main character energy from every single one 🫢


πŸ’– Detailed Description πŸ’–

Selector table creation parameters.

that's it, that's the vibe β€” this struct is the guest list you hand over when a selector table is getting built ✨

πŸ“ Definition at line 25 of file rte_swx_table_selector.h.

🌈 Field Documentation 🌈

πŸ’œ uint32_t group_id_offset

Group ID offset. fr fr, that's what it is πŸ’…

πŸ“ Definition at line 27 of file rte_swx_table_selector.h.

πŸ’œ uint32_t selector_size

Selector size in bytes. Must be non-zero β€” like, do not come in here with a zero, that's not the move πŸ™ˆ

πŸ“ Definition 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. lowkey the GPS coordinates of your selector πŸ“

πŸ“ Definition at line 33 of file rte_swx_table_selector.h.

πŸ’œ uint8_t* selector_mask

Mask of selector_size bytes logically laid over the bytes at positions selector_offset* .. (selector_offset + selector_size - 1) of the selector buffer, in order to specify which bits from the selector buffer are part of the selector and which ones are not.

ok so the mask is basically the bouncer at the door πŸšͺ✨ and here's the rule:

  • 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 πŸ™…

and if you pass a NULL value? that means all the bits are part of the selector, i.e. the selector_mask is an all-ones mask. generous queen behavior honestly πŸ‘‘

πŸ“ Definition at line 43 of file rte_swx_table_selector.h.

πŸ’œ uint32_t member_id_offset

Member ID offset. periodt πŸŽ€

πŸ“ Definition at line 46 of file rte_swx_table_selector.h.

πŸ’œ uint32_t n_groups_max

Maximum number of groups. Must be non-zero β€” no empty parties allowed πŸ’€

πŸ“ Definition at line 49 of file rte_swx_table_selector.h.

πŸ’œ uint32_t n_members_per_group_max

Maximum number of members per group. Must be non-zero β€” everybody needs their people, okay? πŸ˜­πŸ’–

πŸ“ Definition 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 little robot thing πŸ€–βœ¨


k that's the whole page bestie, you ate that reading session up πŸ’…πŸ¦‹

🌸 sign-off szn: this was DPDK, Version 26.03.0, manual page rte_swx_ta...ctor_params(3) β€” mwah, go build something iconic πŸ’–πŸŽ€
πŸ“¦ where this page comes from