summaryrefslogtreecommitdiffstats
path: root/src/vnet/interface.h
diff options
context:
space:
mode:
authorBenoît Ganne <bganne@cisco.com>2020-11-04 10:02:03 +0100
committerDamjan Marion <dmarion@me.com>2020-11-05 12:36:31 +0000
commit6178bdafa6a318d50cc8ad82f07c6c798c7024ef (patch)
tree16cc8c40ad15444d1a4bfc4c4f5e9595ee379648 /src/vnet/interface.h
parent9c4a582dca7c819ebf3eccd70482d7a03853b51e (diff)
feature: reset interface feature arc on interface deletion
When removing an interface we must reset all per-interface per-feature arc data to ensure we do not get wrong feature arc config data when the sw_if_index is recycled. Type: fix Change-Id: I8c9d850d7c62b7b77193da4258ab5fb9bdda85a6 Signed-off-by: Benoît Ganne <bganne@cisco.com>
Diffstat (limited to 'src/vnet/interface.h')
-rw-r--r--src/vnet/interface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/interface.h b/src/vnet/interface.h
index 5c04c5dc3bb..155e4fc1f0e 100644
--- a/src/vnet/interface.h
+++ b/src/vnet/interface.h
@@ -179,6 +179,8 @@ static __clib_unused void * __clib_unused_##f = f;
_VNET_INTERFACE_FUNCTION_DECL(f,sw_interface_mtu_change)
#define VNET_SW_INTERFACE_ADD_DEL_FUNCTION(f) \
_VNET_INTERFACE_FUNCTION_DECL(f,sw_interface_add_del)
+#define VNET_SW_INTERFACE_ADD_DEL_FUNCTION_PRIO(f,p) \
+ _VNET_INTERFACE_FUNCTION_DECL_PRIO(f,sw_interface_add_del,p)
#define VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION(f) \
_VNET_INTERFACE_FUNCTION_DECL(f,sw_interface_admin_up_down)
#define VNET_SW_INTERFACE_ADMIN_UP_DOWN_FUNCTION_PRIO(f,p) \