diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2015-08-13 14:59:00 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-08-13 22:43:20 -0700 |
commit | 4e3c89920cd3a6cfce22c6f537690747c26128dd (patch) | |
tree | 80bdaa774217b466eb1014b601c24141ac5e2827 /include/uapi/linux | |
parent | 0344338bd883e5e4a2f80409ed8260cd65d69e3b (diff) | |
download | op-kernel-dev-4e3c89920cd3a6cfce22c6f537690747c26128dd.zip op-kernel-dev-4e3c89920cd3a6cfce22c6f537690747c26128dd.tar.gz |
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>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r-- | include/uapi/linux/if_link.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/uapi/linux/if_link.h b/include/uapi/linux/if_link.h index d450be3..313c305 100644 --- a/include/uapi/linux/if_link.h +++ b/include/uapi/linux/if_link.h @@ -341,6 +341,15 @@ enum macvlan_macaddr_mode { #define MACVLAN_FLAG_NOPROMISC 1 +/* VRF section */ +enum { + IFLA_VRF_UNSPEC, + IFLA_VRF_TABLE, + __IFLA_VRF_MAX +}; + +#define IFLA_VRF_MAX (__IFLA_VRF_MAX - 1) + /* IPVLAN section */ enum { IFLA_IPVLAN_UNSPEC, |