]> git.baikalelectronics.ru Git - kernel.git/commit
net: Introduce VRF related flags and helpers
authorDavid Ahern <dsa@cumulusnetworks.com>
Thu, 13 Aug 2015 20:59:00 +0000 (14:59 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Aug 2015 05:43:20 +0000 (22:43 -0700)
commit4b44537faccf85e97281003fdeb4fffd49457e04
tree80bdaa774217b466eb1014b601c24141ac5e2827
parentb4d00253b7e7779c7874593fa7ea48301aebc474
net: Introduce VRF related flags and helpers

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 with VRF device.

Signed-off-by: Shrijeet Mukherjee <shm@cumulusnetworks.com>
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/vrf.h [new file with mode: 0644]
include/uapi/linux/if_link.h