mbox series

[net-next,0/3] net: use DEV_STATS_xxx() helpers in virtio_net and l2tp_eth

Message ID 20230819044059.833749-1-edumazet@google.com (mailing list archive)
Headers show
Series net: use DEV_STATS_xxx() helpers in virtio_net and l2tp_eth | expand

Message

Eric Dumazet Aug. 19, 2023, 4:40 a.m. UTC
Inspired by another (minor) KCSAN syzbot report.
Both virtio_net and l2tp_eth can use DEV_STATS_xxx() helpers.

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       | 32 ++++++++++++--------------------
 4 files changed, 31 insertions(+), 38 deletions(-)