summaryrefslogtreecommitdiff
path: root/drivers/net/nlmon.c
diff options
context:
space:
mode:
authorLi RongQing <lirongqing@baidu.com>2018-09-14 16:00:51 +0800
committerDavid S. Miller <davem@davemloft.net>2018-09-14 08:32:23 -0700
commit52bb6677d530d37055092d86b4eab69dce6c166a (patch)
tree9701036db4955aa531c835ca07e186aaf3662601 /drivers/net/nlmon.c
parentee4fccbee7d397c4d937e20d8c76212ffc23a7e3 (diff)
net: move definition of pcpu_lstats to header file
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>
Diffstat (limited to 'drivers/net/nlmon.c')
-rw-r--r--drivers/net/nlmon.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/nlmon.c b/drivers/net/nlmon.c
index 4b22955de191..dd0db7534cb3 100644
--- a/drivers/net/nlmon.c
+++ b/drivers/net/nlmon.c
@@ -6,12 +6,6 @@
#include <linux/if_arp.h>
#include <net/rtnetlink.h>
-struct pcpu_lstats {
- u64 packets;
- u64 bytes;
- struct u64_stats_sync syncp;
-};
-
static netdev_tx_t nlmon_xmit(struct sk_buff *skb, struct net_device *dev)
{
int len = skb->len;