From 513582c96a6d58a3980b3e444446bc6e5c4e4764 Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Mon, 29 Jul 2019 12:45:27 +0000 Subject: 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 --- src/vnet/fib/fib_path_list.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/vnet/fib/fib_path_list.h') diff --git a/src/vnet/fib/fib_path_list.h b/src/vnet/fib/fib_path_list.h index 06c1b14204b..4ed57138b20 100644 --- a/src/vnet/fib/fib_path_list.h +++ b/src/vnet/fib/fib_path_list.h @@ -104,6 +104,13 @@ typedef enum fib_path_list_flags_t_ { _item <= FIB_PATH_LIST_ATTRIBUTE_LAST; \ _item++) +/** + * The flags on a path-list that contribute to its key in the DB. + * So path-lists with these flags different are not conisdered the + * same. + */ +#define FIB_PATH_LIST_KEY_FLAGS (FIB_PATH_LIST_FLAG_NO_URPF) + extern fib_node_index_t fib_path_list_create(fib_path_list_flags_t flags, const fib_route_path_t *paths); extern fib_node_index_t fib_path_list_create_special(dpo_proto_t nh_proto, -- cgit 1.2.3-korg