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>
This commit is contained in:

committed by
David S. Miller

parent
ee4fccbee7
commit
52bb6677d5
@@ -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;
|
||||
|
Reference in New Issue
Block a user