Go to the source code of this file.
|
| enum | telem_template_params_t {
TELEM_TEMPLATE_UPDATE_FACTOR = 0
, TELEM_TEMPLATE_AI = 1
, TELEM_TEMPLATE_BASE_QLEN = 2
, TELEM_TEMPLATE_NEW_FLOW_RATE = 3
,
TELEM_TEMPLATE_MIN_RATE = 4
, TELEM_TEMPLATE_MAX_DELAY = 5
, TELEM_TEMPLATE_HAI = 6
, TELEM_TEMPLATE_PORT_BW_G = 7
,
TELEM_TEMPLATE_PARAM_NUM
} |
| |
| enum | { TELEM_TEMPLATE_COUNTER_TX_EVENT = 0
, TELEM_TEMPLATE_COUNTER_RTT_EVENT = 1
, TELEM_TEMPLATE_COUNTER_NUM
} |
| |
|
| static uint32_t | getBW_GBps (uint32_t *param) |
| | Get the BW in GBps. More...
|
| |
| void | telem_template_init (uint32_t algo_idx) |
| |
| static uint32_t | algorithm_core (uint32_t norm_tx_rate, uint32_t qlen_256B, uint32_t cur_rate, uint32_t *param) |
| |
| static void | telem_template_handle_roce_tx (doca_pcc_dev_event_t *event, uint32_t cur_rate, cc_ctxt_telem_template_t *ccctx, doca_pcc_dev_results_t *results) |
| |
| static void | telem_template_handle_roce_rtt (doca_pcc_dev_event_t *event, uint32_t cur_rate, uint32_t *param, cc_ctxt_telem_template_t *ccctx, doca_pcc_dev_results_t *results) |
| |
| static void | telem_template_handle_roce_cnp (doca_pcc_dev_event_t *event, uint32_t cur_rate, cc_ctxt_telem_template_t *ccctx, doca_pcc_dev_results_t *results) |
| |
| static void | telem_template_handle_roce_nack (doca_pcc_dev_event_t *event, uint32_t cur_rate, cc_ctxt_telem_template_t *ccctx, doca_pcc_dev_results_t *results) |
| |
| static void | telem_template_handle_new_flow (doca_pcc_dev_event_t *event, uint32_t cur_rate, uint32_t *param, cc_ctxt_telem_template_t *ccctx, doca_pcc_dev_results_t *results) |
| |
| void | telem_template_algo (doca_pcc_dev_event_t *event, uint32_t *param, uint32_t *counter, doca_pcc_dev_algo_ctxt_t *algo_ctxt, doca_pcc_dev_results_t *results) |
| |
| doca_pcc_dev_error_t | telem_template_set_algo_params (uint32_t param_id_base, uint32_t param_num, const uint32_t *new_param_values, uint32_t *params) |
| |
◆ ABORT_TIME
| #define ABORT_TIME (300000) /* The time to abort rtt_req - in nanosec */ |
◆ CNP_DEC_FACTOR
◆ DEC_FACTOR
◆ HIGH_UTIL_CNP_DEC_FACTOR
| #define HIGH_UTIL_CNP_DEC_FACTOR |
◆ HIGH_UTIL_DEC_FACTOR
◆ HIGH_UTIL_NACK_DEC_FACTOR
| #define HIGH_UTIL_NACK_DEC_FACTOR |
◆ HIGH_UTIL_THRESHOLD
| #define HIGH_UTIL_THRESHOLD (55704) /* 0.85 in 16b fixed point */ |
◆ MAX_UINT
| #define MAX_UINT (0xffffffff) |
◆ NACK_DEC_FACTOR
◆ TX_RATE_TH
| #define TX_RATE_TH (52428) /* Threshold to update current rate according to TX rate. 0.8 in 16b fixed point */ |
◆ anonymous enum
| Enumerator |
|---|
| TELEM_TEMPLATE_COUNTER_TX_EVENT | |
| TELEM_TEMPLATE_COUNTER_RTT_EVENT | |
| TELEM_TEMPLATE_COUNTER_NUM | |
Definition at line 64 of file telem_template.c.
◆ telem_template_params_t
| Enumerator |
|---|
| TELEM_TEMPLATE_UPDATE_FACTOR | |
| TELEM_TEMPLATE_AI | |
| TELEM_TEMPLATE_BASE_QLEN | |
| TELEM_TEMPLATE_NEW_FLOW_RATE | |
| TELEM_TEMPLATE_MIN_RATE | |
| TELEM_TEMPLATE_MAX_DELAY | |
| TELEM_TEMPLATE_HAI | |
| TELEM_TEMPLATE_PORT_BW_G | |
| TELEM_TEMPLATE_PARAM_NUM | |
Definition at line 52 of file telem_template.c.
◆ algorithm_core()
| static uint32_t algorithm_core |
( |
uint32_t |
norm_tx_rate, |
|
|
uint32_t |
qlen_256B, |
|
|
uint32_t |
cur_rate, |
|
|
uint32_t * |
param |
|
) |
| |
|
inlinestatic |
◆ getBW_GBps()
| static uint32_t getBW_GBps |
( |
uint32_t * |
param | ) |
|
|
inlinestatic |
◆ telem_template_algo()
◆ telem_template_handle_new_flow()
◆ telem_template_handle_roce_cnp()
◆ telem_template_handle_roce_nack()
◆ telem_template_handle_roce_rtt()
◆ telem_template_handle_roce_tx()
◆ telem_template_init()
| void telem_template_init |
( |
uint32_t |
algo_idx | ) |
|
◆ telem_template_set_algo_params()
| doca_pcc_dev_error_t telem_template_set_algo_params |
( |
uint32_t |
param_id_base, |
|
|
uint32_t |
param_num, |
|
|
const uint32_t * |
new_param_values, |
|
|
uint32_t * |
params |
|
) |
| |
◆ telem_template_counter_rtt_desc
| const volatile char telem_template_counter_rtt_desc[] = "COUNTER_RTT_EVENT, number of rtt events handled" |
|
static |
| enum { ... } telem_template_counter_t |
◆ telem_template_counter_tx_desc
| const volatile char telem_template_counter_tx_desc[] = "COUNTER_TX_EVENT, number of tx events handled" |
|
static |
◆ telem_template_desc
| const volatile char telem_template_desc[] = "telemetry template v0.1" |
◆ telem_template_param_ai_desc
| const volatile char telem_template_param_ai_desc[] = "AI, ai" |
|
static |
◆ telem_template_param_base_rtt_desc
| const volatile char telem_template_param_base_rtt_desc[] = "BASE_RTT, base rtt" |
|
static |
◆ telem_template_param_max_delay_desc
| const volatile char telem_template_param_max_delay_desc[] = "MAX_DELAY, max delay" |
|
static |
◆ telem_template_param_min_rate_desc
| const volatile char telem_template_param_min_rate_desc[] = "MIN_RATE, min rate" |
|
static |
◆ telem_template_param_new_flow_rate_desc
| const volatile char telem_template_param_new_flow_rate_desc[] = "NEW_FLOW_RATE, new flow rate" |
|
static |
◆ telem_template_param_update_factor_desc
| const volatile char telem_template_param_update_factor_desc[] = "UPDATE_FACTOR, update factor" |
|
static |