summaryrefslogtreecommitdiffstats
path: root/src/internal_api
diff options
context:
space:
mode:
authorIdo Barnea <ibarnea@cisco.com>2016-03-02 13:27:36 +0200
committerIdo Barnea <ibarnea@cisco.com>2016-03-02 13:27:36 +0200
commit70cfb9f88b00016f1413754e5625b5b05acc2063 (patch)
treec54d63faa515624282660f2bc280e25002bdd049 /src/internal_api
parent8714436f26fe6ae10559f726573f1f01d2baa8b0 (diff)
Fix for simulator compilation error because of TX stat feature
Diffstat (limited to 'src/internal_api')
-rw-r--r--src/internal_api/trex_platform_api.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/internal_api/trex_platform_api.h b/src/internal_api/trex_platform_api.h
index 40ce374d..7f7ca218 100644
--- a/src/internal_api/trex_platform_api.h
+++ b/src/internal_api/trex_platform_api.h
@@ -221,7 +221,8 @@ public:
virtual void publish_async_data_now(uint32_t key) const {
}
- virtual int get_rx_stats(uint8_t port_id, uint64_t *stats, int index, bool reset) const {return 0;}
+ virtual int get_flow_stats(uint8_t port_id, uint64_t *stats, void *tx_stats, int min, int max, bool reset) const {return 0;};
+ virtual int reset_hw_flow_stats(uint8_t port_id) const {return 0;};
virtual void get_port_num(uint8_t &port_num) const {port_num = 2;};
virtual int add_rx_flow_stat_rule(uint8_t port_id, uint8_t type, uint16_t proto, uint16_t id) const {return 0;}
virtual int del_rx_flow_stat_rule(uint8_t port_id, uint8_t type, uint16_t proto, uint16_t id) const {return 0;}