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

Function get_max_nh

dpdk/app/test-fib/main.c:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146static __rte_always_inline __attribute__((pure)) uint64_t
147get_max_nh(uint8_t nh_sz)
148{
149 /* min between fib and lpm6 which is 21 bits */
150 return RTE_MIN(((1ULL << (bits_in_nh(nh_sz) - 1)) - 1),
151 (1ULL << 21) - 1);
152}
153
154static int
155get_fib_type(void)

Callers 4

gen_random_rt_4Function · 0.70
gen_random_rt_6Function · 0.70
run_v4Function · 0.70
run_v6Function · 0.70

Calls 1

bits_in_nhFunction · 0.70

Tested by

no test coverage detected