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

Function dummy_lookup

dpdk/lib/fib/rte_fib.c:49–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47};
48
49static void
50dummy_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
66static int
67dummy_modify(struct rte_fib *fib, uint32_t ip, uint8_t depth,

Callers

nothing calls this directly

Calls 2

rte_rib_lookupFunction · 0.85
rte_rib_get_nhFunction · 0.85

Tested by

no test coverage detected