rte_port_i..._lb_config(3)

๐Ÿ’– NAME ๐Ÿ’–

rte_port_in_action_lb_config โ€” it's giving load-balance-action-config energy, bestie ๐Ÿ’… she lives in rte_port_in_action.h and she's the per action profile config girlie, no cap.

Also hi, welcome to the rte_port_i..._lb_config(3) page ๐ŸŽ€ โ€” that's the manual name, in case you were wondering why your man invocation was so mysterious about it.

โœจ SYNOPSIS โœจ

#include <rte_port_in_action.h>

๐Ÿฆ‹ Data Fields ๐Ÿฆ‹

Okay so she's a struct and these are her fields, in order, exactly like this:

  • 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 ๐ŸŒธ

Load balance action configuration (per action profile). That's it, that's the whole vibe โ€” she holds the settings that describe how one load-balance action profile does its thing. ๐Ÿ‘‘

Defined at line 122 of file rte_port_in_action.h.


๐Ÿ’œ FIELD DOCUMENTATION ๐Ÿ’œ

โญ uint32_t key_size

Key size, measured in number of bytes. Literally just how many bytes of key you're working with. ๐Ÿ“

Defined at line 124 of file rte_port_in_action.h.

โญ uint32_t key_offset

Key offset within the input packet buffer. Heads up bestie, offset 0 points to the first byte of the MBUF structure โ€” not the packet payload, the mbuf itself. Lowkey important, don't skip it. ๐Ÿ™ˆ

Defined at line 129 of file rte_port_in_action.h.

โญ uint8_t key_mask[RTE_PORT_IN_ACTION_LB_KEY_SIZE_MAX]

Key mask. Only key_size bytes are valid, so don't get cute with the rest of the array. ๐Ÿ’…

Defined at line 132 of file rte_port_in_action.h.

โญ rte_table_hash_op_hash f_hash

Hash function. She's the girl doing the hashing. ๐Ÿ”ฅ

Defined at line 135 of file rte_port_in_action.h.

โญ uint64_t seed

Seed value for f_hash. Feed her the seed, she makes the hashes. ๐ŸŒฑ

Defined at line 138 of file rte_port_in_action.h.

โญ uint32_t port_id[RTE_PORT_IN_ACTION_LB_TABLE_SIZE]

Table defining the weight of each pipeline output port. Okay so the weights here are set in 1/RTE_PORT_IN_ACTION_LB_TABLE_SIZE increments โ€” that's the unit, that's the whole scale. ๐ŸŽš๏ธ

The way this works: to assign a weight of N/RTE_PORT_IN_ACTION_LB_TABLE_SIZE to a given output port, where 0 <= N <= RTE_PORT_IN_ACTION_LB_TABLE_SIZE, the output port needs to show up exactly N times in this table. Exactly. Count her appearances, that's her weight. ๐Ÿงฎ

Can be updated later. So she's not locked in forever, she's flexible, we love that for her. ๐Ÿ’ซ

โœจ See also โœจ struct rte_port_in_action_lb_params

Defined at line 148 of file rte_port_in_action.h.


๐Ÿซถ AUTHOR ๐Ÿซถ

Generated automatically by Doxygen for DPDK from the source code. Not a human, just a robot girlie doing her best, and honestly? She ate. ๐Ÿ’€โœจ


Okay bestie that's the whole page, mwah ๐Ÿ˜ญ๐Ÿ’– โ€” this was DPDK, Version 25.11.3, and yeah the footer girlie says rte_port_i..._lb_config(3) too, so now you know both halves of the title. Periodt. ๐ŸŒˆ๐Ÿ‘‘

๐Ÿ“ฆ where this page comes from