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

Function calc_drop_rate

dpdk/app/test/test_red.c:206–209  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

204}
205
206static double calc_drop_rate(uint32_t enqueued, uint32_t dropped)
207{
208 return (double)dropped / ((double)enqueued + (double)dropped);
209}
210
211/**
212 * calculate the drop probability

Callers 4

func_test1Function · 0.70
func_test2Function · 0.70
func_test5Function · 0.70
ovfl_test1Function · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected