bonding: do not sum deprecated statistics
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 6 Nov 2015 01:04:34 +0000 (17:04 -0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 12 Nov 2015 22:05:10 +0000 (23:05 +0100)
These statistics are marked deprecated, leave them alone.
Also keep track of imissed across all ports.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
drivers/net/bonding/rte_eth_bond_pmd.c

index 839ba90..aa985f5 100644 (file)
@@ -1815,16 +1815,11 @@ bond_ethdev_stats_get(struct rte_eth_dev *dev, struct rte_eth_stats *stats)
                stats->opackets += slave_stats.opackets;
                stats->ibytes += slave_stats.ibytes;
                stats->obytes += slave_stats.obytes;
+               stats->imissed += slave_stats.imissed;
                stats->ierrors += slave_stats.ierrors;
                stats->oerrors += slave_stats.oerrors;
                stats->imcasts += slave_stats.imcasts;
                stats->rx_nombuf += slave_stats.rx_nombuf;
-               stats->fdirmatch += slave_stats.fdirmatch;
-               stats->fdirmiss += slave_stats.fdirmiss;
-               stats->tx_pause_xon += slave_stats.tx_pause_xon;
-               stats->rx_pause_xon += slave_stats.rx_pause_xon;
-               stats->tx_pause_xoff += slave_stats.tx_pause_xoff;
-               stats->rx_pause_xoff += slave_stats.rx_pause_xoff;
 
                for (j = 0; j < RTE_ETHDEV_QUEUE_STAT_CNTRS; j++) {
                        stats->q_ipackets[j] += slave_stats.q_ipackets[j];