]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit84dd436e62a2f946c6e0286fcb0669c7d5bd5aa7
tree6fac49846721fd5f09d7770276707e39283537ab
parent33c464140023f4f160451419f090aa6de886cf71
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