Skip to contentSkip to conversation

ipv6: default IPV6_SIT to m

PATCH Applied Alyssa Ross 4 participants 8 messages May 3 – May 6

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ipv6: default IPV6_SIT to m

This basically defaulted to m until recently, since IPV6 defaulted to m. Since IPV6 was changed to a boolean with a default of y, IPV6_SIT started defaulting to built-in as well. This results in a surprise sit0 device by default for defconfig (and defconfig-derived config) users at boot. For me, this broke an (admittedly non-robust) script. Preserve the behaviour of most configs by avoiding building this module, that's probably overall seldom used compared to IPv6 as a whole, into the kernel.

Fixes 309b905deee59 ("ipv6: convert CONFIG_IPV6 to built-in only and clean up Kconfigs")

---
v2: update help text as well

 net/ipv6/Kconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv6/Kconfig +2 -2
index c024aa77f25ba..c3806c6ac96f9 100644
@@ -164,7 +164,7 @@ config IPV6_SIT
 	select INET_TUNNEL
 	select NET_IP_TUNNEL
 	select IPV6_NDISC_NODETYPE
-	default y
+	default m
 	help
 	  Tunneling means encapsulating data of one protocol type within
 	  another protocol and sending it over a channel that understands the
@@ -172,7 +172,7 @@ config IPV6_SIT
 	  into IPv4 packets. This is useful if you want to connect two IPv6
 	  networks over an IPv4-only path.
 
-	  Saying M here will produce a module called sit. If unsure, say Y.
+	  Saying M here will produce a module called sit. If unsure, say M.
 
 config IPV6_SIT_6RD
 	bool "IPv6: IPv6 Rapid Deployment (6RD)"

base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731

Signature · 1 line
2.53.0
#1 lore raw
Quoted 11 lines · Alyssa Ross

This basically defaulted to m until recently, since IPV6 defaulted to m. Since IPV6 was changed to a boolean with a default of y, IPV6_SIT started defaulting to built-in as well. This results in a surprise sit0 device by default for defconfig (and defconfig-derived config) users at boot. For me, this broke an (admittedly non-robust) script. Preserve the behaviour of most configs by avoiding building this module, that's probably overall seldom used compared to IPv6 as a whole, into the kernel.

Fixes 309b905deee59 ("ipv6: convert CONFIG_IPV6 to built-in only and clean up Kconfigs")

Hi, I am not sure about this. IPV6_SIT was already defaulting to 'y' for most distributions (except for ARM). Sure, if you had CONFIG_IPV6=m then CONFIG_IPV6_SIT was defaulting to 'm'.

Hm. Maybe we can aim this for net-next tree instead of net? I just don't think this is a fix but a change in behavior. FWIW, it makes sense to me to have this as a module by default.

Let's see what do others think.

Please respect the 24 hours period before reposting

https://docs.kernel.org/process/maintainer-netdev.html#resending-after-review

Thanks,
Fernando.

Quoted 30 lines

---
v2: update help text as well

  net/ipv6/Kconfig | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
net/ipv6/Kconfig +2 -2
index c024aa77f25ba..c3806c6ac96f9 100644
@@ -164,7 +164,7 @@ config IPV6_SIT
  	select INET_TUNNEL
  	select NET_IP_TUNNEL
  	select IPV6_NDISC_NODETYPE
-	default y
+	default m
  	help
  	  Tunneling means encapsulating data of one protocol type within
  	  another protocol and sending it over a channel that understands the
@@ -172,7 +172,7 @@ config IPV6_SIT
  	  into IPv4 packets. This is useful if you want to connect two IPv6
  	  networks over an IPv4-only path.
 
-	  Saying M here will produce a module called sit. If unsure, say Y.
+	  Saying M here will produce a module called sit. If unsure, say M.
 
  config IPV6_SIT_6RD
  	bool "IPv6: IPv6 Rapid Deployment (6RD)"

base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731

#2 lore raw
Quoted 17 lines · Fernando Fernandez Mancera
Quoted 11 lines · Alyssa Ross

This basically defaulted to m until recently, since IPV6 defaulted to m. Since IPV6 was changed to a boolean with a default of y, IPV6_SIT started defaulting to built-in as well. This results in a surprise sit0 device by default for defconfig (and defconfig-derived config) users at boot. For me, this broke an (admittedly non-robust) script. Preserve the behaviour of most configs by avoiding building this module, that's probably overall seldom used compared to IPv6 as a whole, into the kernel.

Fixes 309b905deee59 ("ipv6: convert CONFIG_IPV6 to built-in only and clean up Kconfigs")

Hi, I am not sure about this. IPV6_SIT was already defaulting to 'y' for most distributions (except for ARM). Sure, if you had CONFIG_IPV6=m then CONFIG_IPV6_SIT was defaulting to 'm'.

Quoted 5 lines

Hm. Maybe we can aim this for net-next tree instead of net? I just don't think this is a fix but a change in behavior. FWIW, it makes sense to me to have this as a module by default.

Let's see what do others think.

