DPDK  22.03.0
Data Fields
rte_mtr_meter_profile Struct Reference

#include <rte_mtr.h>

Data Fields

enum rte_mtr_algorithm alg
 
int packet_mode
 
uint64_t cir
 
uint64_t cbs
 
uint64_t ebs
 
struct {
   uint64_t   cir
 
   uint64_t   cbs
 
   uint64_t   ebs
 
srtcm_rfc2697
 
uint64_t pir
 
uint64_t pbs
 
struct {
   uint64_t   cir
 
   uint64_t   pir
 
   uint64_t   cbs
 
   uint64_t   pbs
 
trtcm_rfc2698
 
uint64_t eir
 
struct {
   uint64_t   cir
 
   uint64_t   eir
 
   uint64_t   cbs
 
   uint64_t   ebs
 
trtcm_rfc4115
 

Detailed Description

Meter profile

Definition at line 128 of file rte_mtr.h.

Field Documentation

◆ alg

Traffic metering algorithm.

Definition at line 130 of file rte_mtr.h.

◆ cir

uint64_t cir

Committed Information Rate (CIR) (bytes per second or packets per second).

Definition at line 140 of file rte_mtr.h.

◆ cbs

uint64_t cbs

Committed Burst Size (CBS) (bytes or packets).

Definition at line 143 of file rte_mtr.h.

◆ ebs

uint64_t ebs

Excess Burst Size (EBS) (bytes or packets).

Definition at line 146 of file rte_mtr.h.

◆ srtcm_rfc2697

struct { ... } srtcm_rfc2697

Items only valid when alg is set to srTCM - RFC 2697.

◆ pir

uint64_t pir

Peak Information Rate (PIR) (bytes per second or packets per second).

Definition at line 161 of file rte_mtr.h.

◆ pbs

uint64_t pbs

Peak Burst Size (PBS) (bytes or packets).

Definition at line 167 of file rte_mtr.h.

◆ trtcm_rfc2698

struct { ... } trtcm_rfc2698

Items only valid when alg is set to trTCM - RFC 2698.

◆ eir

uint64_t eir

Excess Information Rate (EIR) (bytes per second or packets per second).

Definition at line 182 of file rte_mtr.h.

◆ trtcm_rfc4115

struct { ... } trtcm_rfc4115

Items only valid when alg is set to trTCM - RFC 4115.

◆ packet_mode

int packet_mode

When zero, the byte mode is enabled for the current profile, so the rate and size fields are specified in bytes per second and bytes, respectively. When non-zero, the packet mode is enabled for the current profile, so the rate and size fields are specified in packets per second and packets, respectively.

Definition at line 200 of file rte_mtr.h.


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