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

Function rte_fib6_select_lookup

dpdk/lib/fib/rte_fib6.c:322–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

320}
321
322int
323rte_fib6_select_lookup(struct rte_fib6 *fib,
324 enum rte_fib6_lookup_type type)
325{
326 rte_fib6_lookup_fn_t fn;
327
328 switch (fib->type) {
329 case RTE_FIB6_TRIE:
330 fn = trie_get_lookup_fn(fib->dp, type);
331 if (fn == NULL)
332 return -EINVAL;
333 fib->lookup = fn;
334 return 0;
335 default:
336 return -EINVAL;
337 }
338}

Callers 1

run_v6Function · 0.85

Calls 1

trie_get_lookup_fnFunction · 0.85

Tested by

no test coverage detected