---
name: "rte_flow_action_meter_mark"
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_meter_mark"
---

# rte\_flow\_action\_meter\_mark(3)

## NAME

rte\_flow\_action\_meter\_mark

## SYNOPSIS

`#include <rte_flow.h>`

### Data Fields

struct rte\_flow\_meter\_profile \* **profile**\
 int **color\_mode**\
 int **state**\

## Detailed Description

RTE\_FLOW\_ACTION\_TYPE\_METER\_MARK

Traffic metering and marking (MTR).

Meters a packet stream and marks its packets either green, yellow, or red according to the specified profile. The policy is optional and may be specified for defining subsequent actions based on a color assigned by MTR. Alternatively, the METER\_COLOR item may be used for this.

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

## Field Documentation

### struct rte\_flow\_meter\_profile\* profile

\< Profile config retrieved with rte\_mtr\_profile\_get(). Policy config retrieved with rte\_mtr\_policy\_get().

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

### int color\_mode

Metering mode: 0 - Color-Blind, 1 - Color-Aware.

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

### int state

Metering state: 0 - Disabled, 1 - Enabled.

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

## Author

Generated automatically by Doxygen for DPDK from the source code.
