diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2015-09-30 06:07:17 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-30 06:40:33 +0300 |
commit | ec539514e56284b21c47468f23f7d01ff882f51b (patch) | |
tree | aa69aa8cbc18c73ad5304f0fe8e7e6747a5fb00c /drivers/net/vrf.c | |
parent | 93a7e7e837af6846052481da974320c19ab82e5c (diff) | |
download | linux-ec539514e56284b21c47468f23f7d01ff882f51b.tar.xz |
net: Remove vrf header file
Move remaining structs to VRF driver and delete the vrf header file.
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vrf.c')
-rw-r--r-- | drivers/net/vrf.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/net/vrf.c b/drivers/net/vrf.c index df872f4efb0d..64f2ab663ffe 100644 --- a/drivers/net/vrf.c +++ b/drivers/net/vrf.c @@ -34,7 +34,6 @@ #include <net/rtnetlink.h> #include <net/route.h> #include <net/addrconf.h> -#include <net/vrf.h> #include <net/l3mdev.h> #define DRV_NAME "vrf" @@ -45,6 +44,21 @@ #define vrf_master_get_rcu(dev) \ ((struct net_device *)rcu_dereference(dev->rx_handler_data)) +struct slave { + struct list_head list; + struct net_device *dev; +}; + +struct slave_queue { + struct list_head all_slaves; +}; + +struct net_vrf { + struct slave_queue queue; + struct rtable *rth; + u32 tb_id; +}; + struct pcpu_dstats { u64 tx_pkts; u64 tx_bytes; |