vnet: add vnet_device_input_have_features function
Change-Id: I28cfa7f7f5e4938146478c4a5cc5ad18612aadaa
Signed-off-by: Damjan Marion <damarion@cisco.com>
diff --git a/src/vnet/feature/feature.h b/src/vnet/feature/feature.h
index 7ec43ea..eb6c95c 100644
--- a/src/vnet/feature/feature.h
+++ b/src/vnet/feature/feature.h
@@ -223,6 +223,13 @@
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)