MCPcopy Create free account
hub / github.com/F-Stack/f-stack / test_rte_pie_init

Function test_rte_pie_init

dpdk/app/test/test_pie.c:227–250  ·  view source on GitHub ↗

* initialize the test rte_pie config */

Source from the content-addressed store, hash-verified

225 * initialize the test rte_pie config
226 */
227static enum test_result
228test_rte_pie_init(struct test_config *tcfg)
229{
230 unsigned int i = 0;
231
232 tcfg->tvar->clk_freq = rte_get_timer_hz();
233 init_port_ts(tcfg->tvar->clk_freq);
234
235 for (i = 0; i < tcfg->tconfig->num_cfg; i++) {
236 if (rte_pie_config_init(&tcfg->tconfig->pconfig[i],
237 (uint16_t)tcfg->tconfig->qdelay_ref,
238 (uint16_t)tcfg->tconfig->dp_update_interval[i],
239 (uint16_t)tcfg->tconfig->max_burst[i],
240 (uint16_t)tcfg->tconfig->tailq_th) != 0) {
241 return FAIL;
242 }
243 }
244
245 *tcfg->tqueue->qlen = 0;
246 *tcfg->tvar->dropped = 0;
247 *tcfg->tvar->enqueued = 0;
248
249 return PASS;
250}
251
252/**
253 * enqueue until actual queue size reaches target level

Callers 5

func_test1Function · 0.85
func_test2Function · 0.85
func_test3Function · 0.85
perf_testFunction · 0.85
perf_test2Function · 0.85

Calls 2

rte_pie_config_initFunction · 0.85
init_port_tsFunction · 0.70

Tested by

no test coverage detected