* [PATCH 01/02] net/ipv6: seperate sit driver to extra module
@ 2006-10-06 9:34 Joerg Roedel
2006-10-06 11:38 ` Samuel Tardieu
2006-10-06 12:59 ` YOSHIFUJI Hideaki / 吉藤英明
0 siblings, 2 replies; 9+ messages in thread
From: Joerg Roedel @ 2006-10-06 9:34 UTC (permalink / raw)
To: netdev, linux-kernel, David Miller
[-- Attachment #1: Type: text/plain, Size: 368 bytes --]
this is the submit of the patch discussed yesterday to compile the sit
driver as a seperate module.
changes to yesterday:
- default select changed to y in Kconfig
- added ifdefs to net/ipv6/addrconf.c
(this part is big, to keep the patches around 100 lines the
addrconf.c changes are posted in a seperate patch)
Signed-off-by: Joerg Roedel <joro-lkml@zlug.org>
[-- Attachment #2: patch_sit_as_module --]
[-- Type: text/plain, Size: 2918 bytes --]
diff -upr -X linux-2.6.18/Documentation/dontdiff linux-2.6.18-vanilla/net/ipv6/af_inet6.c linux-2.6.18/net/ipv6/af_inet6.c
--- linux-2.6.18-vanilla/net/ipv6/af_inet6.c 2006-09-20 05:42:06.000000000 +0200
+++ linux-2.6.18/net/ipv6/af_inet6.c 2006-10-05 16:55:02.000000000 +0200
@@ -849,7 +849,6 @@ static int __init inet6_init(void)
err = addrconf_init();
if (err)
goto addrconf_fail;
- sit_init();
/* Init v6 extension headers. */
ipv6_rthdr_init();
@@ -920,7 +919,6 @@ static void __exit inet6_exit(void)
raw6_proc_exit();
#endif
/* Cleanup code parts. */
- sit_cleanup();
ip6_flowlabel_cleanup();
addrconf_cleanup();
ip6_route_cleanup();
diff -upr -X linux-2.6.18/Documentation/dontdiff linux-2.6.18-vanilla/net/ipv6/Kconfig linux-2.6.18/net/ipv6/Kconfig
--- linux-2.6.18-vanilla/net/ipv6/Kconfig 2006-09-20 05:42:06.000000000 +0200
+++ linux-2.6.18/net/ipv6/Kconfig 2006-10-05 18:14:57.000000000 +0200
@@ -126,6 +126,19 @@ config INET6_XFRM_MODE_TUNNEL
If unsure, say Y.
+config IPV6_SIT
+ tristate "IPv6: IPv6-in-IPv4 tunnel (SIT driver)"
+ depends on IPV6
+ default y
+ ---help---
+ Tunneling means encapsulating data of one protocol type within
+ another protocol and sending it over a channel that understands the
+ encapsulating protocol. This driver implements encapsulation of IPv6
+ into IPv4 packets. This is usefull if you want to connect two IPv6
+ networks over an IPv4-only path.
+
+ Saying M here will produce a module called sit.ko. If unsure, say N.
+
config IPV6_TUNNEL
tristate "IPv6: IPv6-in-IPv6 tunnel"
select INET6_TUNNEL
diff -upr -X linux-2.6.18/Documentation/dontdiff linux-2.6.18-vanilla/net/ipv6/Makefile linux-2.6.18/net/ipv6/Makefile
--- linux-2.6.18-vanilla/net/ipv6/Makefile 2006-09-20 05:42:06.000000000 +0200
+++ linux-2.6.18/net/ipv6/Makefile 2006-10-05 17:10:42.000000000 +0200
@@ -4,7 +4,7 @@
obj-$(CONFIG_IPV6) += ipv6.o
-ipv6-objs := af_inet6.o anycast.o ip6_output.o ip6_input.o addrconf.o sit.o \
+ipv6-objs := af_inet6.o anycast.o ip6_output.o ip6_input.o addrconf.o \
route.o ip6_fib.o ipv6_sockglue.o ndisc.o udp.o raw.o \
protocol.o icmp.o mcast.o reassembly.o tcp_ipv6.o \
exthdrs.o sysctl_net_ipv6.o datagram.o proc.o \
@@ -24,6 +24,7 @@ obj-$(CONFIG_INET6_XFRM_MODE_TRANSPORT)
obj-$(CONFIG_INET6_XFRM_MODE_TUNNEL) += xfrm6_mode_tunnel.o
obj-$(CONFIG_NETFILTER) += netfilter/
+obj-$(CONFIG_IPV6_SIT) += sit.o
obj-$(CONFIG_IPV6_TUNNEL) += ip6_tunnel.o
obj-y += exthdrs_core.o
diff -upr -X linux-2.6.18/Documentation/dontdiff linux-2.6.18-vanilla/net/ipv6/sit.c linux-2.6.18/net/ipv6/sit.c
--- linux-2.6.18-vanilla/net/ipv6/sit.c 2006-09-20 05:42:06.000000000 +0200
+++ linux-2.6.18/net/ipv6/sit.c 2006-10-05 16:55:02.000000000 +0200
@@ -850,3 +850,6 @@ int __init sit_init(void)
inet_del_protocol(&sit_protocol, IPPROTO_IPV6);
goto out;
}
+
+module_init(sit_init);
+module_exit(sit_cleanup);
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 01/02] net/ipv6: seperate sit driver to extra module
2006-10-06 9:34 [PATCH 01/02] net/ipv6: seperate sit driver to extra module Joerg Roedel
@ 2006-10-06 11:38 ` Samuel Tardieu
2006-10-06 11:44 ` Peter Bieringer
2006-10-06 12:09 ` Joerg Roedel
2006-10-06 12:59 ` YOSHIFUJI Hideaki / 吉藤英明
1 sibling, 2 replies; 9+ messages in thread
From: Samuel Tardieu @ 2006-10-06 11:38 UTC (permalink / raw)
To: netdev; +Cc: linux-kernel
>>>>> "Joerg" == Joerg Roedel <joro-lkml@zlug.org> writes:
Joerg> this is the submit of the patch discussed yesterday to compile
Joerg> the sit driver as a seperate module.
Your patch looks ok to me, but given that many people won't need sit,
why is it enabled by default? Omitting it would save 10k of kernel
text on x86 and people will see the new kernel configuration option
anyway and will enable it if needed.
Sam
--
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 01/02] net/ipv6: seperate sit driver to extra module
2006-10-06 11:38 ` Samuel Tardieu
@ 2006-10-06 11:44 ` Peter Bieringer
2006-10-06 12:09 ` Joerg Roedel
1 sibling, 0 replies; 9+ messages in thread
From: Peter Bieringer @ 2006-10-06 11:44 UTC (permalink / raw)
To: Samuel Tardieu; +Cc: netdev, linux-kernel
Samuel Tardieu schrieb:
>>>>>> "Joerg" == Joerg Roedel <joro-lkml@zlug.org> writes:
>
> Joerg> this is the submit of the patch discussed yesterday to compile
> Joerg> the sit driver as a seperate module.
>
> Your patch looks ok to me, but given that many people won't need sit,
> why is it enabled by default? Omitting it would save 10k of kernel
> text on x86 and people will see the new kernel configuration option
> anyway and will enable it if needed.
At least if set to "n" don't forget to alert the distributors (Red Hat,
etc.) to renable this. Otherwise, many clients which using 6to4 will fail...
Just my 2 cents,
Peter
--
Dr. Peter Bieringer http://www.bieringer.de/pb/
GPG/PGP Key 0x958F422D mailto:pb@bieringer.de
Deep Space 6 Co-Founder and Core Member http://www.deepspace6.net/
OpenBC http://www.openbc.com/hp/Peter_Bieringer/
Personal invitation to OpenBC http://www.openbc.com/go/invita/3889
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 01/02] net/ipv6: seperate sit driver to extra module
2006-10-06 11:38 ` Samuel Tardieu
2006-10-06 11:44 ` Peter Bieringer
@ 2006-10-06 12:09 ` Joerg Roedel
2006-10-06 12:24 ` Samuel Tardieu
1 sibling, 1 reply; 9+ messages in thread
From: Joerg Roedel @ 2006-10-06 12:09 UTC (permalink / raw)
To: Samuel Tardieu; +Cc: linux-kernel, netdev
On Fri, Oct 06, 2006 at 01:38:24PM +0200, Samuel Tardieu wrote:
> >>>>> "Joerg" == Joerg Roedel <joro-lkml@zlug.org> writes:
>
> Joerg> this is the submit of the patch discussed yesterday to compile
> Joerg> the sit driver as a seperate module.
>
> Your patch looks ok to me, but given that many people won't need sit,
> why is it enabled by default? Omitting it would save 10k of kernel
> text on x86 and people will see the new kernel configuration option
> anyway and will enable it if needed.
It is enabled per default because the users get this per default when
using the current IPv6 module. James Morris mentioned this issue
yesterday. I think setting the default to N would be more consistent,
but the Y is probably less painfull for the users.
Joerg
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 01/02] net/ipv6: seperate sit driver to extra module
2006-10-06 12:09 ` Joerg Roedel
@ 2006-10-06 12:24 ` Samuel Tardieu
0 siblings, 0 replies; 9+ messages in thread
From: Samuel Tardieu @ 2006-10-06 12:24 UTC (permalink / raw)
To: netdev; +Cc: linux-kernel
>>>>> "Joerg" == Joerg Roedel <joro-lkml@zlug.org> writes:
Joerg> It is enabled per default because the users get this per
Joerg> default when using the current IPv6 module. James Morris
Joerg> mentioned this issue yesterday. I think setting the default to
Joerg> N would be more consistent, but the Y is probably less painfull
Joerg> for the users.
Makes sense. I proposed this because I reconfigure my kernel with
"make oldconfig" and see new questions pop up. Maybe menuconfig and
xconfig should proeminently highlight NEW questions from the top-level
(by using a bold font on any item which is either new or has new
sub-items) so that users get a clear view of what they may need to
configure.
Sam
--
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 01/02] net/ipv6: seperate sit driver to extra module
2006-10-06 9:34 [PATCH 01/02] net/ipv6: seperate sit driver to extra module Joerg Roedel
2006-10-06 11:38 ` Samuel Tardieu
@ 2006-10-06 12:59 ` YOSHIFUJI Hideaki / 吉藤英明
2006-10-06 15:15 ` Joerg Roedel
1 sibling, 1 reply; 9+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2006-10-06 12:59 UTC (permalink / raw)
To: joro-lkml; +Cc: netdev, linux-kernel, davem, yoshfuji
In article <20061006093402.GA12460@zlug.org> (at Fri, 6 Oct 2006 11:34:02 +0200), Joerg Roedel <joro-lkml@zlug.org> says:
> this is the submit of the patch discussed yesterday to compile the sit
> driver as a seperate module.
>
> changes to yesterday:
> - default select changed to y in Kconfig
> - added ifdefs to net/ipv6/addrconf.c
> (this part is big, to keep the patches around 100 lines the
> addrconf.c changes are posted in a seperate patch)
>
> Signed-off-by: Joerg Roedel <joro-lkml@zlug.org>
> + into IPv4 packets. This is usefull if you want to connect two IPv6
~~~~~~~useful
Otherwise, it seems okay to me.
--yoshfuji
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH 01/02] net/ipv6: seperate sit driver to extra module
2006-10-06 12:59 ` YOSHIFUJI Hideaki / 吉藤英明
@ 2006-10-06 15:15 ` Joerg Roedel
2006-10-07 5:05 ` Bill Fink
0 siblings, 1 reply; 9+ messages in thread
From: Joerg Roedel @ 2006-10-06 15:15 UTC (permalink / raw)
To: YOSHIFUJI Hideaki / ?$B5HF#1QL@; +Cc: netdev, linux-kernel, davem
[-- Attachment #1: Type: text/plain, Size: 257 bytes --]
On Fri, Oct 06, 2006 at 09:59:35PM +0900, YOSHIFUJI Hideaki / ?$B5HF#1QL@ wrote:
> > + into IPv4 packets. This is usefull if you want to connect two IPv6
Argh. Bad typo. I appended the fixed patch
Signed-off-by: Joerg Roedel <joro-lkml@zlug.org>
[-- Attachment #2: patch_sit_as_module --]
[-- Type: text/plain, Size: 2917 bytes --]
diff -upr -X linux-2.6.18/Documentation/dontdiff linux-2.6.18-vanilla/net/ipv6/af_inet6.c linux-2.6.18/net/ipv6/af_inet6.c
--- linux-2.6.18-vanilla/net/ipv6/af_inet6.c 2006-09-20 05:42:06.000000000 +0200
+++ linux-2.6.18/net/ipv6/af_inet6.c 2006-10-05 16:55:02.000000000 +0200
@@ -849,7 +849,6 @@ static int __init inet6_init(void)
err = addrconf_init();
if (err)
goto addrconf_fail;
- sit_init();
/* Init v6 extension headers. */
ipv6_rthdr_init();
@@ -920,7 +919,6 @@ static void __exit inet6_exit(void)
raw6_proc_exit();
#endif
/* Cleanup code parts. */
- sit_cleanup();
ip6_flowlabel_cleanup();
addrconf_cleanup();
ip6_route_cleanup();
diff -upr -X linux-2.6.18/Documentation/dontdiff linux-2.6.18-vanilla/net/ipv6/Kconfig linux-2.6.18/net/ipv6/Kconfig
--- linux-2.6.18-vanilla/net/ipv6/Kconfig 2006-09-20 05:42:06.000000000 +0200
+++ linux-2.6.18/net/ipv6/Kconfig 2006-10-05 18:14:57.000000000 +0200
@@ -126,6 +126,19 @@ config INET6_XFRM_MODE_TUNNEL
If unsure, say Y.
+config IPV6_SIT
+ tristate "IPv6: IPv6-in-IPv4 tunnel (SIT driver)"
+ depends on IPV6
+ default y
+ ---help---
+ Tunneling means encapsulating data of one protocol type within
+ another protocol and sending it over a channel that understands the
+ encapsulating protocol. This driver implements encapsulation of IPv6
+ 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.ko. If unsure, say N.
+
config IPV6_TUNNEL
tristate "IPv6: IPv6-in-IPv6 tunnel"
select INET6_TUNNEL
diff -upr -X linux-2.6.18/Documentation/dontdiff linux-2.6.18-vanilla/net/ipv6/Makefile linux-2.6.18/net/ipv6/Makefile
--- linux-2.6.18-vanilla/net/ipv6/Makefile 2006-09-20 05:42:06.000000000 +0200
+++ linux-2.6.18/net/ipv6/Makefile 2006-10-05 17:10:42.000000000 +0200
@@ -4,7 +4,7 @@
obj-$(CONFIG_IPV6) += ipv6.o
-ipv6-objs := af_inet6.o anycast.o ip6_output.o ip6_input.o addrconf.o sit.o \
+ipv6-objs := af_inet6.o anycast.o ip6_output.o ip6_input.o addrconf.o \
route.o ip6_fib.o ipv6_sockglue.o ndisc.o udp.o raw.o \
protocol.o icmp.o mcast.o reassembly.o tcp_ipv6.o \
exthdrs.o sysctl_net_ipv6.o datagram.o proc.o \
@@ -24,6 +24,7 @@ obj-$(CONFIG_INET6_XFRM_MODE_TRANSPORT)
obj-$(CONFIG_INET6_XFRM_MODE_TUNNEL) += xfrm6_mode_tunnel.o
obj-$(CONFIG_NETFILTER) += netfilter/
+obj-$(CONFIG_IPV6_SIT) += sit.o
obj-$(CONFIG_IPV6_TUNNEL) += ip6_tunnel.o
obj-y += exthdrs_core.o
diff -upr -X linux-2.6.18/Documentation/dontdiff linux-2.6.18-vanilla/net/ipv6/sit.c linux-2.6.18/net/ipv6/sit.c
--- linux-2.6.18-vanilla/net/ipv6/sit.c 2006-09-20 05:42:06.000000000 +0200
+++ linux-2.6.18/net/ipv6/sit.c 2006-10-05 16:55:02.000000000 +0200
@@ -850,3 +850,6 @@ int __init sit_init(void)
inet_del_protocol(&sit_protocol, IPPROTO_IPV6);
goto out;
}
+
+module_init(sit_init);
+module_exit(sit_cleanup);
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 01/02] net/ipv6: seperate sit driver to extra module
2006-10-06 15:15 ` Joerg Roedel
@ 2006-10-07 5:05 ` Bill Fink
2006-10-07 5:32 ` James Morris
0 siblings, 1 reply; 9+ messages in thread
From: Bill Fink @ 2006-10-07 5:05 UTC (permalink / raw)
To: Joerg Roedel; +Cc: YOSHIFUJI Hideaki / ?$B5HF#1QL@, netdev, linux-kernel, davem
On Fri, 6 Oct 2006 17:15:56 +0200, Joerg Roedel wrote:
> +config IPV6_SIT
> + tristate "IPv6: IPv6-in-IPv4 tunnel (SIT driver)"
> + depends on IPV6
> + default y
> + ---help---
> + Tunneling means encapsulating data of one protocol type within
> + another protocol and sending it over a channel that understands the
> + encapsulating protocol. This driver implements encapsulation of IPv6
> + 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.ko. If unsure, say N.
>From a user perspective, I believe it should say "If unsure, say Y".
The unsure case for the unsure user should be the case that works for
the broadest possible usage spectrum, which would be the 'Y' case.
To put it another way, if you pick 'Y' and don't really need it, the
only downside is wasting some memory. But if you pick 'N' and actually
did need it, previously working IPv6 networking would no longer work.
I believe the default setting should match the unsure recommendation.
-Bill
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH 01/02] net/ipv6: seperate sit driver to extra module
2006-10-07 5:05 ` Bill Fink
@ 2006-10-07 5:32 ` James Morris
0 siblings, 0 replies; 9+ messages in thread
From: James Morris @ 2006-10-07 5:32 UTC (permalink / raw)
To: Bill Fink
Cc: Joerg Roedel, YOSHIFUJI Hideaki / ?$B5HF#1QL@, netdev,
linux-kernel, davem
On Sat, 7 Oct 2006, Bill Fink wrote:
> On Fri, 6 Oct 2006 17:15:56 +0200, Joerg Roedel wrote:
>
> > +config IPV6_SIT
> > + tristate "IPv6: IPv6-in-IPv4 tunnel (SIT driver)"
> > + depends on IPV6
> > + default y
> > + ---help---
> > + Tunneling means encapsulating data of one protocol type within
> > + another protocol and sending it over a channel that understands the
> > + encapsulating protocol. This driver implements encapsulation of IPv6
> > + 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.ko. If unsure, say N.
>
> >From a user perspective, I believe it should say "If unsure, say Y".
> The unsure case for the unsure user should be the case that works for
> the broadest possible usage spectrum, which would be the 'Y' case.
> To put it another way, if you pick 'Y' and don't really need it, the
> only downside is wasting some memory. But if you pick 'N' and actually
> did need it, previously working IPv6 networking would no longer work.
> I believe the default setting should match the unsure recommendation.
Yes, the unsure value should match the default. People pick the default
because they're unsure.
--
James Morris
<jmorris@namei.org>
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2006-10-07 5:32 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-06 9:34 [PATCH 01/02] net/ipv6: seperate sit driver to extra module Joerg Roedel
2006-10-06 11:38 ` Samuel Tardieu
2006-10-06 11:44 ` Peter Bieringer
2006-10-06 12:09 ` Joerg Roedel
2006-10-06 12:24 ` Samuel Tardieu
2006-10-06 12:59 ` YOSHIFUJI Hideaki / 吉藤英明
2006-10-06 15:15 ` Joerg Roedel
2006-10-07 5:05 ` Bill Fink
2006-10-07 5:32 ` James Morris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).