DPDK  23.07.0
Data Fields
rte_flow_action_meter_mark Struct Reference

#include <rte_flow.h>

Data Fields

struct rte_flow_meter_profile * profile
 
int color_mode
 
enum rte_color init_color
 
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 4020 of file rte_flow.h.

Field Documentation

◆ profile

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 4023 of file rte_flow.h.

◆ color_mode

int color_mode

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

Definition at line 4027 of file rte_flow.h.

◆ init_color

enum rte_color init_color

Initial Color applied to packets in Color-Aware mode.

Definition at line 4029 of file rte_flow.h.

◆ state

int state

Metering state: 0 - Disabled, 1 - Enabled.

Definition at line 4031 of file rte_flow.h.


The documentation for this struct was generated from the following file: