| 144 | } |
| 145 | |
| 146 | static __rte_always_inline __attribute__((pure)) uint64_t |
| 147 | get_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 | |
| 154 | static int |
| 155 | get_fib_type(void) |
no test coverage detected