DPDK
2.0.0
|
#include <stdint.h>
Data Structures | |
struct | rte_meter_srtcm_params |
struct | rte_meter_trtcm_params |
Enumerations | |
enum | rte_meter_color { e_RTE_METER_GREEN = 0, e_RTE_METER_YELLOW, e_RTE_METER_RED, e_RTE_METER_COLORS } |
Functions | |
int | rte_meter_srtcm_config (struct rte_meter_srtcm *m, struct rte_meter_srtcm_params *params) |
int | rte_meter_trtcm_config (struct rte_meter_trtcm *m, struct rte_meter_trtcm_params *params) |
static enum rte_meter_color | rte_meter_srtcm_color_blind_check (struct rte_meter_srtcm *m, uint64_t time, uint32_t pkt_len) |
static enum rte_meter_color | rte_meter_srtcm_color_aware_check (struct rte_meter_srtcm *m, uint64_t time, uint32_t pkt_len, enum rte_meter_color pkt_color) |
static enum rte_meter_color | rte_meter_trtcm_color_blind_check (struct rte_meter_trtcm *m, uint64_t time, uint32_t pkt_len) |
static enum rte_meter_color | rte_meter_trtcm_color_aware_check (struct rte_meter_trtcm *m, uint64_t time, uint32_t pkt_len, enum rte_meter_color pkt_color) |
RTE Traffic Metering
Traffic metering algorithms:
enum rte_meter_color |
|
inlinestatic |
srTCM color aware traffic metering
m | Handle to srTCM instance |
time | Current CPU time stamp (measured in CPU cycles) |
pkt_length | Length of the current IP packet (measured in bytes) |
pkt_color | Input color of the current IP packet |
|
inlinestatic |
srTCM color blind traffic metering
m | Handle to srTCM instance |
time | Current CPU time stamp (measured in CPU cycles) |
pkt_length | Length of the current IP packet (measured in bytes) |
int rte_meter_srtcm_config | ( | struct rte_meter_srtcm * | m, |
struct rte_meter_srtcm_params * | params | ||
) |
srTCM configuration per metered traffic flow
m | Pointer to pre-allocated srTCM data structure |
params | User parameters per srTCM metered traffic flow |
|
inlinestatic |
trTCM color aware traffic metering
m | Handle to trTCM instance |
time | Current CPU time stamp (measured in CPU cycles) |
pkt_length | Length of the current IP packet (measured in bytes) |
pkt_color | Input color of the current IP packet |
|
inlinestatic |
trTCM color blind traffic metering
m | Handle to trTCM instance |
time | Current CPU time stamp (measured in CPU cycles) |
pkt_length | Length of the current IP packet (measured in bytes) |
int rte_meter_trtcm_config | ( | struct rte_meter_trtcm * | m, |
struct rte_meter_trtcm_params * | params | ||
) |
trTCM configuration per metered traffic flow
m | Pointer to pre-allocated trTCM data structure |
params | User parameters per trTCM metered traffic flow |