History

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.

David Ahern committed 11 years ago

Commit 4e3c8991 parent 03443383 files · +168 −0Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/if_link.h+9−0
@@ -341,6 +341,15 @@ enum macvlan_macaddr_mode { · 340 unmodified lines
341 341
342#define MACVLAN_FLAG_NOPROMISC 1342#define MACVLAN_FLAG_NOPROMISC 1
343 343
344/* VRF section */
345enum {
346 IFLA_VRF_UNSPEC,
347 IFLA_VRF_TABLE,
348 __IFLA_VRF_MAX
349};
350
351#define IFLA_VRF_MAX (__IFLA_VRF_MAX - 1)
352
344/* IPVLAN section */353/* IPVLAN section */
345enum {354enum {
346 IFLA_IPVLAN_UNSPEC,355 IFLA_IPVLAN_UNSPEC,