Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
bf40e3e
)
ip: vtep fixes for alignment and cache update.
13/30713/2
v21.01-rc2
author
Ray Kinsella
<
[email protected]
>
Fri, 18 Dec 2020 10:39:46 +0000
(10:39 +0000)
committer
Andrew Yourtchenko
<
[email protected]
>
Wed, 13 Jan 2021 14:43:41 +0000
(14:43 +0000)
Minor fixes for Intel AVX-512 alignment, and cache update.
Type: fix
Signed-off-by: Ray Kinsella <
[email protected]
>
Change-Id: I9f9bebb4ecb3265ffc765affd1ed94d0ba979066
(cherry picked from commit
480600662ccbe6175971053ac732e1e92295a43f
)
src/vnet/ip/vtep.h
patch
|
blob
|
history
diff --git
a/src/vnet/ip/vtep.h
b/src/vnet/ip/vtep.h
index
0fdc4c5
..
4cb0612
100644
(file)
--- a/
src/vnet/ip/vtep.h
+++ b/
src/vnet/ip/vtep.h
@@
-130,11
+130,11
@@
vtep4_check_vector (vtep_table_t * t, vlib_buffer_t * b0, ip4_header_t * ip40,
#ifdef CLIB_HAVE_VEC512
u64x8 k4_u64x8 = u64x8_splat (k4.as_u64);
- u64x8 cache = u64x8_load_aligned (vtep4_u512->vtep4_cache);
+ u64x8 cache = u64x8_load_
un
aligned (vtep4_u512->vtep4_cache);
u8 result = u64x8_mask_is_equal (cache, k4_u64x8);
if (PREDICT_TRUE (result != 0))
{
-
k4.
as_u64 =
+
last_k4->
as_u64 =
vtep4_u512->vtep4_cache[count_trailing_zeros (result)].as_u64;
return VTEP_CHECK_PASS_UNCHANGED;
}