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.
Showing the changes to include/uapi (1 of 3 files). Show all
Unified · Split
| @@ -341,6 +341,15 @@ enum macvlan_macaddr_mode { · 340 unmodified lines | |||
| 341 | 341 | ||
| 342 | #define MACVLAN_FLAG_NOPROMISC 1 | 342 | #define MACVLAN_FLAG_NOPROMISC 1 |
| 343 | 343 | ||
| 344 | /* VRF section */ | ||
| 345 | enum { | ||
| 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 */ |
| 345 | enum { | 354 | enum { |
| 346 | IFLA_IPVLAN_UNSPEC, | 355 | IFLA_IPVLAN_UNSPEC, |