Skip to content

net: introduce u64_stats_t

Eric Dumazet netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9net: provide dev_lstats_read() helperdrivers/net/loopback.c include/linux/netdevice.h+19 -70 replies
2/9net: provide dev_lstats_add() helperdrivers/net/loopback.c include/linux/netdevice.h+12 -100 replies
3/9net: nlmon: use standard dev_lstats_add() and dev_lstats_read()drivers/net/nlmon.c+3 -250 replies
4/9veth: use standard dev_lstats_add() and dev_lstats_read()drivers/net/veth.c+11 -320 replies
5/9vsockmon: use standard dev_lstats_add() and dev_lstats_read()drivers/net/vsockmon.c+2 -290 replies
6/9net: dummy: use standard dev_lstats_add() and dev_lstats_read()drivers/net/dummy.c+5 -310 replies
7/9u64_stats: provide u64_stats_t typeinclude/linux/u64_stats_sync.h+47 -40 replies
8/9tun: switch to u64_stats_tdrivers/net/tun.c+16 -160 replies
9/9net: use u64_stats_t in struct pcpu_lstatsdrivers/net/loopback.c include/linux/netdevice.h+6 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/9] net: introduce u64_stats_t

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(-)
Signature · 1 line
2.24.0.432.g9d3f5f5b63-goog