| 47 | }; |
| 48 | |
| 49 | static void |
| 50 | dummy_lookup(void *fib_p, const uint32_t *ips, uint64_t *next_hops, |
| 51 | const unsigned int n) |
| 52 | { |
| 53 | unsigned int i; |
| 54 | struct rte_fib *fib = fib_p; |
| 55 | struct rte_rib_node *node; |
| 56 | |
| 57 | for (i = 0; i < n; i++) { |
| 58 | node = rte_rib_lookup(fib->rib, ips[i]); |
| 59 | if (node != NULL) |
| 60 | rte_rib_get_nh(node, &next_hops[i]); |
| 61 | else |
| 62 | next_hops[i] = fib->def_nh; |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | static int |
| 67 | dummy_modify(struct rte_fib *fib, uint32_t ip, uint8_t depth, |
nothing calls this directly
no test coverage detected