Allow network device drivers to flag specific network devices as being L2 only, that is, no IPv4/v6 configuration will be allowed on these interfaces, yet they are still usable as configuration endpoints for ethtool interfaces.
Signed-off-by: Florian Fainelli <f.faine...@gmail.com> --- include/uapi/linux/if.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/uapi/linux/if.h b/include/uapi/linux/if.h index 9cf2394f0bcf..2de818930edf 100644 --- a/include/uapi/linux/if.h +++ b/include/uapi/linux/if.h @@ -87,6 +87,7 @@ enum net_device_flags { IFF_LOWER_UP = 1<<16, /* volatile */ IFF_DORMANT = 1<<17, /* volatile */ IFF_ECHO = 1<<18, /* volatile */ + IFF_L2_ONLY = 1<<19, /* volatile */ }; #define IFF_UP IFF_UP @@ -108,9 +109,11 @@ enum net_device_flags { #define IFF_LOWER_UP IFF_LOWER_UP #define IFF_DORMANT IFF_DORMANT #define IFF_ECHO IFF_ECHO +#define IFF_L2_ONLY IFF_L2_ONLY #define IFF_VOLATILE (IFF_LOOPBACK|IFF_POINTOPOINT|IFF_BROADCAST|IFF_ECHO|\ - IFF_MASTER|IFF_SLAVE|IFF_RUNNING|IFF_LOWER_UP|IFF_DORMANT) + IFF_MASTER|IFF_SLAVE|IFF_RUNNING|IFF_LOWER_UP|IFF_DORMANT|\ + IFF_L2_ONLY) #define IF_GET_IFACE 0x0001 /* for querying only */ #define IF_GET_PROTO 0x0002 -- 2.1.0 -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html