Files
linux/drivers/net/ovpn
Ralf Lici 0c0dddc07d ovpn: disable BHs when updating device stats
ovpn updates dev->dstats from both process and softirq contexts. In
particular, TCP paths may run from socket callbacks, workqueues or
strparser work, while UDP receive and ovpn's ndo_start_xmit path may
update the same per-device dstats from BH context.

Add ovpn device drop-stat helpers that disable BHs around
dev_dstats_rx_dropped() and dev_dstats_tx_dropped(), and use them for
drop accounting.

The successful RX dev_dstats_rx_add() update is already covered by the
BH-disabled section around gro_cells_receive(). For the successful TCP
TX dev_dstats_tx_add() update, replace the existing preempt-disabled
section with a BH-disabled one.

Fixes: 11851cbd60 ("ovpn: implement TCP transport")
Signed-off-by: Ralf Lici <ralf@mandelbit.com>
Signed-off-by: Antonio Quartulli <antonio@openvpn.net>
2026-05-15 00:43:55 +02:00
..
2025-04-17 12:30:02 +02:00
2025-04-17 12:30:03 +02:00
2025-04-17 12:30:03 +02:00
2025-04-17 12:30:03 +02:00
2026-03-17 11:08:54 +01:00
2026-03-17 11:08:54 +01:00
2025-04-17 12:30:02 +02:00