diff options
author | Li RongQing <lirongqing@baidu.com> | 2018-09-14 16:00:51 +0800 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2024-03-15 10:48:14 -0400 |
commit | 6463ace2a35d22642c90147ebced20ef6145eac6 (patch) | |
tree | d85aa78708b30a5bd64879e47e25a16091df68d9 /include/linux | |
parent | 575689f40b415299864bf1826d03e71d3d807c73 (diff) | |
download | linux-stable-6463ace2a35d22642c90147ebced20ef6145eac6.tar.gz linux-stable-6463ace2a35d22642c90147ebced20ef6145eac6.tar.bz2 linux-stable-6463ace2a35d22642c90147ebced20ef6145eac6.zip |
net: move definition of pcpu_lstats to header file
[ Upstream commit 52bb6677d530d37055092d86b4eab69dce6c166a ]
pcpu_lstats is defined in several files, so unify them as one
and move to header file
Signed-off-by: Zhang Yu <zhangyu31@baidu.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 1ca1ba465e55 ("geneve: make sure to pull inner header in geneve_rx()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/netdevice.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index ac87fcc4d44b..89155d171b56 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -2383,6 +2383,12 @@ struct pcpu_sw_netstats { struct u64_stats_sync syncp; }; +struct pcpu_lstats { + u64 packets; + u64 bytes; + struct u64_stats_sync syncp; +}; + #define __netdev_alloc_pcpu_stats(type, gfp) \ ({ \ typeof(type) __percpu *pcpu_stats = alloc_percpu_gfp(type, gfp);\ |