Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
feature: provide a u16 version of vnet_feature_next
[vpp.git]
/
src
/
vnet
/
feature
/
feature.h
diff --git
a/src/vnet/feature/feature.h
b/src/vnet/feature/feature.h
index
cbea659
..
cd01673
100644
(file)
--- a/
src/vnet/feature/feature.h
+++ b/
src/vnet/feature/feature.h
@@
-304,6
+304,14
@@
vnet_feature_next (u32 * next0, vlib_buffer_t * b0)
vnet_feature_next_with_data (next0, b0, 0);
}
vnet_feature_next_with_data (next0, b0, 0);
}
+static_always_inline void
+vnet_feature_next_u16 (u16 * next0, vlib_buffer_t * b0)
+{
+ u32 next32;
+ vnet_feature_next_with_data (&next32, b0, 0);
+ *next0 = next32;
+}
+
static_always_inline int
vnet_device_input_have_features (u32 sw_if_index)
{
static_always_inline int
vnet_device_input_have_features (u32 sw_if_index)
{