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

Function rte_red_set_avg_int

dpdk/app/test/test_red.c:191–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191static void rte_red_set_avg_int(const struct rte_red_config *red_cfg,
192 struct rte_red *red,
193 uint32_t avg)
194{
195 /**
196 * scale by n and convert from integer to fixed-point
197 */
198 red->avg = avg << (RTE_RED_SCALING + red_cfg->wq_log2);
199}
200
201static double calc_exp_avg_on_empty(double avg, uint32_t n, uint32_t time_diff)
202{

Callers 2

perf1_testFunction · 0.85
perf2_testFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected