netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/9] net: introduce u64_stats_t
@ 2019-11-08  0:27 Eric Dumazet
  2019-11-08  0:27 ` [PATCH net-next 1/9] net: provide dev_lstats_read() helper Eric Dumazet
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Eric Dumazet @ 2019-11-08  0:27 UTC (permalink / raw)
  To: David S . Miller; +Cc: netdev, Eric Dumazet, Eric Dumazet

KCSAN found a data-race in per-cpu u64 stats accounting.

(The stack traces are included in the 8th patch :
 tun: switch to u64_stats_t)

This patch series first consolidate code in five patches.
Then the last three patches address the data-race resolution.

Eric Dumazet (9):
  net: provide dev_lstats_read() helper
  net: provide dev_lstats_add() helper
  net: nlmon: use standard dev_lstats_add() and dev_lstats_read()
  veth: use standard dev_lstats_add() and dev_lstats_read()
  vsockmon: use standard dev_lstats_add() and dev_lstats_read()
  net: dummy: use standard dev_lstats_add() and dev_lstats_read()
  u64_stats: provide u64_stats_t type
  tun: switch to u64_stats_t
  net: use u64_stats_t in struct pcpu_lstats

 drivers/net/dummy.c            | 36 ++++--------------------
 drivers/net/loopback.c         | 38 +++++++++++++------------
 drivers/net/nlmon.c            | 28 ++-----------------
 drivers/net/tun.c              | 32 ++++++++++-----------
 drivers/net/veth.c             | 43 ++++++++--------------------
 drivers/net/vsockmon.c         | 31 ++-------------------
 include/linux/netdevice.h      | 16 +++++++++--
 include/linux/u64_stats_sync.h | 51 +++++++++++++++++++++++++++++++---
 8 files changed, 118 insertions(+), 157 deletions(-)

-- 
2.24.0.432.g9d3f5f5b63-goog


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

end of thread, other threads:[~2019-11-08  4:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-08  0:27 [PATCH net-next 0/9] net: introduce u64_stats_t Eric Dumazet
2019-11-08  0:27 ` [PATCH net-next 1/9] net: provide dev_lstats_read() helper Eric Dumazet
2019-11-08  0:27 ` [PATCH net-next 2/9] net: provide dev_lstats_add() helper Eric Dumazet
2019-11-08  0:27 ` [PATCH net-next 3/9] net: nlmon: use standard dev_lstats_add() and dev_lstats_read() Eric Dumazet
2019-11-08  0:27 ` [PATCH net-next 4/9] veth: " Eric Dumazet
2019-11-08  0:27 ` [PATCH net-next 5/9] vsockmon: " Eric Dumazet
2019-11-08  0:27 ` [PATCH net-next 6/9] net: dummy: " Eric Dumazet
2019-11-08  0:27 ` [PATCH net-next 7/9] u64_stats: provide u64_stats_t type Eric Dumazet
2019-11-08  0:27 ` [PATCH net-next 8/9] tun: switch to u64_stats_t Eric Dumazet
2019-11-08  0:27 ` [PATCH net-next 9/9] net: use u64_stats_t in struct pcpu_lstats Eric Dumazet
2019-11-08  4:04 ` [PATCH net-next 0/9] net: introduce u64_stats_t David Miller

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).