From: Stephen Hemminger Date: Fri, 6 Nov 2015 01:04:36 +0000 (-0800) Subject: i40e: do not report deprecated statistics X-Git-Tag: spdx-start~8073 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=0925b7e11fb4211288d7a604d486ce30b6b75b7c;p=dpdk.git i40e: do not report deprecated statistics The fields in ethernet statistics that are marked deprecated should not be filled in. Signed-off-by: Stephen Hemminger --- diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index cb6648f2db..619dc2d4d3 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -2060,15 +2060,14 @@ i40e_dev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats) stats->oerrors = ns->eth.tx_errors + pf->main_vsi->eth_stats.tx_errors; stats->imcasts = pf->main_vsi->eth_stats.rx_multicast; - stats->fdirmatch = ns->fd_sb_match; /* Rx Errors */ - stats->ibadcrc = ns->crc_errors; - stats->ibadlen = ns->rx_length_errors + ns->rx_undersize + - ns->rx_oversize + ns->rx_fragments + ns->rx_jabber; stats->imissed = ns->eth.rx_discards + pf->main_vsi->eth_stats.rx_discards; - stats->ierrors = stats->ibadcrc + stats->ibadlen + stats->imissed; + stats->ierrors = ns->crc_errors + + ns->rx_length_errors + ns->rx_undersize + + ns->rx_oversize + ns->rx_fragments + ns->rx_jabber + + stats->imissed; PMD_DRV_LOG(DEBUG, "***************** PF stats start *******************"); PMD_DRV_LOG(DEBUG, "rx_bytes: %"PRIu64"", ns->eth.rx_bytes);