net: add DEV_STATS_READ() helper

[ Upstream commit 0b068c714c ]

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: ff672b9ffe ("ipvlan: properly track tx_errors")
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Eric Dumazet 2023-09-21 08:52:16 +00:00 • committed by Greg Kroah-Hartman
commit 4836b94e5e
2 changed files with 4 additions and 3 deletions