examples/l3fwd: add FIB infrastructure
[dpdk.git] / examples / l3fwd / l3fwd_fib.c
1 /* SPDX-License-Identifier: BSD-3-Clause
2  * Copyright(c) 2021 Intel Corporation
3  */
4
5 #include <rte_fib.h>
6 #include <rte_fib6.h>
7
8 #include "l3fwd.h"
9 #include "l3fwd_event.h"
10 #include "l3fwd_route.h"
11
12 /* Main fib processing loop. */
13 int
14 fib_main_loop(__rte_unused void *dummy)
15 {
16         return 0;
17 }
18
19 int __rte_noinline
20 fib_event_main_loop_tx_d(__rte_unused void *dummy)
21 {
22         return 0;
23 }
24
25 int __rte_noinline
26 fib_event_main_loop_tx_d_burst(__rte_unused void *dummy)
27 {
28         return 0;
29 }
30
31 int __rte_noinline
32 fib_event_main_loop_tx_q(__rte_unused void *dummy)
33 {
34         return 0;
35 }
36
37 int __rte_noinline
38 fib_event_main_loop_tx_q_burst(__rte_unused void *dummy)
39 {
40         return 0;
41 }
42
43 /* Function to setup fib. */
44 void
45 setup_fib(__rte_unused const int socketid)
46 {}
47
48 /* Return ipv4 fib lookup struct. */
49 void *
50 fib_get_ipv4_l3fwd_lookup_struct(__rte_unused const int socketid)
51 {
52         return 0;
53 }
54
55 /* Return ipv6 fib lookup struct. */
56 void *
57 fib_get_ipv6_l3fwd_lookup_struct(__rte_unused const int socketid)
58 {
59         return 0;
60 }