]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Aug 2020 22:32:58 +0000 (15:32 -0700)
commite750f5cdbc92ac42f1e08c58a79e0f33a8ed695f
tree4f19e9818ef271360884c26be79c5ac02e1264f7
parent716609d04b46fd586bfdffeaeda9fd0dc7aa51a4
net: ena: Make missed_tx stat incremental

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: 22d099de9c36 ("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>
drivers/net/ethernet/amazon/ena/ena_netdev.c