summaryrefslogtreecommitdiffstats
path: root/src/flow_stat.h
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-06-26 17:41:29 +0300
committerIdo Barnea <ibarnea@cisco.com>2016-06-26 17:41:40 +0300
commit8635fce7827e0ee75a2fe032e8dce139a746e1c4 (patch)
tree40d37845da515af708ceb651b44c65d0c71cd762 /src/flow_stat.h
parent582e6dddb5693d5fa7576c19b0ef7c1c0723ff59 (diff)
Fx trex-216 - Crash on VM setups when running latency flows
Diffstat (limited to 'src/flow_stat.h')
-rw-r--r--src/flow_stat.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/flow_stat.h b/src/flow_stat.h
index a2137198..25d16173 100644
--- a/src/flow_stat.h
+++ b/src/flow_stat.h
@@ -35,7 +35,8 @@
// Do not change this value. In i350 cards, we filter according to first byte of IP ID
// In other places, we identify packets by if (ip_id > IP_ID_RESERVE_BASE)
#define IP_ID_RESERVE_BASE 0xff00
-#define FLOW_STAT_PAYLOAD_MAGIC 0xABCD
+#define FLOW_STAT_PAYLOAD_MAGIC 0xAB
+#define FLOW_STAT_PAYLOAD_INITIAL_FLOW_SEQ 0x01
extern const uint16_t FLOW_STAT_PAYLOAD_IP_ID;
typedef std::map<uint32_t, uint16_t> flow_stat_map_t;
@@ -44,7 +45,8 @@ typedef std::map<uint32_t, uint16_t>::iterator flow_stat_map_it_t;
class CRxCoreStateless;
struct flow_stat_payload_header {
- uint16_t magic;
+ uint8_t magic;
+ uint8_t flow_seq;
uint16_t hw_id;
uint32_t seq;
uint64_t time_stamp;