summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-02-25 22:52:07 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2018-02-26 06:30:52 +0000
commitdc09133c33aa5f40a06533b06b136c8574e56ea9 (patch)
tree0ee8a873db330f2b8259d35738db6f2e07b24dbf /src
parent3c7fdc089b1f30e57240f23409900e392ab1e23b (diff)
vnet: add vnet_device_input_have_features function
Change-Id: I28cfa7f7f5e4938146478c4a5cc5ad18612aadaa Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/feature/feature.h7
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)