diff options
author | Jakub Kicinski <kuba@kernel.org> | 2021-08-27 18:27:44 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2021-08-28 03:14:22 +0300 |
commit | 40bedf7cb2ac949052bf9741ccb9d673d782ae2c (patch) | |
tree | 282d5ee01659f0f754b87d35bf4160b2b98cbe57 /.gitignore | |
parent | 4baf0e0b329874ec5e85480f53851b5f05a7ae58 (diff) | |
download | linux-40bedf7cb2ac949052bf9741ccb9d673d782ae2c.tar.xz |
bnxt: count packets discarded because of netpoll
bnxt may discard packets if Rx completions are consumed
in an attempt to let netpoll make progress. It should be
extremely rare in practice but nonetheless such events
should be counted.
Since completion ring memory is allocated dynamically use
a similar scheme to what is done for HW stats to save them.
Report the stats in rx_dropped and per-netdev ethtool
counter. Chances that users care which ring dropped are
very low.
v3: only save the stat to rx_dropped on reset,
rx_total_netpoll_discards will now only show drops since
last reset, similar to other "total_discard" counters.
Reviewed-by: Michael Chan <michael.chan@broadcom.com>
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions