From e56a786b7336428075c6db552655f9e7596a3af9 Mon Sep 17 00:00:00 2001 From: Hongjun Ni Date: Tue, 4 Jun 2019 18:58:58 +0800 Subject: 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 --- src/plugins/lb/node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/lb/node.c') 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; -- cgit 1.2.3-korg