From 6e3418f5ef5ab9f69a9d745d74bfc14ac07bb40d Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Tue, 7 Mar 2017 15:45:57 +0200 Subject: * fix net_ixgbe_vf driver xstats not putting id * add trex21 regression config (IXGBE VF) Change-Id: I9a9f0a0d0ba7a8f5a724cda94185f1be0490915a Signed-off-by: Yaroslav Brustinov --- src/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c | 2 ++ src/main_dpdk.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c b/src/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c index 03caf568..8798f6d6 100644 --- a/src/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/src/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c @@ -3251,6 +3251,8 @@ ixgbevf_dev_xstats_get(struct rte_eth_dev *dev, struct rte_eth_xstat *xstats, for (i = 0; i < IXGBEVF_NB_XSTATS; i++) { xstats[i].value = *(uint64_t *)(((char *)hw_stats) + rte_ixgbevf_stats_strings[i].offset); + /* TRex patch */ + xstats[i].id = i; } return IXGBEVF_NB_XSTATS; diff --git a/src/main_dpdk.cpp b/src/main_dpdk.cpp index 6fb375fa..7cb3bbd8 100644 --- a/src/main_dpdk.cpp +++ b/src/main_dpdk.cpp @@ -303,7 +303,7 @@ public: m_cap = /*TREX_DRV_CAP_DROP_Q | TREX_DRV_CAP_MAC_ADDR_CHG */ TREX_DRV_FLOW_CTRL_CHG; } virtual void get_extended_stats(CPhyEthIF * _if, CPhyEthIFStats *stats) { - get_extended_stats_fixed(_if, stats, 0, 4); + get_extended_stats_fixed(_if, stats, 4, 4); } virtual void update_configuration(port_cfg_t * cfg); static CTRexExtendedDriverBase * create() { -- cgit 1.2.3-korg