diff options
Diffstat (limited to 'src/vnet/feature')
-rw-r--r-- | src/vnet/feature/feature.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/vnet/feature/feature.h b/src/vnet/feature/feature.h index 7ec43ea853b..eb6c95ca2c2 100644 --- a/src/vnet/feature/feature.h +++ b/src/vnet/feature/feature.h @@ -223,6 +223,13 @@ vnet_feature_next (u32 sw_if_index, u32 * next0, vlib_buffer_t * b0) vnet_feature_next_with_data (sw_if_index, next0, b0, 0); } +static_always_inline int +vnet_device_input_have_features (u32 sw_if_index) +{ + vnet_feature_main_t *fm = &feature_main; + return vnet_have_features (fm->device_input_feature_arc_index, sw_if_index); +} + static_always_inline void vnet_feature_start_device_input_x1 (u32 sw_if_index, u32 * next0, vlib_buffer_t * b0) |