-always_inline vnet_hw_interface_t *
-vnet_get_sw_hw_interface (vnet_main_t * vnm, u32 sw_if_index)
-{
- vnet_sw_interface_t *sw = vnet_get_sw_interface (vnm, sw_if_index);
- if (sw->type == VNET_SW_INTERFACE_TYPE_HARDWARE)
- return vnet_get_hw_interface (vnm, sw->hw_if_index);
- return vnet_get_sup_hw_interface (vnm, sw_if_index);
-}
-