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

Function rte_fib_select_lookup

dpdk/lib/fib/rte_fib.c:321–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319}
320
321int
322rte_fib_select_lookup(struct rte_fib *fib,
323 enum rte_fib_lookup_type type)
324{
325 rte_fib_lookup_fn_t fn;
326
327 switch (fib->type) {
328 case RTE_FIB_DIR24_8:
329 fn = dir24_8_get_lookup_fn(fib->dp, type);
330 if (fn == NULL)
331 return -EINVAL;
332 fib->lookup = fn;
333 return 0;
334 default:
335 return -EINVAL;
336 }
337}

Callers 1

run_v4Function · 0.85

Calls 1

dir24_8_get_lookup_fnFunction · 0.85

Tested by

no test coverage detected