bonding: do not sum deprecated statistics
These statistics are marked deprecated, leave them alone. Also keep track of imissed across all ports. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
b5d5b4a88b
commit
476e41929f
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user