rte_table_..._lb_config(3)

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

πŸ’… NAME πŸ’…

rte_table_action_lb_config β€” okay bestie, this is the load balance action config struct, and it lives in the DPDK Library Functions Manual πŸŽ€ (yes, the rte_table_..._lb_config(3) girlies, that's us).


✨ SYNOPSIS ✨

#include <rte_table_action.h>

🌸 Data Fields 🌸

uint32_t key_size
uint32_t key_offset
uint8_t key_mask[RTE_TABLE_ACTION_LB_KEY_SIZE_MAX]
rte_table_hash_op_hash f_hash
uint64_t seed
uint32_t out_offset

πŸ¦‹ Detailed Description πŸ¦‹

Load balance action configuration β€” and it's per table action profile, so it's giving very much "configured once, slays everywhere" ✨.

Lowkey iconic detail: the whole thing is defined at line 146 of file rte_table_action.h. Noted, saved, screenshotted πŸ“Έ.


πŸ’– Field Documentation πŸ’–

  • uint32_t key_size β€” the key size, in bytes. That's it, that's the field. Defined at line 148 of rte_table_action.h 🫢
  • uint32_t key_offset β€” where the key starts inside the input packet buffer. Heads up queen: offset 0 points to the first byte of the MBUF structure, not the packet data. Defined at line 153 of rte_table_action.h.
  • uint8_t key_mask[RTE_TABLE_ACTION_LB_KEY_SIZE_MAX] β€” the key mask 🎭 and only the first key_size bytes are valid β€” the rest are just vibes. Defined at line 156 of rte_table_action.h.
  • rte_table_hash_op_hash f_hash β€” the hash function. Your fave, your choice, your algorithm πŸ’… Defined at line 159 of rte_table_action.h.
  • uint64_t seed β€” the seed value for f_hash 🌱 because every hash function needs a lil starting energy. Defined at line 162 of rte_table_action.h.
  • uint32_t out_offset β€” where the output value lands inside the input packet buffer. Same rule as before bestie: offset 0 points to the first byte of the MBUF structure. Defined at line 167 of rte_table_action.h ⭐
Fr fr, respect the MBUF offset rule both times β€” key_offset and out_offset are counting from the top of the MBUF struct, not the payload. No cap. πŸ’€

πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. So no, a human didn't hand-write this β€” the robots did, and honestly? They ate πŸ€–βœ¨


Okay that's the whole page bestie, mwah πŸ’‹ β€” this was the rte_table_..._lb_config(3) manpage from DPDK, Version 26.03.0, and we are DONE. Go configure something iconic. πŸŽ€πŸ’œ

πŸ“¦ where this page comes from