Yes, it appears you're right. I had only tested on ARM. In that case, perhaps it make sense to instead set this to m in the arm64 defconfig, to preserve the previous situation, but I can also see the value in reducing platform discongruity by letting it change to y on arm64 too.

#3 lore raw
Quoted 23 lines · Alyssa Ross
Quoted 21 lines · Fernando Fernandez Mancera
Quoted 11 lines · Alyssa Ross

This basically defaulted to m until recently, since IPV6 defaulted to m. Since IPV6 was changed to a boolean with a default of y, IPV6_SIT started defaulting to built-in as well. This results in a surprise sit0 device by default for defconfig (and defconfig-derived config) users at boot. For me, this broke an (admittedly non-robust) script. Preserve the behaviour of most configs by avoiding building this module, that's probably overall seldom used compared to IPv6 as a whole, into the kernel.

Fixes 309b905deee59 ("ipv6: convert CONFIG_IPV6 to built-in only and clean up Kconfigs")

Hi, I am not sure about this. IPV6_SIT was already defaulting to 'y' for most distributions (except for ARM). Sure, if you had CONFIG_IPV6=m then CONFIG_IPV6_SIT was defaulting to 'm'.

Hm. Maybe we can aim this for net-next tree instead of net? I just don't think this is a fix but a change in behavior. FWIW, it makes sense to me to have this as a module by default.

Quoted 6 lines
Quoted 1 line

Let's see what do others think.

Yes, it appears you're right. I had only tested on ARM. In that case, perhaps it make sense to instead set this to m in the arm64 defconfig, to preserve the previous situation, but I can also see the value in reducing platform discongruity by letting it change to y on arm64 too.

Changing it on arm64 defconfig would make sense to me too. We should probably visit other configs that might be in the same situation. That in my opinion would qualify a net tree fix as you proposed initially.

maintainer
#4 lore raw
Quoted 8 lines · On Mon, 4 May 2026 17:01:43 +0200 Fernando Fernandez Mancera wrote:
Quoted 4 lines

Yes, it appears you're right. I had only tested on ARM. In that case, perhaps it make sense to instead set this to m in the arm64 defconfig, to preserve the previous situation, but I can also see the value in reducing platform discongruity by letting it change to y on arm64 too.

Changing it on arm64 defconfig would make sense to me too. We should probably visit other configs that might be in the same situation. That in my opinion would qualify a net tree fix as you proposed initially.

Right. I think the fix as posted makes sense. Tunnel drivers should be =m. If other arches default to =y that's likely an oversight. Fedora and I suspect all other distros (and "prod kernels") set SIT=m.

#5 lore raw
Quoted 6 lines · Jakub Kicinski
Quoted 5 lines · On Mon, 4 May 2026 17:01:43 +0200 Fernando Fernandez Mancera wrote:
Quoted 4 lines

Yes, it appears you're right. I had only tested on ARM. In that case, perhaps it make sense to instead set this to m in the arm64 defconfig, to preserve the previous situation, but I can also see the value in reducing platform discongruity by letting it change to y on arm64 too.

Quoted 8 lines
Quoted 3 lines

Changing it on arm64 defconfig would make sense to me too. We should probably visit other configs that might be in the same situation. That in my opinion would qualify a net tree fix as you proposed initially.

Right. I think the fix as posted makes sense. Tunnel drivers should be =m. If other arches default to =y that's likely an oversight. Fedora and I suspect all other distros (and "prod kernels") set SIT=m.

Yes. I checked and every distro I saw is setting this. This make sense, thanks Jakub.

Reviewed-by on v2 1/1
#6 lore raw
In reply to Alyssa Ross
Quoted 11 lines · Alyssa Ross

This basically defaulted to m until recently, since IPV6 defaulted to m. Since IPV6 was changed to a boolean with a default of y, IPV6_SIT started defaulting to built-in as well. This results in a surprise sit0 device by default for defconfig (and defconfig-derived config) users at boot. For me, this broke an (admittedly non-robust) script. Preserve the behaviour of most configs by avoiding building this module, that's probably overall seldom used compared to IPv6 as a whole, into the kernel.

Fixes 309b905deee59 ("ipv6: convert CONFIG_IPV6 to built-in only and clean up Kconfigs")

As discussed:

Thanks!

#7 lore raw
In reply to Alyssa Ross
This patch was applied to netdev/net.git (main) by Jakub Kicinski <[email protected]>:

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <[email protected]>:

Quoted 10 lines · On Sun, 3 May 2026 21:25:16 +0200 you wrote:

This basically defaulted to m until recently, since IPV6 defaulted to m. Since IPV6 was changed to a boolean with a default of y, IPV6_SIT started defaulting to built-in as well. This results in a surprise sit0 device by default for defconfig (and defconfig-derived config) users at boot. For me, this broke an (admittedly non-robust) script. Preserve the behaviour of most configs by avoiding building this module, that's probably overall seldom used compared to IPv6 as a whole, into the kernel.

[...]

Here is the summary with links:
- [v2] ipv6: default IPV6_SIT to m

    https://git.kernel.org/netdev/net/c/901a7d9e2f28

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html