diff options
author | Ido Barnea <ibarnea@cisco.com> | 2017-03-21 19:12:26 +0200 |
---|---|---|
committer | Ido Barnea <ibarnea@cisco.com> | 2017-03-21 19:12:26 +0200 |
commit | fa8792d5faeabbd212dd252670bcca8d5b6eb412 (patch) | |
tree | 1ea13642c068aec997893c56718d78522ff1ce01 /src/internal_api/trex_platform_api.h | |
parent | 0f2781cfb1d17bbae2788dcb638146e04d09f3e0 (diff) |
flow stat parsers refactor and adding tests
Signed-off-by: Ido Barnea <ibarnea@cisco.com>
Diffstat (limited to 'src/internal_api/trex_platform_api.h')
-rw-r--r-- | src/internal_api/trex_platform_api.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/internal_api/trex_platform_api.h b/src/internal_api/trex_platform_api.h index 5bd8ff99..16752652 100644 --- a/src/internal_api/trex_platform_api.h +++ b/src/internal_api/trex_platform_api.h @@ -4,7 +4,7 @@ */ /* -Copyright (c) 2015-2015 Cisco Systems, Inc. +Copyright (c) 2015-2017 Cisco Systems, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -263,7 +263,8 @@ public: int get_active_pgids(flow_stat_active_t &result) const {return 0;} int get_cpu_util_full(cpu_util_full_t &result) const {return 0;} int get_mbuf_util(Json::Value &result) const {return 0;} - CFlowStatParser *get_flow_stat_parser() const {return new CFlowStatParser();} + CFlowStatParser *get_flow_stat_parser() const { + return new CFlowStatParser(CFlowStatParser::FLOW_STAT_PARSER_MODE_SW);} TRexPortAttr *getPortAttrObj(uint8_t port_id) const {return m_port_attr;} void mark_for_shutdown() const {} |