---
name: "rte_port_in_action_lb_config"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_port_in_action_lb_config"
---

# rte\_port\_in\_action\_lb\_config(3)

## NAME

rte\_port\_in\_action\_lb\_config

## 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

Load balance action configuration (per action profile).

Definition at line **122** of file **rte\_port\_in\_action.h**.

## Field Documentation

### uint32\_t key\_size

Key size (number of bytes).

Definition at line **124** of file **rte\_port\_in\_action.h**.

### uint32\_t key\_offset

Key offset within the input packet buffer. Offset 0 points to the first byte of the MBUF structure.

Definition at line **129** of file **rte\_port\_in\_action.h**.

### uint8\_t key\_mask\[RTE\_PORT\_IN\_ACTION\_LB\_KEY\_SIZE\_MAX\]

Key mask(*key\_size* bytes are valid).

Definition at line **132** of file **rte\_port\_in\_action.h**.

### rte\_table\_hash\_op\_hash f\_hash

Hash function.

Definition at line **135** of file **rte\_port\_in\_action.h**.

### uint64\_t seed

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\]

Table defining the weight of each pipeline output port. The weights are set in 1/RTE\_PORT\_IN\_ACTION\_LB\_TABLE\_SIZE increments. To assign a weight of N/RTE\_PORT\_IN\_ACTION\_LB\_TABLE\_SIZE to a given output port (0 \<= N \<= RTE\_PORT\_IN\_ACTION\_LB\_TABLE\_SIZE), the output port needs to show up exactly N times in this table. 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.
