diff options
author | Ido Barnea <ibarnea@cisco.com> | 2016-03-24 22:07:43 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2016-03-24 22:07:43 +0200 |
commit | f2488b028d289383086266a512757d0b545d2755 (patch) | |
tree | ea63cebcd6546816ff76644f257af2856841e9ca /src/flow_stat_parser.h | |
parent | 86767eec82bd816136833315d914a1e85e409e49 (diff) |
Revert "Added flow parser for 82599 10G card. Added exceptions for flow stat"
This reverts commit 6c569e6bbf05d940a23028b5d61a13ce4fa2a489.
Diffstat (limited to 'src/flow_stat_parser.h')
-rw-r--r-- | src/flow_stat_parser.h | 36 |
1 files changed, 11 insertions, 25 deletions
diff --git a/src/flow_stat_parser.h b/src/flow_stat_parser.h index 8c9e1418..606a1bec 100644 --- a/src/flow_stat_parser.h +++ b/src/flow_stat_parser.h @@ -19,33 +19,19 @@ limitations under the License. */ -#ifndef __FLOW_STAT_PARSER_H__ -#define __FLOW_STAT_PARSER_H__ - -// Basic flow stat parser. Relevant for xl710/x710/x350 cards -#include "common/Network/Packet/IPHeader.h" - -class CFlowStatParser { +class Cxl710Parser { public: - virtual ~CFlowStatParser() {}; - virtual void reset(); - virtual int parse(uint8_t *pkt, uint16_t len); - virtual bool is_stat_supported() {return m_stat_supported == true;}; - virtual int get_ip_id(uint16_t &ip_id); - virtual int set_ip_id(uint16_t ip_id); - virtual int get_l4_proto(uint8_t &proto); - virtual int test(); + Cxl710Parser(); + void reset(); + int parse(uint8_t *pkt, uint16_t len); + bool is_fdir_supported() {return m_fdir_supported == true;}; + int get_ip_id(uint16_t &ip_id); + int set_ip_id(uint16_t ip_id); + int get_l4_proto(uint8_t &proto); + int test(); - protected: + private: IPHeader *m_ipv4; - bool m_stat_supported; + bool m_fdir_supported; uint8_t m_l4_proto; }; - -class C82599Parser : public CFlowStatParser { - public: - ~C82599Parser() {}; - int parse(uint8_t *pkt, uint16_t len); -}; - -#endif |