]> git.dujemihanovic.xyz Git - linux.git/commit
net, vrf: Move dstats structure to core
authorDaniel Borkmann <daniel@iogearbox.net>
Tue, 14 Nov 2023 00:42:13 +0000 (01:42 +0100)
committerMartin KaFai Lau <martin.lau@kernel.org>
Mon, 20 Nov 2023 18:15:15 +0000 (10:15 -0800)
commit79e0c5be8c73a674c92bd4ba77b75f4f8c91d32e
tree9ee2b819f5a39f5917cd9c084436be302597bcff
parent76df934c6d5f5c93ba7a0112b1818620ddc10b19
net, vrf: Move dstats structure to core

Just move struct pcpu_dstats out of the vrf into the core, and streamline
the field names slightly, so they better align with the {t,l}stats ones.

No functional change otherwise. A conversion of the u64s to u64_stats_t
could be done at a separate point in future. This move is needed as we are
moving the {t,l,d}stats allocation/freeing to the core.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20231114004220.6495-2-daniel@iogearbox.net
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
drivers/net/vrf.c
include/linux/netdevice.h