Re: [PATCH net-next 1/9] net: Introduce VRF related flags and helpers

2015-08-11 Thread David Miller
From: David Ahern Date: Mon, 10 Aug 2015 11:50:28 -0600 > +static inline int vrf_dev_table(const struct net_device *dev) > +{ > + int tb_id = 0; > + > + rcu_read_lock(); > + tb_id = vrf_dev_table_rcu(dev); > + rcu_read_unlock(); > + > + return tb_id; > +} The initialization o

[PATCH net-next 1/9] net: Introduce VRF related flags and helpers

2015-08-10 Thread David Ahern
Add a VRF_MASTER flag for interfaces and helper functions for determining if a device is a VRF_MASTER. Add link attribute for passing VRF_TABLE id. Add vrf_ptr to netdevice. Add various macros for determining if a device is a VRF device, the index of the master VRF device and table associated wi