net: add DEV_STATS_READ() helper
authorEric Dumazet <edumazet@google.com>
Thu, 21 Sep 2023 08:52:16 +0000 (08:52 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:59:04 +0000 (11:59 +0100)
commitc8670b7b8ddfcb66a55208191602f5dc916a5e53
tree422d8f3246aa24dd3d871ba5c76013811ba7ecda
parent27debe3e7fc21a666f2af0336603d45479a49f5f
net: add DEV_STATS_READ() helper

[ Upstream commit 0b068c714ca9479d2783cc333fff5bc2d4a6d45c ]

Companion of DEV_STATS_INC() & DEV_STATS_ADD().

This is going to be used in the series.

Use it in macsec_get_stats64().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: ff672b9ffeb3 ("ipvlan: properly track tx_errors")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/macsec.c
include/linux/netdevice.h