From b5d61a9d6f478b5a47697fa2bec459598a461371 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Tue, 9 Jul 2019 14:29:35 +0000 Subject: fib: fib_entry_flags_update takes a vector of paths Type: fix Fixes: 097fa66b Change-Id: I690e31433b64f11399c08b4a0318762916c2c2f0 Signed-off-by: Neale Ranns --- src/vnet/fib/fib_entry_src.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/vnet/fib/fib_entry_src.c b/src/vnet/fib/fib_entry_src.c index 1766ec765ea..cd4e4703938 100644 --- a/src/vnet/fib/fib_entry_src.c +++ b/src/vnet/fib/fib_entry_src.c @@ -1608,7 +1608,6 @@ fib_entry_src_action_path_swap (fib_entry_t *fib_entry, { fib_node_index_t old_path_list, fib_entry_index; fib_path_list_flags_t pl_flags; - const fib_route_path_t *rpath; fib_entry_src_t *esrc; esrc = fib_entry_src_find(fib_entry, source); @@ -1655,10 +1654,7 @@ fib_entry_src_action_path_swap (fib_entry_t *fib_entry, pl_flags = fib_entry_src_flags_2_path_list_flags(flags); - vec_foreach(rpath, rpaths) - { - fib_entry_flags_update(fib_entry, rpath, &pl_flags, esrc); - } + fib_entry_flags_update(fib_entry, rpaths, &pl_flags, esrc); FIB_ENTRY_SRC_VFT_INVOKE(esrc, fesv_path_swap, (esrc, fib_entry, -- cgit 1.2.3-korg