eth: fbnic: fix `tx_dropped` counting
authorMohsin Bashir <mohsin.bashr@gmail.com>
Sat, 3 May 2025 02:01:45 +0000 (19:01 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 6 May 2025 09:07:36 +0000 (11:07 +0200)
commitfbaeb7b0f0ffb660bcc91dd5f96eaf8d99721656
tree02b1d3c92ee1fc1d648831957272cb5673488823
parent8f0ae19346ce1cadf17f5ea6b01e7b6eb815e2fd
eth: fbnic: fix `tx_dropped` counting

Fix the tracking of rtnl_link_stats.tx_dropped. The counter
`tmi.drop.frames` is being double counted whereas, the counter
`tti.cm_drop.frames` is being skipped.

Fixes: f2957147ae7a ("eth: fbnic: add support for TTI HW stats")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Mohsin Bashir <mohsin.bashr@gmail.com>
Reviewed-by: Joe Damato <jdamato@fastly.com>
Link: https://patch.msgid.link/20250503020145.1868252-1-mohsin.bashr@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/meta/fbnic/fbnic_netdev.c