diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-09-08 12:04:59 +0300 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-09-13 11:54:20 +0300 |
commit | 58f1ee52761a489322036f111793ddd8e85e197a (patch) | |
tree | 0381145a5b44e685c94a9723f6d75e3cfe924004 /src/flow_stat_parser.h | |
parent | 34a6b9050f9179e8000e54b0b3c07f054322c5a2 (diff) |
APIs and functions in preparation for receive all mode. XL710/i350 mode toggling work.
Diffstat (limited to 'src/flow_stat_parser.h')
-rw-r--r-- | src/flow_stat_parser.h | 11 |
1 files changed, 11 insertions, 0 deletions
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: |