From 58f1ee52761a489322036f111793ddd8e85e197a Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Thu, 8 Sep 2016 12:04:59 +0300 Subject: APIs and functions in preparation for receive all mode. XL710/i350 mode toggling work. --- src/flow_stat_parser.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/flow_stat_parser.h') diff --git a/src/flow_stat_parser.h b/src/flow_stat_parser.h index 78bc1e6a..df70e4ec 100644 --- a/src/flow_stat_parser.h +++ b/src/flow_stat_parser.h @@ -98,6 +98,17 @@ class C82599Parser : public CFlowStatParser { bool m_vlan_supported; }; +class CPassAllParser : public CFlowStatParser { + public: + virtual int parse(uint8_t *pkt, uint16_t len); + virtual bool is_stat_supported() {return true;} + virtual int get_ip_id(uint32_t &ip_id) { ip_id = 0; return 0;} + virtual int set_ip_id(uint32_t ip_id){return 0;} + virtual int get_l3_proto(uint16_t &proto){proto = 0; return 0;} + virtual int get_l4_proto(uint8_t &proto) {proto = 0; return 0;} + virtual int get_payload_len(uint8_t *p, uint16_t len, uint16_t &payload_len) {payload_len = m_len; return 0;} +}; + // Used for latency statefull packets. Need to be merged with above parser class CSimplePacketParser { public: -- cgit 1.2.3-korg