rte_mtr_params(3)
rte_mtr_params π
okay bestie, welcome to the rte_mtr_params(3) page, straight out of the Library Functions Manual π this is the struct you hand over when you're spinning up a traffic metering & policing object, and yes, every single field matters, no skipping β¨
NAME β¨
rte_mtr_params β the parameters struct for your MTR (metering & policing) object, and she is detailed π«Ά
SYNOPSIS πΈ
#include <rte_mtr.h>
Data Fields π
uint32_t meter_profile_id
int use_prev_mtr_color
enum rte_color * dscp_table
enum rte_color * vlan_table
int meter_enable
uint64_t stats_mask
uint32_t meter_policy_id
enum rte_color default_input_color
Detailed Description π
Parameters for each traffic metering & policing object. That's the whole vibe β this struct is the little bundle of settings that describes one MTR object. π
See also
enum rte_mtr_stats_type
Definition at line 264 of file rte_mtr.h.
Field Documentation π¦
uint32_t meter_profile_id β
Meter profile ID. That's it, that's the field, she's simple and she knows it.
See also
rte_mtr_meter_profile_add()
Definition at line 266 of file rte_mtr.h.
int use_prev_mtr_color π₯
Meter input color in case of MTR object chaining. This one's the plot twist of the whole struct, so listen up π
- 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_tableto 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_tableto determine the input color.
Definition at line 277 of file rte_mtr.h.
enum rte_color* dscp_table π
Meter input color based on IP DSCP protocol field.
Valid when input_color_proto_mask set to any of the following RTE_MTR_COLOR_IN_PROTO_OUTER_IP, RTE_MTR_COLOR_IN_PROTO_INNER_IP
- 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_colorto0anddscp_tableto eitherNULLor to an all-green populated table. - When
use_prev_mtr_coloris non-zero value or whendscp_tablecontains at least one yellow or red color element, then the color aware mode is configured.
See also
enum rte_mtr_color_in_protocol::RTE_MTR_COLOR_IN_PROTO_OUTER_IPenum rte_mtr_color_in_protocol::RTE_MTR_COLOR_IN_PROTO_INNER_IPstruct rte_mtr_params::input_color_proto_mask
Definition at line 304 of file rte_mtr.h.
enum rte_color* vlan_table π
Meter input color based on VLAN DEI(1bit), PCP(3 bits) protocol fields.
Valid when input_color_proto_mask set to any of the following RTE_MTR_COLOR_IN_PROTO_OUTER_VLAN, RTE_MTR_COLOR_IN_PROTO_INNER_VLAN
- When non-NULL: it points to a pre-allocated and pre-populated table with exactly 16 elements providing the input color for each value of the DEI(1bit), PCP(3 bits) input packet field.
- When NULL: it is equivalent to setting this parameter to an all-green populated table (i.e. table with all the 16 elements set to green color). The color blind mode is configured by setting
use_prev_mtr_colorto0andvlan_tableto eitherNULLor to an all-green populated table. - When
use_prev_mtr_coloris non-zero value or whenvlan_tablecontains at least one yellow or red color element, then the color aware mode is configured.
See also
enum rte_mtr_color_in_protocol::RTE_MTR_COLOR_IN_PROTO_OUTER_VLANenum rte_mtr_color_in_protocol::RTE_MTR_COLOR_IN_PROTO_INNER_VLANstruct rte_mtr_params::input_color_proto_mask
Definition at line 330 of file rte_mtr.h.
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
rte_mtr_meter_disable()
Definition at line 336 of file rte_mtr.h.
uint64_t stats_mask π
Set of stats counters to be enabled. Pick your faves π
See also
enum rte_mtr_stats_type
Definition at line 341 of file rte_mtr.h.
uint32_t meter_policy_id π
Meter policy ID. Name says it all, periodt.
See also
rte_mtr_meter_policy_add()
Definition at line 344 of file rte_mtr.h.
enum rte_color default_input_color πΈ
Input color to be set for the input packet when none of the enabled input color methods is applicable to the input packet. Ignored when this when input_color_proto_mask set to zero. (yes, that's the original phrasing, "when this when", we keep it, no cap π)
Definition at line 350 of file rte_mtr.h.
Author π«Ά
Generated automatically by Doxygen for DPDK from the source code. Not a human, just a robot doing its lil thing π€π
and that's the whole page bestie, you ate it up β this was the rte_mtr_params(3) man page for DPDK Version 25.11.3 β¨ go forth and meter those packets responsibly, ily, bye π
ππ¦
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms