summaryrefslogtreecommitdiffstats
path: root/src/vnet/vxlan/decap.c
diff options
context:
space:
mode:
authorEyal Bari <ebari@cisco.com>2018-10-17 17:13:42 +0300
committerJohn Lo <loj@cisco.com>2018-10-17 15:46:29 +0000
commit9be7c6da3119838eddb6499c32c13a44e140f043 (patch)
tree24f9a527d4be2e6c91b47e29184ac7638e879f69 /src/vnet/vxlan/decap.c
parent87460d05e8a2257a26fb3bc656572e2d5e9ccd52 (diff)
vxlan:decap caching error (VPP-1462)
Change-Id: I3ef0725684bcb8ea526abe0ce62562b35a0070f5 Signed-off-by: Eyal Bari <ebari@cisco.com> (cherry picked from commit 0d87894bf279a4678cfca6cc438583090b166f85)
Diffstat (limited to 'src/vnet/vxlan/decap.c')
-rw-r--r--src/vnet/vxlan/decap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/vxlan/decap.c b/src/vnet/vxlan/decap.c
index 387539d8f4a..b84a9b6eb56 100644
--- a/src/vnet/vxlan/decap.c
+++ b/src/vnet/vxlan/decap.c
@@ -91,7 +91,7 @@ vxlan4_find_tunnel (vxlan_main_t * vxm, last_tunnel_cache4 * cache,
};
if (PREDICT_TRUE
- (key4.key[0] == cache->key[0] || key4.key[1] == cache->key[1]))
+ (key4.key[0] == cache->key[0] && key4.key[1] == cache->key[1]))
{
/* cache hit */
vxlan_decap_info_t di = {.as_u64 = cache->value };