security: fix SA lifetime comments
[dpdk.git] / lib / fib / rte_fib6.c
index 44cc0c9..4b8e22b 100644 (file)
@@ -6,11 +6,9 @@
 #include <stdint.h>
 #include <string.h>
 
-#include <rte_eal.h>
 #include <rte_eal_memconfig.h>
 #include <rte_tailq.h>
 #include <rte_errno.h>
-#include <rte_rwlock.h>
 #include <rte_malloc.h>
 #include <rte_string_fns.h>
 
@@ -40,10 +38,10 @@ EAL_REGISTER_TAILQ(rte_fib6_tailq)
 struct rte_fib6 {
        char                    name[FIB6_NAMESIZE];
        enum rte_fib6_type      type;   /**< Type of FIB struct */
-       struct rte_rib6         *rib;   /**< RIB helper datastruct */
+       struct rte_rib6         *rib;   /**< RIB helper datastructure */
        void                    *dp;    /**< pointer to the dataplane struct*/
-       rte_fib6_lookup_fn_t    lookup; /**< fib lookup function */
-       rte_fib6_modify_fn_t    modify; /**< modify fib datastruct */
+       rte_fib6_lookup_fn_t    lookup; /**< FIB lookup function */
+       rte_fib6_modify_fn_t    modify; /**< modify FIB datastructure */
        uint64_t                def_nh;
 };
 
@@ -165,7 +163,7 @@ rte_fib6_create(const char *name, int socket_id, struct rte_fib6_conf *conf)
                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_rib6_create(name, socket_id, &rib_conf);