]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: ena: Make missed_tx stat incremental
authorShay Agroskin <shayagr@amazon.com>
Wed, 19 Aug 2020 17:28:38 +0000 (20:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 27 Aug 2020 07:30:49 +0000 (09:30 +0200)
commitc296f30ba8c39044002dd0d17fe15df33964e59a
tree72ce11651434093dd71568b8f5654cdb0f0a189d
parent31ee37fc7fb6a5b0bc6a752c048486cb40eebf47
net: ena: Make missed_tx stat incremental

[ Upstream commit ccd143e5150f24b9ba15145c7221b61dd9e41021 ]

Most statistics in ena driver are incremented, meaning that a stat's
value is a sum of all increases done to it since driver/queue
initialization.

This patch makes all statistics this way, effectively making missed_tx
statistic incremental.
Also added a comment regarding rx_drops and tx_drops to make it
clearer how these counters are calculated.

Fixes: 11095fdb712b ("net: ena: add statistics for missed tx packets")
Signed-off-by: Shay Agroskin <shayagr@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/amazon/ena/ena_netdev.c