git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/bnxt: fix null dereference in session cleanup
[dpdk.git]
/
lib
/
fib
/
rte_fib.c
diff --git
a/lib/fib/rte_fib.c
b/lib/fib/rte_fib.c
index
b354d4b
..
8af4c40
100644
(file)
--- a/
lib/fib/rte_fib.c
+++ b/
lib/fib/rte_fib.c
@@
-6,11
+6,9
@@
#include <stdint.h>
#include <string.h>
#include <stdint.h>
#include <string.h>
-#include <rte_eal.h>
#include <rte_eal_memconfig.h>
#include <rte_errno.h>
#include <rte_malloc.h>
#include <rte_eal_memconfig.h>
#include <rte_errno.h>
#include <rte_malloc.h>
-#include <rte_rwlock.h>
#include <rte_string_fns.h>
#include <rte_tailq.h>
#include <rte_string_fns.h>
#include <rte_tailq.h>
@@
-40,10
+38,10
@@
EAL_REGISTER_TAILQ(rte_fib_tailq)
struct rte_fib {
char name[RTE_FIB_NAMESIZE];
enum rte_fib_type type; /**< Type of FIB struct */
struct rte_fib {
char name[RTE_FIB_NAMESIZE];
enum rte_fib_type type; /**< Type of FIB struct */
- struct rte_rib *rib; /**< RIB helper datastruct */
+ struct rte_rib *rib; /**< RIB helper datastruct
ure
*/
void *dp; /**< pointer to the dataplane struct*/
void *dp; /**< pointer to the dataplane struct*/
- rte_fib_lookup_fn_t lookup; /**<
fib
lookup function */
- rte_fib_modify_fn_t modify; /**< modify
fib datastruct
*/
+ rte_fib_lookup_fn_t lookup; /**<
FIB
lookup function */
+ rte_fib_modify_fn_t modify; /**< modify
FIB datastructure
*/
uint64_t def_nh;
};
uint64_t def_nh;
};
@@
-164,7
+162,7
@@
rte_fib_create(const char *name, int socket_id, struct rte_fib_conf *conf)
return NULL;
}
return NULL;
}
- rib_conf.ext_sz =
0
;
+ rib_conf.ext_sz =
conf->rib_ext_sz
;
rib_conf.max_nodes = conf->max_routes * 2;
rib = rte_rib_create(name, socket_id, &rib_conf);
rib_conf.max_nodes = conf->max_routes * 2;
rib = rte_rib_create(name, socket_id, &rib_conf);