]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit4e3c89920cd3a6cfce22c6f537690747c26128dd
tree80bdaa774217b466eb1014b601c24141ac5e2827
parent0344338bd883e5e4a2f80409ed8260cd65d69e3b
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