summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYaroslav Brustinov <ybrustin@cisco.com>2017-03-07 15:45:57 +0200
committerYaroslav Brustinov <ybrustin@cisco.com>2017-03-07 16:54:01 +0200
commit6e3418f5ef5ab9f69a9d745d74bfc14ac07bb40d (patch)
tree9d8c659e82562e7e7a82c1d5a6d0ed49e3a0291a /src
parent8bd778d02fc0260b109bb4bb8fc11e3567e9130d (diff)
* fix net_ixgbe_vf driver xstats not putting id
* add trex21 regression config (IXGBE VF) Change-Id: I9a9f0a0d0ba7a8f5a724cda94185f1be0490915a Signed-off-by: Yaroslav Brustinov <ybrustin@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/dpdk/drivers/net/ixgbe/ixgbe_ethdev.c2
-rw-r--r--src/main_dpdk.cpp2
2 files changed, 3 insertions, 1 deletions
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() {