X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=vnet%2Fvnet%2Fvnet.h;h=5a8ae8586783062c28a5dba3763fffb0f0d0f475;hb=adb13d69add72499faecacc55739e646acda3532;hp=31faef7cbb91516915b8a173f2b32222db2e6acc;hpb=5331c72daa9f7d345915a865df898cff652289ac;p=vpp.git diff --git a/vnet/vnet/vnet.h b/vnet/vnet/vnet.h index 31faef7cbb9..5a8ae858678 100644 --- a/vnet/vnet/vnet.h +++ b/vnet/vnet/vnet.h @@ -42,14 +42,6 @@ #include -typedef enum -{ - VNET_IP_RX_UNICAST_FEAT, - VNET_IP_RX_MULTICAST_FEAT, - VNET_IP_TX_FEAT, - VNET_N_IP_FEAT, -} vnet_cast_t; - #include #include #include @@ -67,10 +59,16 @@ typedef struct vnet_main_t /* set up by constructors */ vnet_device_class_t *device_class_registrations; vnet_hw_interface_class_t *hw_interface_class_registrations; - _vnet_interface_function_list_elt_t *hw_interface_add_del_functions; - _vnet_interface_function_list_elt_t *hw_interface_link_up_down_functions; - _vnet_interface_function_list_elt_t *sw_interface_add_del_functions; - _vnet_interface_function_list_elt_t *sw_interface_admin_up_down_functions; + _vnet_interface_function_list_elt_t + * hw_interface_add_del_functions[VNET_ITF_FUNC_N_PRIO]; + _vnet_interface_function_list_elt_t + * hw_interface_link_up_down_functions[VNET_ITF_FUNC_N_PRIO]; + _vnet_interface_function_list_elt_t + * sw_interface_add_del_functions[VNET_ITF_FUNC_N_PRIO]; + _vnet_interface_function_list_elt_t + * sw_interface_admin_up_down_functions[VNET_ITF_FUNC_N_PRIO]; + + uword *interface_tag_by_sw_if_index; /* * Last "api" error, preserved so we can issue reasonable diagnostics