diff options
author | 2016-06-27 13:43:01 +0300 | |
---|---|---|
committer | 2016-06-27 13:43:01 +0300 | |
commit | 3c693c4d3a57c8567c5e2a8327deb70a08be9a14 (patch) | |
tree | 9c00ef565f1f50318d8bf1bdf9b0f3198c05fb89 /src/dpdk22/drivers/net/i40e | |
parent | bee4308547e9f9a8850bceb929981cf5c780e220 (diff) |
fix trex-218 & trex-219
Diffstat (limited to 'src/dpdk22/drivers/net/i40e')
-rw-r--r-- | src/dpdk22/drivers/net/i40e/i40e_ethdev.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/dpdk22/drivers/net/i40e/i40e_ethdev.c b/src/dpdk22/drivers/net/i40e/i40e_ethdev.c index 5646eb53..623c071c 100644 --- a/src/dpdk22/drivers/net/i40e/i40e_ethdev.c +++ b/src/dpdk22/drivers/net/i40e/i40e_ethdev.c @@ -2145,10 +2145,16 @@ i40e_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) pf->main_vsi->eth_stats.rx_multicast + pf->main_vsi->eth_stats.rx_broadcast - pf->main_vsi->eth_stats.rx_discards; - stats->opackets = pf->main_vsi->eth_stats.tx_unicast + - pf->main_vsi->eth_stats.tx_multicast + - pf->main_vsi->eth_stats.tx_broadcast; - stats->ibytes = ns->eth.rx_bytes; + + stats->opackets = ns->eth.tx_unicast +ns->eth.tx_multicast +ns->eth.tx_broadcast; + /*TREX PATCH move to global transmit and not pf->vsi and we have two high and low priorty + pf->main_vsi->eth_stats.tx_unicast + + pf->main_vsi->eth_stats.tx_multicast + + pf->main_vsi->eth_stats.tx_broadcast; + */ + + stats->ibytes = pf->main_vsi->eth_stats.rx_bytes; + stats->obytes = ns->eth.tx_bytes; stats->oerrors = ns->eth.tx_errors + pf->main_vsi->eth_stats.tx_errors; |