net: provide dev_lstats_add() helper
authorEric Dumazet <edumazet@google.com>
Fri, 8 Nov 2019 00:27:15 +0000 (16:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Nov 2019 04:03:08 +0000 (20:03 -0800)
commitdd5382a08157756510aa8d7269c662eccde775cb
treeab87e4101df24bc5d2bc30b4207cc4ce0a59c1c0
parentde7d5084d82794a8e83afb994fcb07f82da3cd7b
net: provide dev_lstats_add() helper

Many network drivers need it and hand-coded the same function.

In order to ease u64_stats_t adoption, it is time to factorize.

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