aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/fib
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-10-26 04:17:54 -0700
committerDamjan Marion <dmarion@me.com>2018-10-27 10:24:05 +0000
commit75b39f87119c1df67723798e16f7c18265da4e15 (patch)
treeb0a416ad473173213c75cc1e988ccf22ef8ec3db /src/vnet/fib
parenta91866fc1fd673a5edab6e3cb61bd41b8ea3def7 (diff)
FIB: Sources must be keep in priority order, so re-sort after a vec_del
Change-Id: I77af4f3a7e826ea5c1a23ee8b348faefe9f2facc Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/fib')
-rw-r--r--src/vnet/fib/fib_entry_src.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/fib/fib_entry_src.c b/src/vnet/fib/fib_entry_src.c
index 6868da613e0..b3b40bf2229 100644
--- a/src/vnet/fib/fib_entry_src.c
+++ b/src/vnet/fib/fib_entry_src.c
@@ -173,6 +173,8 @@ fib_entry_src_action_deinit (fib_entry_t *fib_entry,
fib_path_ext_list_flush(&esrc->fes_path_exts);
vec_del1(fib_entry->fe_srcs, index);
+ vec_sort_with_function(fib_entry->fe_srcs,
+ fib_entry_src_cmp_for_sort);
}
fib_entry_src_cover_res_t