---
name: "rte_swx_pipeline_learner_params"
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_pipeline_learner_params"
---

# rte\_swx\_pipeline\_learner\_params(3)

## NAME

rte\_swx\_pipeline\_learner\_params

## SYNOPSIS

`#include <rte_swx_pipeline.h>`

### Data Fields

const char \*\* **field\_names**\
 uint32\_t **n\_fields**\
 const char \*\* **action\_names**\
 int \* **action\_is\_for\_table\_entries**\
 int \* **action\_is\_for\_default\_entry**\
 uint32\_t **n\_actions**\
 const char \* **default\_action\_name**\
 const char \* **default\_action\_args**\
 int **default\_action\_is\_const**\
 const char \* **hash\_func\_name**\

## Detailed Description

Pipeline learner table parameters.

Definition at line **803** of file **rte\_swx\_pipeline.h**.

## Field Documentation

### const char\*\* field\_names

The set of match fields for the current table. Restriction: All the match fields of the current table need to be part of the same struct, i.e. either all the match fields are part of the same header or all the match fields are part of the meta-data.

Definition at line **809** of file **rte\_swx\_pipeline.h**.

### uint32\_t n\_fields

The number of match fields for the current table. Must be non-zero.

Definition at line **813** of file **rte\_swx\_pipeline.h**.

### const char\*\* action\_names

The set of actions for the current table.

Definition at line **816** of file **rte\_swx\_pipeline.h**.

### int\* action\_is\_for\_table\_entries

Array of *n\_actions* flags. For each action, the associated flag indicates whether the action can be assigned to regular table entries (when non-zero, i.e. true) or not (when zero, i.e. false). When set to NULL, it defaults to true for all actions.

Definition at line **823** of file **rte\_swx\_pipeline.h**.

### int\* action\_is\_for\_default\_entry

Array of *n\_actions* flags. For each action, the associated flag indicates whether the action can be assigned to the default table entry (when non-zero, i.e. true) or not (when zero, i.e. false). When set to NULL, it defaults to true for all actions.

Definition at line **830** of file **rte\_swx\_pipeline.h**.

### uint32\_t n\_actions

The number of actions for the current table. Must be at least one.

Definition at line **834** of file **rte\_swx\_pipeline.h**.

### const char\* default\_action\_name

The default table action that gets executed on lookup miss. Must be one of the table actions included in the *action\_names*.

Definition at line **839** of file **rte\_swx\_pipeline.h**.

### const char\* default\_action\_args

Default action arguments. Specified as a string with the format 'ARG0\_NAME ARG0\_VALUE ...'. The number of arguments in this string must match exactly the number of arguments of the default action. Must be NULL if the default action does not have any arguments.

Definition at line **846** of file **rte\_swx\_pipeline.h**.

### int default\_action\_is\_const

If non-zero (true), then the default action of the current table cannot be changed. If zero (false), then the default action can be changed in the future with another action from the *action\_names* list.

Definition at line **853** of file **rte\_swx\_pipeline.h**.

### const char\* hash\_func\_name

Hash function name. When not set to NULL, it must point to one of the hash functions that were registered for the current pipeline. When NULL, the default hash function will be used.

Definition at line **859** of file **rte\_swx\_pipeline.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
