netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/3] net: use DEV_STATS_xxx() helpers in virtio_net and l2tp_eth
@ 2023-09-21  8:52 Eric Dumazet
  2023-09-21  8:52 ` [PATCH v2 net-next 1/3] net: add DEV_STATS_READ() helper Eric Dumazet
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Eric Dumazet @ 2023-09-21  8:52 UTC (permalink / raw)
  To: David S . Miller, Jakub Kicinski, Paolo Abeni
  Cc: Simon Horman, netdev, eric.dumazet, Eric Dumazet

Inspired by another (minor) KCSAN syzbot report.
Both virtio_net and l2tp_eth can use DEV_STATS_xxx() helpers.

v2: removed unused @priv variable (Simon, kernel build bot)

Eric Dumazet (3):
  net: add DEV_STATS_READ() helper
  virtio_net: avoid data-races on dev->stats fields
  net: l2tp_eth: use generic dev->stats fields

 drivers/net/macsec.c      |  6 +++---
 drivers/net/virtio_net.c  | 30 +++++++++++++++---------------
 include/linux/netdevice.h |  1 +
 net/l2tp/l2tp_eth.c       | 34 ++++++++++++----------------------
 4 files changed, 31 insertions(+), 40 deletions(-)

-- 
2.42.0.459.ge4e396fd5e-goog


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2023-10-01 15:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-21  8:52 [PATCH v2 net-next 0/3] net: use DEV_STATS_xxx() helpers in virtio_net and l2tp_eth Eric Dumazet
2023-09-21  8:52 ` [PATCH v2 net-next 1/3] net: add DEV_STATS_READ() helper Eric Dumazet
2023-09-21  8:52 ` [PATCH v2 net-next 2/3] virtio_net: avoid data-races on dev->stats fields Eric Dumazet
2023-09-21  8:52 ` [PATCH v2 net-next 3/3] net: l2tp_eth: use generic " Eric Dumazet
2023-09-22  9:41 ` [PATCH v2 net-next 0/3] net: use DEV_STATS_xxx() helpers in virtio_net and l2tp_eth Simon Horman
2023-09-22 11:41 ` Przemek Kitszel
2023-10-01 15:40 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).