mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 04:24:31 +01:00
`netif_rx()` already increments `rx_dropped` core stat when it fails.
The driver was also updating `ndev->stats.rx_dropped` in the same path.
Since both are reported together via `ip -s -s` command, this resulted
in drops being counted twice in user-visible stats.
Keep the driver update on `if (unlikely(!skb))`, but skip it after
`netif_rx()` errors.
Fixes:
|
||
|---|---|---|
| .. | ||
| jazzsonic.c | ||
| Kconfig | ||
| macsonic.c | ||
| Makefile | ||
| natsemi.c | ||
| ns83820.c | ||
| sonic.c | ||
| sonic.h | ||
| xtsonic.c | ||