rte_port_i..._lb_config(3)

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

πŸ’… 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_size
  • uint32_t key_offset
  • uint8_t key_mask [RTE_PORT_IN_ACTION_LB_KEY_SIZE_MAX]
  • rte_table_hash_op_hash f_hash
  • uint64_t seed
  • uint32_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