On 2/27/18 6:53 AM, Jiri Pirko wrote: > diff --git a/drivers/net/ethernet/mellanox/mlxsw/Kconfig > b/drivers/net/ethernet/mellanox/mlxsw/Kconfig > index 830c3e28505e..93d97b4676eb 100644 > --- a/drivers/net/ethernet/mellanox/mlxsw/Kconfig > +++ b/drivers/net/ethernet/mellanox/mlxsw/Kconfig > @@ -80,6 +80,8 @@ config MLXSW_SPECTRUM > select MLXFW > depends on NET_IPGRE > depends on !(MLXSW_CORE=y && NET_IPGRE=m) > + depends on IPV6_GRE > + depends on !(MLXSW_CORE=y && IPV6_GRE=m) > default m > ---help--- > This driver supports Mellanox Technologies Spectrum Ethernet
Since mlxsw now has a hard dependency on IPv6 the 'if IS_ENABLED(CONFIG_IPV6)' checks can be removed from the spectrum code.