Skip to content

Commit ec53951

Browse files
David Aherndavem330
authored andcommitted
net: Remove vrf header file
Move remaining structs to VRF driver and delete the vrf header file. Signed-off-by: David Ahern <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 93a7e7e commit ec53951

File tree

3 files changed

+15
-31
lines changed

3 files changed

+15
-31
lines changed

MAINTAINERS

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11273,7 +11273,6 @@ M: Shrijeet Mukherjee <[email protected]>
1127311273
1127411274
S: Maintained
1127511275
F: drivers/net/vrf.c
11276-
F: include/net/vrf.h
1127711276
F: Documentation/networking/vrf.txt
1127811277

1127911278
VT1211 HARDWARE MONITOR DRIVER

drivers/net/vrf.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
#include <net/rtnetlink.h>
3535
#include <net/route.h>
3636
#include <net/addrconf.h>
37-
#include <net/vrf.h>
3837
#include <net/l3mdev.h>
3938

4039
#define DRV_NAME "vrf"
@@ -45,6 +44,21 @@
4544
#define vrf_master_get_rcu(dev) \
4645
((struct net_device *)rcu_dereference(dev->rx_handler_data))
4746

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+
4862
struct pcpu_dstats {
4963
u64 tx_pkts;
5064
u64 tx_bytes;

include/net/vrf.h

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)