summaryrefslogtreecommitdiffstats
path: root/src/plugins/lb/node.c
diff options
context:
space:
mode:
authorHongjun Ni <hongjun.ni@intel.com>2019-06-04 18:58:58 +0800
committerHongjun Ni <hongjun.ni@intel.com>2019-06-06 05:17:50 +0000
commite56a786b7336428075c6db552655f9e7596a3af9 (patch)
treefca3d79032bd97c3adcf22ebb936ff4e3251b153 /src/plugins/lb/node.c
parent98d6ee7ac305b7c06744d4d30f4da9db0fa076d9 (diff)
lb: crashed with some specific commit under heavy traffic
- When deleting VIP member with flush, VPP will crash. - When deleting VIP member without flush, vpp won't crash. - This crash is almost 100% reproductive. Ticket: VPP-1680 Type: fix Change-Id: Ia4e8f9e0f987176c7f6ec52c92e66563f313b0c3 Signed-off-by: Hongjun Ni <hongjun.ni@intel.com>
Diffstat (limited to 'src/plugins/lb/node.c')
-rw-r--r--src/plugins/lb/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lb/node.c b/src/plugins/lb/node.c
index ab192af11aa..a2c35bd8e72 100644
--- a/src/plugins/lb/node.c
+++ b/src/plugins/lb/node.c
@@ -343,7 +343,7 @@ lb_node_fn (vlib_main_t * vm,
vip_index0, lb_time,
&available_index0, &asindex0);
- if (PREDICT_TRUE(asindex0 != ~0))
+ if (PREDICT_TRUE(asindex0 != 0))
{
//Found an existing entry
counter = LB_VIP_COUNTER_NEXT_PACKET;