e83fc38770dd41837741037ae2507d1e61859b93
[cascardo/linux.git] / include / net / vrf.h
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 */