devices: fix high vector rate per dispatch
[vpp.git] / src / vnet / devices / af_packet / af_packet.h
index dd38e1b..217d2f6 100644 (file)
@@ -38,6 +38,13 @@ typedef struct
   u8 host_if_name[64];
 } af_packet_if_detail_t;
 
+typedef struct
+{
+  u32 rx_frame_offset;
+  u32 num_pkts;
+  u8 is_save;
+} save_state_t;
+
 typedef struct
 {
   CLIB_CACHE_LINE_ALIGN_MARK (cacheline0);
@@ -63,6 +70,7 @@ typedef struct
   u32 queue_index;
   u32 host_mtu;
   af_packet_if_mode_t mode;
+  save_state_t ss;
 } af_packet_if_t;
 
 typedef struct