linux/drivers/net
Breno Leitao 2a68a22304 netdevsim: account dropped packet length in stats on queue free
Add a call to dev_dstats_rx_dropped_add() in nsim_queue_free() to
account for the number of packets dropped when purging the skb queue.
This improves the accuracy of RX drop statistics reported by netdevsim.

local_bh_{disable, enable}() protection is used to disable preemption,
which is necessary given that dev_dstats_rx_dropped_add() access
this_cpu_ptr(). See discussion in [1].

Link: https://lore.kernel.org/all/20250617055934.3fd9d322@kernel.org/ [1]
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20250618-netdevsim_stat-v4-4-19fe0d35e28e@debian.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-06-19 16:15:34 -07:00
..
arcnet treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
bonding net: core: Convert dev_set_mac_address() to struct sockaddr_storage 2025-05-27 08:25:43 +02:00
caif
can Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2025-06-19 13:00:24 -07:00
dsa net: dsa: mt7530: use new GPIO line value setter callbacks 2025-06-17 18:04:10 -07:00
ethernet net: mana: Set tx_packets to post gso processing packet count 2025-06-19 23:53:14 +01:00
fddi treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
fjes
hamradio treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
hippi treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
hyperv net: drv: hyperv: migrate to new RXFH callbacks 2025-06-12 17:47:09 -07:00
ieee802154
ipa net: ipa: Make the SMEM item ID constant 2025-05-13 15:42:50 -07:00
ipvlan
mctp net: mctp: start tx queue on netdev open 2025-05-27 17:23:19 -07:00
mdio net: pse-pd: Introduce attached_phydev to pse control 2025-06-18 19:00:15 -07:00
netdevsim netdevsim: account dropped packet length in stats on queue free 2025-06-19 16:15:34 -07:00
ovpn net: ipv6: Add a flags argument to ip6tunnel_xmit(), udp_tunnel6_xmit_skb() 2025-06-17 18:18:45 -07:00
pcs
phy net: sfp: add quirk for Potron SFP+ XGSPON ONU Stick 2025-06-19 15:42:33 -07:00
plip
ppp ppp: convert to percpu netstats 2025-06-11 14:11:48 -07:00
pse-pd net: pse-pd: tps23881: Add support for static port priority feature 2025-06-18 19:00:18 -07:00
slip treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
team net: core: Convert dev_set_mac_address() to struct sockaddr_storage 2025-05-27 08:25:43 +02:00
thunderbolt
usb net: usb: Convert tasklet API to new bottom half workqueue mechanism 2025-06-19 15:40:02 -07:00
vmxnet3 net: drv: vmxnet3: migrate to new RXFH callbacks 2025-06-12 17:16:20 -07:00
vxlan vxlan: drop sock_lock 2025-06-18 18:53:51 -07:00
wan treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
wireguard net: ipv6: Add a flags argument to ip6tunnel_xmit(), udp_tunnel6_xmit_skb() 2025-06-17 18:18:45 -07:00
wireless fixes for 6.16-rc3 2025-06-18 10:49:16 +02:00
wwan net: wwan: mhi_wwan_mbim: use correct mux_id for multiplexing 2025-06-05 12:27:20 +02:00
xen-netback treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
amt.c net: ipv4: Add a flags argument to iptunnel_xmit(), udp_tunnel_xmit_skb() 2025-06-17 18:18:44 -07:00
bareudp.c net: ipv6: Add a flags argument to ip6tunnel_xmit(), udp_tunnel6_xmit_skb() 2025-06-17 18:18:45 -07:00
dummy.c
eql.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
geneve.c geneve: rely on rtnl lock in geneve_offload_rx_ports 2025-06-18 18:53:51 -07:00
gtp.c net: ipv6: Add a flags argument to ip6tunnel_xmit(), udp_tunnel6_xmit_skb() 2025-06-17 18:18:45 -07:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c macsec: MACsec SCI assignment for ES = 0 2025-06-11 10:12:01 +01:00
macvlan.c net: core: Convert dev_set_mac_address() to struct sockaddr_storage 2025-05-27 08:25:43 +02:00
macvtap.c
Makefile
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c netconsole: append msgid to sysdata 2025-06-18 10:46:10 +01:00
netkit.c
nlmon.c
ntb_netdev.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
pfcp.c
rionet.c
Space.c
sungem_phy.c
tap.c net: core: Convert dev_set_mac_address_user() to use struct sockaddr_storage 2025-05-27 08:25:43 +02:00
tun.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
tun_vnet.h
veth.c veth: prevent NULL pointer dereference in veth_xdp_rcv 2025-06-12 08:08:32 -07:00
virtio_net.c net: drv: virtio: migrate to new RXFH callbacks 2025-06-12 17:46:58 -07:00
vrf.c
vsockmon.c
xen-netfront.c treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00