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.cpp | |
parent | 34a6b9050f9179e8000e54b0b3c07f054322c5a2 (diff) |
APIs and functions in preparation for receive all mode. XL710/i350 mode toggling work.
Diffstat (limited to 'src/flow_stat_parser.cpp')
-rw-r--r-- | src/flow_stat_parser.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/flow_stat_parser.cpp b/src/flow_stat_parser.cpp index 2ab273a6..fd0fb80a 100644 --- a/src/flow_stat_parser.cpp +++ b/src/flow_stat_parser.cpp @@ -433,6 +433,17 @@ int C82599Parser::parse(uint8_t *p, uint16_t len) { return 0; } +int CPassAllParser::parse(uint8_t *pkt, uint16_t len) { + reset(); + + if (len < ETH_HDR_LEN) + return -1; + + m_len = len; + + return 0; +} + bool CSimplePacketParser::Parse(){ rte_mbuf_t * m=m_m; |