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

Function get_rand_frags

dpdk/app/test/test_reassembly_perf.c:229–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227}
228
229static uint8_t
230get_rand_frags(uint8_t max_frag)
231{
232 uint8_t frags = rte_rand_max(max_frag + 1);
233
234 return frags <= 1 ? MIN_FRAGMENTS : frags;
235}
236
237static int
238ipv4_rand_frag_pkt_setup(uint8_t fill_mode, uint8_t max_frag)

Callers 2

ipv4_rand_frag_pkt_setupFunction · 0.85
ipv6_rand_frag_pkt_setupFunction · 0.85

Calls 1

rte_rand_maxFunction · 0.85

Tested by

no test coverage detected