net: provide dev_lstats_read() helper
authorEric Dumazet <edumazet@google.com>
Fri, 8 Nov 2019 00:27:14 +0000 (16:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 04:03:08 +0000 (20:03 -0800)
commitde7d5084d82794a8e83afb994fcb07f82da3cd7b
tree6fac49846721fd5f09d7770276707e39283537ab
parent0f030bdb16dc1282e58c5825e5662e351142f605
net: provide dev_lstats_read() helper

Many network drivers use hand-coded implementation of the same thing,
let's factorize things so that u64_stats_t adoption is done once.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/loopback.c
include/linux/netdevice.h