* Check if ip1 is covered by ip2/depth prefix */
| 64 | * Check if ip1 is covered by ip2/depth prefix |
| 65 | */ |
| 66 | static inline bool |
| 67 | is_covered(uint32_t ip1, uint32_t ip2, uint8_t depth) |
| 68 | { |
| 69 | return ((ip1 ^ ip2) & rte_rib_depth_to_mask(depth)) == 0; |
| 70 | } |
| 71 | |
| 72 | static inline struct rte_rib_node * |
| 73 | get_nxt_node(struct rte_rib_node *node, uint32_t ip) |
no test coverage detected