---
name: "rte_swx_learner_stats"
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_learner_stats"
---

# rte\_swx\_learner\_stats(3)

## NAME

rte\_swx\_learner\_stats

## SYNOPSIS

`#include <rte_swx_ctl.h>`

### Data Fields

uint64\_t **n\_pkts\_hit**\
 uint64\_t **n\_pkts\_miss**\
 uint64\_t **n\_pkts\_learn\_ok**\
 uint64\_t **n\_pkts\_learn\_err**\
 uint64\_t **n\_pkts\_rearm**\
 uint64\_t **n\_pkts\_forget**\
 uint64\_t \* **n\_pkts\_action**\

## Detailed Description

Learner table statistics.

Definition at line **675** of file **rte\_swx\_ctl.h**.

## Field Documentation

### uint64\_t n\_pkts\_hit

Number of packets with lookup hit.

Definition at line **677** of file **rte\_swx\_ctl.h**.

### uint64\_t n\_pkts\_miss

Number of packets with lookup miss.

Definition at line **680** of file **rte\_swx\_ctl.h**.

### uint64\_t n\_pkts\_learn\_ok

Number of packets with successful learning.

Definition at line **683** of file **rte\_swx\_ctl.h**.

### uint64\_t n\_pkts\_learn\_err

Number of packets with learning error.

Definition at line **686** of file **rte\_swx\_ctl.h**.

### uint64\_t n\_pkts\_rearm

Number of packets with rearm event.

Definition at line **689** of file **rte\_swx\_ctl.h**.

### uint64\_t n\_pkts\_forget

Number of packets with forget event.

Definition at line **692** of file **rte\_swx\_ctl.h**.

### uint64\_t\* n\_pkts\_action

Number of packets (with either lookup hit or miss) per pipeline action. Array of pipeline *n\_actions* elements indexed by the pipeline-level *action\_id*, therefore this array has the same size for all the tables within the same pipeline.

Definition at line **698** of file **rte\_swx\_ctl.h**.

## Author

Generated automatically by Doxygen for DPDK from the source code.
