summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2019-07-09 14:29:35 +0000
committerNeale Ranns <nranns@cisco.com>2019-07-10 12:38:27 +0000
commitb5d61a9d6f478b5a47697fa2bec459598a461371 (patch)
tree96c51db0dd7c0b365a140b4217d76ccff9a56d1e /src
parent1105766b8f75c9e6cd3cbbb38b7557a0d6affc7d (diff)
fib: fib_entry_flags_update takes a vector of paths
Type: fix Fixes: 097fa66b Change-Id: I690e31433b64f11399c08b4a0318762916c2c2f0 Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/fib/fib_entry_src.c6
1 files changed, 1 insertions, 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,