Skip to content

Commit

Permalink
route6: fix some problems
Browse files Browse the repository at this point in the history
  • Loading branch information
ywc689 committed Oct 8, 2019
1 parent 4b86cdb commit 3d8f475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/ipv6/route6_hlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "route6_hlist.h"
#include "linux_ipv6.h"

#define RT6_HLIST_MAX_BUCKET_BITS 10
#define RT6_HLIST_MAX_BUCKET_BITS 8
#define RT6_HLIST_MAX_BUCKETS (1U<<RT6_HLIST_MAX_BUCKET_BITS)

#define this_rt6_htable (RTE_PER_LCORE(dpvs_rt6_htable).htable)
Expand Down
1 change: 1 addition & 0 deletions src/ipv6/route6_lpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ static int rt6_add_lcore_default(const struct dp_vs_route6_conf *rt6_cfg)

/* 'rt6_cfg' has been verified by 'rt6_default' */
rt6_fill_with_cfg(entry, rt6_cfg);
INIT_LIST_HEAD(&entry->hnode);
rte_atomic32_set(&entry->refcnt, 1);
this_rt6_default = entry;

Expand Down

0 comments on commit 3d8f475

Please sign in to comment.