|
@@ -188,6 +188,7 @@ int mlx4_en_DUMP_ETH_STATS(struct mlx4_en_dev *mdev, u8 port, u8 reset)
|
|
|
}
|
|
|
stats->tx_packets = 0;
|
|
|
stats->tx_bytes = 0;
|
|
|
+ stats->tx_dropped = 0;
|
|
|
priv->port_stats.tx_chksum_offload = 0;
|
|
|
priv->port_stats.queue_stopped = 0;
|
|
|
priv->port_stats.wake_queue = 0;
|
|
@@ -199,6 +200,7 @@ int mlx4_en_DUMP_ETH_STATS(struct mlx4_en_dev *mdev, u8 port, u8 reset)
|
|
|
|
|
|
stats->tx_packets += ring->packets;
|
|
|
stats->tx_bytes += ring->bytes;
|
|
|
+ stats->tx_dropped += ring->tx_dropped;
|
|
|
priv->port_stats.tx_chksum_offload += ring->tx_csum;
|
|
|
priv->port_stats.queue_stopped += ring->queue_stopped;
|
|
|
priv->port_stats.wake_queue += ring->wake_queue;
|
|
@@ -251,7 +253,7 @@ int mlx4_en_DUMP_ETH_STATS(struct mlx4_en_dev *mdev, u8 port, u8 reset)
|
|
|
stats->tx_fifo_errors = 0;
|
|
|
stats->tx_heartbeat_errors = 0;
|
|
|
stats->tx_window_errors = 0;
|
|
|
- stats->tx_dropped = be32_to_cpu(mlx4_en_stats->TDROP);
|
|
|
+ stats->tx_dropped += be32_to_cpu(mlx4_en_stats->TDROP);
|
|
|
|
|
|
/* RX stats */
|
|
|
priv->pkstats.rx_multicast_packets = stats->multicast;
|