diff options
Diffstat (limited to 'src/flow_stat_parser.h')
-rw-r--r-- | src/flow_stat_parser.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/flow_stat_parser.h b/src/flow_stat_parser.h index 51816e1a..682bc09f 100644 --- a/src/flow_stat_parser.h +++ b/src/flow_stat_parser.h @@ -28,7 +28,8 @@ #include "common/Network/Packet/TcpHeader.h" #include "mbuf.h" -// Basic flow stat parser. Relevant for xl710/x710/x350 cards +// Basic flow stat parser. Imitating HW behavior. It can parse only packets matched by HW fdir rules we define. +// Relevant for xl710/x710, i350, Cisco VIC, Mellanox cards class CFlowStatParser { friend class CFlowStatParserTest; public: @@ -97,6 +98,14 @@ class CFlowStatParser { uint8_t m_vlan_offset; }; +// parser used in --software mode and virtual cards. No hardware limitation. We can support any packert type here. +class CFlowStatParserSW : public CFlowStatParser { + public: + CFlowStatParserSW() {} + ~CFlowStatParserSW() {} + int parse(uint8_t *pkt, uint16_t len); +}; + // relevant for 82599 card class C82599Parser : public CFlowStatParser { public: |