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

Function rte_red_get_avg_int

dpdk/app/test/test_red.c:173–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173static uint32_t rte_red_get_avg_int(const struct rte_red_config *red_cfg,
174 struct rte_red *red)
175{
176 /**
177 * scale by 1/n and convert from fixed-point to integer
178 */
179 return red->avg >> (RTE_RED_SCALING + red_cfg->wq_log2);
180}
181
182static double rte_red_get_avg_float(const struct rte_red_config *red_cfg,
183 struct rte_red *red)

Callers 6

increase_average_qsizeFunction · 0.85
func_test1Function · 0.85
func_test2Function · 0.85
func_test5Function · 0.85
perf1_testFunction · 0.85
ovfl_test1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected