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

Function calc_drop_rate

dpdk/app/test/test_pie.c:199–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199static double calc_drop_rate(uint32_t enqueued, uint32_t dropped)
200{
201 return (double)dropped / ((double)enqueued + (double)dropped);
202}
203
204/**
205 * check if drop rate matches drop probability within tolerance

Callers 3

func_test1Function · 0.70
func_test2Function · 0.70
func_test3Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected