diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2015-09-29 23:07:17 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-09-29 23:40:33 -0400 |
commit | ec539514e56284b21c47468f23f7d01ff882f51b (patch) | |
tree | aa69aa8cbc18c73ad5304f0fe8e7e6747a5fb00c | |
parent | 93a7e7e837af6846052481da974320c19ab82e5c (diff) |
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>
-rw-r--r-- | MAINTAINERS | 1 | ||||
-rw-r--r-- | drivers/net/vrf.c | 16 | ||||
-rw-r--r-- | include/net/vrf.h | 29 |
3 files changed, 15 insertions, 31 deletions
diff --git a/MAINTAINERS b/MAINTAINERS index 3f2d7a9d0bbf..fa43fa2f30e4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -11273,7 +11273,6 @@ M: Shrijeet Mukherjee <shm@cumulusnetworks.com> | |||
11273 | L: netdev@vger.kernel.org | 11273 | L: netdev@vger.kernel.org |
11274 | S: Maintained | 11274 | S: Maintained |
11275 | F: drivers/net/vrf.c | 11275 | F: drivers/net/vrf.c |
11276 | F: include/net/vrf.h | ||
11277 | F: Documentation/networking/vrf.txt | 11276 | F: Documentation/networking/vrf.txt |
11278 | 11277 | ||
11279 | VT1211 HARDWARE MONITOR DRIVER | 11278 | VT1211 HARDWARE MONITOR DRIVER |
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 @@ | |||
34 | #include <net/rtnetlink.h> | 34 | #include <net/rtnetlink.h> |
35 | #include <net/route.h> | 35 | #include <net/route.h> |
36 | #include <net/addrconf.h> | 36 | #include <net/addrconf.h> |
37 | #include <net/vrf.h> | ||
38 | #include <net/l3mdev.h> | 37 | #include <net/l3mdev.h> |
39 | 38 | ||
40 | #define DRV_NAME "vrf" | 39 | #define DRV_NAME "vrf" |
@@ -45,6 +44,21 @@ | |||
45 | #define vrf_master_get_rcu(dev) \ | 44 | #define vrf_master_get_rcu(dev) \ |
46 | ((struct net_device *)rcu_dereference(dev->rx_handler_data)) | 45 | ((struct net_device *)rcu_dereference(dev->rx_handler_data)) |
47 | 46 | ||
47 | struct slave { | ||
48 | struct list_head list; | ||
49 | struct net_device *dev; | ||
50 | }; | ||
51 | |||
52 | struct slave_queue { | ||
53 | struct list_head all_slaves; | ||
54 | }; | ||
55 | |||
56 | struct net_vrf { | ||
57 | struct slave_queue queue; | ||
58 | struct rtable *rth; | ||
59 | u32 tb_id; | ||
60 | }; | ||
61 | |||
48 | struct pcpu_dstats { | 62 | struct pcpu_dstats { |
49 | u64 tx_pkts; | 63 | u64 tx_pkts; |
50 | u64 tx_bytes; | 64 | u64 tx_bytes; |
diff --git a/include/net/vrf.h b/include/net/vrf.h deleted file mode 100644 index e83fc38770dd..000000000000 --- a/include/net/vrf.h +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | /* | ||
2 | * include/net/net_vrf.h - adds vrf dev structure definitions | ||
3 | * Copyright (c) 2015 Cumulus Networks | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify | ||
6 | * it under the terms of the GNU General Public License as published by | ||
7 | * the Free Software Foundation; either version 2 of the License, or | ||
8 | * (at your option) any later version. | ||
9 | */ | ||
10 | |||
11 | #ifndef __LINUX_NET_VRF_H | ||
12 | #define __LINUX_NET_VRF_H | ||
13 | |||
14 | struct slave { | ||
15 | struct list_head list; | ||
16 | struct net_device *dev; | ||
17 | }; | ||
18 | |||
19 | struct slave_queue { | ||
20 | struct list_head all_slaves; | ||
21 | }; | ||
22 | |||
23 | struct net_vrf { | ||
24 | struct slave_queue queue; | ||
25 | struct rtable *rth; | ||
26 | u32 tb_id; | ||
27 | }; | ||
28 | |||
29 | #endif /* __LINUX_NET_VRF_H */ | ||