diff options
author | Neale Ranns <nranns@cisco.com> | 2019-07-29 12:45:27 +0000 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-07-31 10:08:40 +0000 |
commit | 513582c96a6d58a3980b3e444446bc6e5c4e4764 (patch) | |
tree | 3aff0bcae9c3666d4e7fc270d0f0890068e7146e /src/vnet/fib/fib_path_list.c | |
parent | 5ca2a8ae19c93d24070df066d027da791294b827 (diff) |
fib: Add some path-list flags to its key
Type: fix
Ticket: 1729
The flags that are permanently set on a path-list should form part of
its key in the path-list DB. Otherwise, if shared, they will not behave
as expected.
Change-Id: I0aa7c7c5d270c97b08014e4a47ddbdcee2358706
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'src/vnet/fib/fib_path_list.c')
-rw-r--r-- | src/vnet/fib/fib_path_list.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vnet/fib/fib_path_list.c b/src/vnet/fib/fib_path_list.c index d3543836424..a9976e52ba9 100644 --- a/src/vnet/fib/fib_path_list.c +++ b/src/vnet/fib/fib_path_list.c @@ -181,7 +181,10 @@ fib_path_list_hash (fib_path_list_t *path_list) ASSERT(path_list); - new_path_list_hash = old_path_list_hash = vec_len(path_list->fpl_paths); + new_path_list_hash = + old_path_list_hash = + (vec_len(path_list->fpl_paths) << 16 | + (path_list->fpl_flags & FIB_PATH_LIST_KEY_FLAGS)); vec_foreach (path_index, path_list->fpl_paths) { |