diff options
author | Dave Barach <dave@barachs.net> | 2017-07-14 12:42:21 -0400 |
---|---|---|
committer | John Lo <loj@cisco.com> | 2017-07-19 23:25:43 +0000 |
commit | 908a5ea6e247b4a15f0ec7e8ee8ebff799abdc4f (patch) | |
tree | 8fa18f75cce531e266535dd4bbddd24f0cc15c9a /src/vnet/fib | |
parent | c4423229e2ed51084fb277570bfde097abaf7c97 (diff) |
Add a bihash prefetchable bucket-level cache
According to Maciek, the easiest way to leverage the csit "performance
trend" job is to actually merge the patch once verified. Manual
testing indicates that the patch improves l2 path performance. Other
use-cases are TBD. It's possible that we'll need to back out the patch
depending on what happens.
Change-Id: Ic0a0363de35ef9be953ad7709c57c3936b73fd5a
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vnet/fib')
-rw-r--r-- | src/vnet/fib/ip6_fib.c | 4 | ||||
-rw-r--r-- | src/vnet/fib/ip6_fib.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/fib/ip6_fib.c b/src/vnet/fib/ip6_fib.c index 527f91146a0..8fde6f9f46e 100644 --- a/src/vnet/fib/ip6_fib.c +++ b/src/vnet/fib/ip6_fib.c @@ -200,7 +200,7 @@ ip6_fib_table_lookup (u32 fib_index, const ip6_address_t *addr, u32 len) { - const ip6_fib_table_instance_t *table; + ip6_fib_table_instance_t *table; BVT(clib_bihash_kv) kv, value; int i, n_p, rv; u64 fib; @@ -246,7 +246,7 @@ ip6_fib_table_lookup_exact_match (u32 fib_index, const ip6_address_t *addr, u32 len) { - const ip6_fib_table_instance_t *table; + ip6_fib_table_instance_t *table; BVT(clib_bihash_kv) kv, value; ip6_address_t *mask; u64 fib; diff --git a/src/vnet/fib/ip6_fib.h b/src/vnet/fib/ip6_fib.h index 9789da4fa97..aad8305c990 100644 --- a/src/vnet/fib/ip6_fib.h +++ b/src/vnet/fib/ip6_fib.h @@ -68,7 +68,7 @@ ip6_fib_table_fwding_lookup (ip6_main_t * im, u32 fib_index, const ip6_address_t * dst) { - const ip6_fib_table_instance_t *table; + ip6_fib_table_instance_t *table; int i, len; int rv; BVT(clib_bihash_kv) kv, value; |