Add worker-handoff node
[vpp.git] / vnet / vnet / buffer.h
index 0506422..ea25ad0 100644 (file)
@@ -64,6 +64,9 @@
 #define LOG2_BUFFER_OUTPUT_FEAT_DONE LOG2_VLIB_BUFFER_FLAG_USER(5)
 #define BUFFER_OUTPUT_FEAT_DONE (1 << LOG2_BUFFER_OUTPUT_FEAT_DONE)
 
+#define LOG2_BUFFER_HANDOFF_NEXT_VALID LOG2_VLIB_BUFFER_FLAG_USER(6)
+#define BUFFER_HANDOFF_NEXT_VALID (1 << LOG2_BUFFER_HANDOFF_NEXT_VALID)
+
 #define foreach_buffer_opaque_union_subtype     \
 _(ethernet)                                     \
 _(ip)                                           \
@@ -73,7 +76,7 @@ _(l2)                                           \
 _(l2t)                                          \
 _(gre)                                          \
 _(l2_classify)                                  \
-_(io_handoff)                                   \
+_(handoff)                                      \
 _(policer)                                      \
 _(output_features)                             \
 _(map)                                         \
@@ -185,7 +188,7 @@ typedef struct {
     /* IO - worker thread handoff */
     struct {
       u32 next_index;
-    } io_handoff;
+    } handoff;
 
     /* vnet policer */
     struct {