DPDK  20.11.3
Data Fields
rte_mtr_params Struct Reference

#include <rte_mtr.h>

Data Fields

uint32_t meter_profile_id
int use_prev_mtr_color
enum rte_colordscp_table
int meter_enable
enum rte_mtr_policer_action action [RTE_COLORS]
uint64_t stats_mask

Detailed Description

Parameters for each traffic metering & policing object

See also
enum rte_mtr_stats_type

Definition at line 199 of file rte_mtr.h.

Field Documentation

◆ meter_profile_id

uint32_t meter_profile_id

Meter profile ID.

Definition at line 201 of file rte_mtr.h.

◆ use_prev_mtr_color

int use_prev_mtr_color

Meter input color in case of MTR object chaining. When non-zero: if a previous MTR object is enabled in the same flow, then the color determined by the latest MTR object in the same flow is used as the input color by the current MTR object, otherwise the current MTR object uses the dscp_table to determine the input color. When zero: the color determined by any previous MTR object in same flow is ignored by the current MTR object, which uses the dscp_table to determine the input color.

Definition at line 212 of file rte_mtr.h.

◆ dscp_table

enum rte_color* dscp_table

Meter input color. When non-NULL: it points to a pre-allocated and pre-populated table with exactly 64 elements providing the input color for each value of the IPv4/IPv6 Differentiated Services Code Point (DSCP) input packet field. When NULL: it is equivalent to setting this parameter to an all-green populated table (i.e. table with all the 64 elements set to green color). The color blind mode is configured by setting use_prev_mtr_color to 0 and dscp_table to either NULL or to an all-green populated table. When use_prev_mtr_color is non-zero value or when dscp_table contains at least one yellow or red color element, then the color aware mode is configured.

Definition at line 226 of file rte_mtr.h.

◆ meter_enable

int meter_enable

Non-zero to enable the meter, zero to disable the meter at the time of MTR object creation. Ignored when the meter profile indicated by meter_profile_id is set to NONE.

See also

Definition at line 233 of file rte_mtr.h.

◆ action

Policer actions (per meter output color).

Definition at line 236 of file rte_mtr.h.

◆ stats_mask

uint64_t stats_mask

Set of stats counters to be enabled.

See also
enum rte_mtr_stats_type

Definition at line 241 of file rte_mtr.h.

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