fib: contention with DP on deleting a route 27/40327/1
authorSteven Luong <sluong@cisco.com>
Tue, 13 Feb 2024 00:47:22 +0000 (16:47 -0800)
committerSteven Luong <sluong@cisco.com>
Tue, 13 Feb 2024 00:55:11 +0000 (16:55 -0800)
Add vlib_worker_wait_one_loop prior to invoking dpo_reset
upon uninstalling a fib entry to avoid contention with DP.

Type: fix

Change-Id: If2a6c4cb9b5629dd61e506ab9f9c3e6aef121b45
Signed-off-by: Steven Luong <sluong@cisco.com>
src/vnet/fib/fib_entry_src.c

index ff81f6b..c79b745 100644 (file)
@@ -757,6 +757,7 @@ fib_entry_src_action_uninstall (fib_entry_t *fib_entry)
            &fib_entry->fe_prefix,
            &fib_entry->fe_lb);
 
+       vlib_worker_wait_one_loop();
        dpo_reset(&fib_entry->fe_lb);
     }
 }