Add API calls for packet generator
[vpp.git] / vnet / vnet / buffer.h
index 7153f35..f74be39 100644 (file)
 #define ETH_BUFFER_VLAN_BITS (ETH_BUFFER_VLAN_1_DEEP | \
                               ETH_BUFFER_VLAN_2_DEEP)
 
+#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)                                     \
@@ -71,7 +76,7 @@ _(l2)                                           \
 _(l2t)                                          \
 _(gre)                                          \
 _(l2_classify)                                  \
-_(io_handoff)                                   \
+_(handoff)                                      \
 _(policer)                                      \
 _(output_features)                             \
 _(map)                                         \
@@ -108,9 +113,6 @@ typedef struct {
 
       union {
        struct {
-         /* Current configuration index. */
-         u32 current_config_index;
-
          /* Flow hash value for this packet computed from IP src/dst address
             protocol and ports. */
          u32 flow_hash;
@@ -183,7 +185,7 @@ typedef struct {
     /* IO - worker thread handoff */
     struct {
       u32 next_index;
-    } io_handoff;
+    } handoff;
 
     /* vnet policer */
     struct {