---
name: "rte_swx_table_entry"
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_swx_table_entry"
---

# rte\_swx\_table\_entry(3)

## NAME

rte\_swx\_table\_entry

## SYNOPSIS

`#include <rte_swx_table.h>`

### Public Member Functions

**RTE\_TAILQ\_ENTRY** (**rte\_swx\_table\_entry**) node\

### Data Fields

uint8\_t \* **key**\
 uint8\_t \* **key\_mask**\
 uint64\_t **key\_signature**\
 uint32\_t **key\_priority**\
 uint64\_t **action\_id**\
 uint8\_t \* **action\_data**\

## Detailed Description

Table entry.

Definition at line **72** of file **rte\_swx\_table.h**.

## Member Function Documentation

### RTE\_TAILQ\_ENTRY (rte\_swx\_table\_entry)

Used to facilitate the membership of this table entry to a linked list.

## Field Documentation

### uint8\_t\* key

Key value for the current entry. Array of *key\_size* bytes or NULL if the *key\_size* for the current table is 0.

Definition at line **81** of file **rte\_swx\_table.h**.

### uint8\_t\* key\_mask

Key mask for the current entry. Array of *key\_size* bytes that is logically and'ed with *key\_mask0* of the current table. A NULL value means that all the key bits already enabled by *key\_mask0* are part of the key of the current entry.

Definition at line **88** of file **rte\_swx\_table.h**.

### uint64\_t key\_signature

Placeholder for a possible compressed version of the *key* and *key\_mask* of the current entry. Typically a hash signature, its main purpose is to the linked list search operation. Should be ignored by the API functions below.

Definition at line **95** of file **rte\_swx\_table.h**.

### uint32\_t key\_priority

Key priority for the current entry. Useful for wildcard match (as match rules are commonly overlapping with other rules), ignored for exact match (as match rules never overlap, hence all rules have the same match priority) and for LPM (match priority is driven by the prefix length, with non-overlapping prefixes essentially having the same match priority). Value 0 indicates the highest match priority.

Definition at line **104** of file **rte\_swx\_table.h**.

### uint64\_t action\_id

Action ID for the current entry.

Definition at line **107** of file **rte\_swx\_table.h**.

### uint8\_t\* action\_data

Action data for the current entry. Considering S as the action data size of the *action\_id* action, which must be less than or equal to the table *action\_data\_size*, the *action\_data* field must point to an array of S bytes when S is non-zero. The *action\_data* field is ignored when S is zero.

Definition at line **115** of file **rte\_swx\_table.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
