summaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/vmalloc.py
diff options
context:
space:
mode:
authorYeounsu Moon <yyyynoom@gmail.com>2025-09-13 15:01:36 +0900
committerJakub Kicinski <kuba@kernel.org>2025-09-15 19:06:25 -0700
commit93ab4881a4e2b9657bdce4b8940073bfb4ed5eab (patch)
tree44dd46338bda0aa791a68d8b7a40c91788ca3903 /scripts/gdb/linux/vmalloc.py
parent97499e281823cbe622addad348779b889e99226e (diff)
net: natsemi: fix `rx_dropped` double accounting on `netif_rx()` failure
`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: caf586e5f23c ("net: add a core netdev->rx_dropped counter") Signed-off-by: Yeounsu Moon <yyyynoom@gmail.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20250913060135.35282-3-yyyynoom@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/gdb/linux/vmalloc.py')
0 files changed, 0 insertions, 0 deletions