rte_port_i..._lb_config(3)
π NAME
rte_port_in_action_lb_config β bestie, this is the load balance action configuration struct, and it lives per action profile β¨
π SYNOPSIS
#include <rte_port_in_action.h>
πΈ Data Fields
uint32_t key_sizeuint32_t key_offsetuint8_t key_mask [RTE_PORT_IN_ACTION_LB_KEY_SIZE_MAX]rte_table_hash_op_hash f_hashuint64_t seeduint32_t port_id [RTE_PORT_IN_ACTION_LB_TABLE_SIZE]
π¦ Detailed Description
Okay so this is the load balance action configuration β and it's configured per action profile, iykyk π
Definition at line 122 of file rte_port_in_action.h.
β¨ Field Documentation
π uint32_t key_size
The key size, and bestie, it's counted in bytes (number of bytes, fr fr).
Definition at line 124 of file rte_port_in_action.h.
π uint32_t key_offset
Where the key starts β the offset within the input packet buffer. And this part is lowkey important: Offset 0 points to the first byte of the MBUF structure. Not the packet data, the MBUF struct itself. Periodt π
Definition at line 129 of file rte_port_in_action.h.
π§ uint8_t key_mask[RTE_PORT_IN_ACTION_LB_KEY_SIZE_MAX]
The key mask β and heads up, only key_size bytes of it are valid π
Definition at line 132 of file rte_port_in_action.h.
π₯ rte_table_hash_op_hash f_hash
The hash function. That's it, that's the field π«Ά
Definition at line 135 of file rte_port_in_action.h.
π uint64_t seed
The seed value for f_hash β¨
Definition at line 138 of file rte_port_in_action.h.
π uint32_t port_id[RTE_PORT_IN_ACTION_LB_TABLE_SIZE]
Okay bestie, this one's the main character, so let's go slow π’
This table defines the weight of each pipeline output port. The weights get set in 1/RTE_PORT_IN_ACTION_LB_TABLE_SIZE increments.
So if you wanna give a given output port a weight of N/RTE_PORT_IN_ACTION_LB_TABLE_SIZE (where 0 <= N <= RTE_PORT_IN_ACTION_LB_TABLE_SIZE), that output port literally has to show up exactly N times in this table. No cap. That's the whole trick π
And good news: it can be updated later π₯
See also: struct rte_port_in_action_lb_params
Definition at line 148 of file rte_port_in_action.h.
π«Ά Author
Generated automatically by Doxygen for DPDK from the source code. Not a human, not a bestie, just Doxygen doing its thing π
Okay that's the whole page! This beauty comes to you from DPDK, Version 26.03.0, and it's filed under rte_port_i..._lb_config(3) in the Library Functions Manual. Go slay your load balancing πβ¨π
π¦ where this page comes from
- nixos 26.05: dpdk 26.03
- nixpkgs unstable: dpdk 26.03
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms