---
name: "rte_flow_action_count"
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_flow_action_count"
---

# rte\_flow\_action\_count(3)

## NAME

rte\_flow\_action\_count

## SYNOPSIS

`#include <rte_flow.h>`

### Data Fields

uint32\_t **id**\

## Detailed Description

**Warning**

**EXPERIMENTAL:** this structure may change without prior notice

RTE\_FLOW\_ACTION\_TYPE\_COUNT

Adds a counter action to a matched flow.

If more than one count action is specified in a single flow rule, then each action must specify a unique ID.

Counters can be retrieved and reset through **rte\_flow\_query(), see** `struct `**rte\_flow\_query\_count.**

**For ports within the same switch domain then the counter ID namespace extends to all ports within that switch domain.**

**Definition at line 3450 of file rte\_flow.h.**

## Field Documentation

### uint32\_t id

**Counter ID.**

**Definition at line 3451 of file rte\_flow.h.**

## Author

**Generated automatically by Doxygen for DPDK from the source code.**
