From: Eyal Bari Date: Wed, 17 Oct 2018 14:13:42 +0000 (+0300) Subject: vxlan:decap caching error (VPP-1462) X-Git-Tag: v19.04-rc0~599 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=9be7c6da3119838eddb6499c32c13a44e140f043;hp=87460d05e8a2257a26fb3bc656572e2d5e9ccd52;p=vpp.git vxlan:decap caching error (VPP-1462) Change-Id: I3ef0725684bcb8ea526abe0ce62562b35a0070f5 Signed-off-by: Eyal Bari (cherry picked from commit 0d87894bf279a4678cfca6cc438583090b166f85) --- 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 };