s390 - mark IPv6 support for QETH as broken
Subsystems (3)
PATCH 1/1 s390 - mark IPv6 support for QETH as broken
Hi Andrew
The attached patch marks IPv6 support for QETH broken, it is known to need an extra patch to compile which was submitted one year ago but never accepted.
Bastian
Signature · 2 lines
The heart is not a logical organ. -- Dr. Janet Wallace, "The Deadly Years", stardate 3479.4
drivers/s390/net/Kconfig +1 -1
@@ -71,7 +71,7 @@ config QETH_IPV6 bool "IPv6 support for gigabit ethernet" - depends on (QETH = IPV6) || (QETH && IPV6 = 'y') + depends on ((QETH = IPV6) || (QETH && IPV6 = 'y')) && BROKEN help If CONFIG_QETH is switched on, this option will include IPv6 support in the qeth device driver.
Quoted 5 lines · Bastian Blank
Hi Andrew
The attached patch marks IPv6 support for QETH broken, it is known to need an extra patch to compile which was submitted one year ago but never accepted.
If it doesn't even compile BROKEN isn't enough. In that case cometely uncomment the option in Kconfig.
Quoted 9 lines · Christoph Hellwig
Quoted 5 lines · Bastian Blank
Hi Andrew
The attached patch marks IPv6 support for QETH broken, it is known to need an extra patch to compile which was submitted one year ago but never accepted.
If it doesn't even compile BROKEN isn't enough. In that case cometely uncomment the option in
Kconfig.
Why shouldn't it be enough?
BROKEN and BROKEN_ON_SMP are the way non-compiling drivers as well as in any other way broken drivers are currently handled in 2.6 .
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 4 lines · Bastian Blank
The attached patch marks IPv6 support for QETH broken, it is known to need an extra patch to compile which was submitted one year ago but never accepted.
Well fixing it would be the preferable approach. Where is the "extra patch" and what was the complaint?
Quoted 7 lines · Andrew Morton
Quoted 3 lines · Bastian Blank
The attached patch marks IPv6 support for QETH broken, it is known to need an extra patch to compile which was submitted one year ago but never accepted.
Well fixing it would be the preferable approach. Where is the "extra patch" and what was the complaint?
http://oss.sgi.com/projects/netdev/archive/2003-02/msg00061.html
The problem is that on s390 several virtual servers share the PHY and MAC part of the card and therefore have the same MAC address. Unfortunately IPv6 uses this MAC address to build an address. Now all virtual servers have the same auto configured IPv6 address - which is bad.
The proposed solution was to enable network card drivers to define their own ipv6 address auto configuration.
If I recall correctly Dave Miller was not sure about rfc compliance.
cheers
Christian
In article <[email protected]> (at Fri, 9 Jul 2004 21:15:17 +0200), Christian Borntraeger <[email protected]> says:
Quoted 10 lines
Quoted 7 lines · Andrew Morton
Quoted 3 lines · Bastian Blank
The attached patch marks IPv6 support for QETH broken, it is known to need an extra patch to compile which was submitted one year ago but never accepted.
Well fixing it would be the preferable approach. Where is the "extra patch" and what was the complaint?
http://oss.sgi.com/projects/netdev/archive/2003-02/msg00061.html
I don't see why it does NOT compile as you said.
It tried to add scheme for driver-specific interface identifier (including EUI-64 based on hardware address) generation scheme (in addition to the current ont; device-type-specific one).
Quoted 6 lines
The problem is that on s390 several virtual servers share the PHY and MAC part of the card and therefore have the same MAC address. Unfortunately IPv6 uses this MAC address to build an address. Now all virtual servers have the same auto configured IPv6 address - which is bad.
The proposed solution was to enable network card drivers to define their own ipv6 address auto configuration.
I think it would be good to store interface identifier when initializing interface, by RTM_NEWLINK attribute probably.
Signature · 2 lines
Hideaki YOSHIFUJI @ USAGI Project <[email protected]> GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
Quoted 8 lines · Andrew Morton
Quoted 4 lines · Bastian Blank
The attached patch marks IPv6 support for QETH broken, it is known to need an extra patch to compile which was submitted one year ago but never accepted.
Well fixing it would be the preferable approach. Where is the "extra patch" and what was the complaint?
The original submission is recorded on
http://marc.theaimsgroup.com/?l=linux-net&m=104551077013011&w=2. And the complaint was that it puts '"ipv6 stuff" into the generic netdevice structure'. I don't know if this can be solved another way.
Bastian
Signature · 2 lines
Earth -- mother of the most beautiful women in the universe. -- Apollo, "Who Mourns for Adonais?" stardate 3468.1
Quoted 4 lines · On Fri, 9 Jul 2004 21:22:53 +0200 Bastian Blank <[email protected]> wrote:
The original submission is recorded on
http://marc.theaimsgroup.com/?l=linux-net&m=104551077013011&w=2. And the complaint was that it puts '"ipv6 stuff" into the generic netdevice structure'. I don't know if this can be solved another way.
Put it in the inet6device private area.
It's been a year, and you haven't put forth the effort to look for solutions like that?
Quoted 9 lines · David S. Miller
Quoted 4 lines · On Fri, 9 Jul 2004 21:22:53 +0200 Bastian Blank <[email protected]> wrote:
The original submission is recorded on
http://marc.theaimsgroup.com/?l=linux-net&m=104551077013011&w=2. And the complaint was that it puts '"ipv6 stuff" into the generic netdevice structure'. I don't know if this can be solved another way.Put it in the inet6device private area.
Where is it declared?
Quoted 2 lines
It's been a year, and you haven't put forth the effort to look for solutions like that?
Err, I'm not the submitter of the original patch. I just wanted to have the feature which needs that code marked as broken.
Bastian
Signature · 1 line
Beam me up, Scotty!
In article <[email protected]> (at Fri, 9 Jul 2004 21:47:53 +0200), Bastian Blank <[email protected]> says:
Quoted 2 lines
Err, I'm not the submitter of the original patch. I just wanted to have the feature which needs that code marked as broken.
It is NOT broken at all.
Signature · 2 lines
Hideaki YOSHIFUJI @ USAGI Project <[email protected]> GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
Quoted 1 line · YOSHIFUJI Hideaki / 吉藤英明
It is NOT broken at all.
It does not compile at all.
Bastian
Signature · 2 lines
Dismissed. That's a Star Fleet expression for, "Get out." -- Capt. Kathryn Janeway, Star Trek: Voyager, "The Cloud"
In article <[email protected]> (at Fri, 9 Jul 2004 22:04:45 +0200), Bastian Blank <[email protected]> says:
Quoted 4 lines · YOSHIFUJI Hideaki / 吉藤英明
Quoted 1 line
It is NOT broken at all.
It does not compile at all.
Okay... Let's remove generate_eui64 part instead.
Something like this. Thanks.
Index: drivers/s390/net/Kconfig
===================================================================
RCS file: /cvsroot/usagi/usagi/kernel/linux26/drivers/s390/net/Kconfig,v retrieving revision 1.1.1.6
drivers/s390/net/Kconfig +5 -1
@@ -75,7 +75,11 @@ help If CONFIG_QETH is switched on, this option will include IPv6 support in the qeth device driver. - + +config QETH_IPV6_IFID + bool "Broken private inteface identifier support" + depends on ((QETH = IPV6) || (QETH && IPV6 = 'y')) && BROKEN + config QETH_VLAN bool "VLAN support for gigabit ethernet" depends on (QETH = VLAN_8021Q) || (QETH && VLAN_8021Q = 'y')
Index: drivers/s390/net/qeth_main.c
===================================================================
RCS file: /cvsroot/usagi/usagi/kernel/linux26/drivers/s390/net/qeth_main.c,v retrieving revision 1.1.1.5
drivers/s390/net/qeth_main.c +4 -2
@@ -4732,6 +4732,7 @@ } #ifdef CONFIG_QETH_IPV6 +#ifdef CONFIG_QETH_IPV6_IFID int qeth_ipv6_generate_eui64(u8 * eui, struct net_device *dev) {
@@ -4751,6 +4752,7 @@ }#endif +#endif static void qeth_get_mac_for_ipm (__u32 ipm,char *mac,struct net_device *dev)
@@ -5159,10 +5161,10 @@#ifdef CONFIG_QETH_IPV6 /*IPv6 address autoconfiguration stuff*/ card->dev->dev_id = card->info.unique_id &0xffff ; +#ifdef CONFIG_QETH_IPV6_IFID if (!(card->info.unique_id &UNIQUE_ID_NOT_BY_CARD )) card->dev->generate_eui64 = qeth_ipv6_generate_eui64; - - +#endif #endif dev->hard_header_parse =NULL ; dev->set_mac_address =NULL ;
--yoshfuji
Quoted 4 lines · On Fri, 9 Jul 2004 21:47:53 +0200 Bastian Blank <[email protected]> wrote:
Quoted 3 lines · David S. Miller
On Fri, 9 Jul 2004 21:22:53 +0200
Bastian Blank <[email protected]> wrote:
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
The original submission is recorded on
http://marc.theaimsgroup.com/?l=linux-net&m=104551077013011&w=2. And the complaint was that it puts '"ipv6 stuff" into the generic netdevice structure'. I don't know if this can be solved another way.Put it in the inet6device private area.
Where is it declared?
struct inet6_dev is declared in include/net/if_inet6.h
I used grep to discover how the ipv6 device provate information is managed, you could have as well :-) I didn't know any of this stuff offhand, I had to look it up.
Quoted 11 lines · David S. Miller
Quoted 4 lines · On Fri, 9 Jul 2004 21:22:53 +0200 Bastian Blank <[email protected]> wrote:
The original submission is recorded on
http://marc.theaimsgroup.com/?l=linux-net&m=104551077013011&w=2. And the complaint was that it puts '"ipv6 stuff" into the generic netdevice structure'. I don't know if this can be solved another way.Put it in the inet6device private area.
It's been a year, and you haven't put forth the effort to look for solutions like that?
I think its sensible to add the driver authors to cc. Hopefully we can agree on a nice solution.
cheers
Christian
Quoted 2 lines · Christian Borntraeger
Quoted 1 line · David S. Miller
Put it in the inet6device private area.
struct net_device defines a void pointer named ip6_ptr. This clearly defines that as opaque data. There is no other ipv6 specific field.
A simple solution will be adding a pointer to a public struct with ipv6 specific things.
Quoted 5 lines
Quoted 2 lines
It's been a year, and you haven't put forth the effort to look for solutions like that?
I think its sensible to add the driver authors to cc. Hopefully we can agree on a nice solution.
I hope so.
Bastian
Signature · 2 lines
Only a fool fights in a burning house. -- Kank the Klingon, "Day of the Dove", stardate unknown
In article <[email protected]> (at Fri, 9 Jul 2004 12:30:05 -0700), "David S. Miller" <[email protected]> says:
Quoted 9 lines
Quoted 4 lines · On Fri, 9 Jul 2004 21:22:53 +0200 Bastian Blank <[email protected]> wrote:
The original submission is recorded on
http://marc.theaimsgroup.com/?l=linux-net&m=104551077013011&w=2. And the complaint was that it puts '"ipv6 stuff" into the generic netdevice structure'. I don't know if this can be solved another way.Put it in the inet6device private area.
David, inet6device area is created when we create first address. The first address is likely link-local address based on mac address, and kernel detects address duplication and delete the inet6device. Finally, we don't have inet6device.
Quoted 2 lines
It's been a year, and you haven't put forth the effort to look for solutions like that?
I'd suggest following approach.
1. support up/down via netlink interface.
2. add IFLA_IFID (or something like that) (RTM_NEWLINK attribute) inet6 layer create inet6device without an address when receiving this.
User will be able to do
# ip link eth0 up eui64 de:ad:be:ef:ca:fe:ba:be or something like this.
Signature · 2 lines
Hideaki YOSHIFUJI @ USAGI Project <[email protected]> GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA
Quoted 1 line · On Sat, 10 Jul 2004 04:59:04 +0900 (JST) YOSHIFUJI Hideaki / $B5HF#1QL@(B…
David, inet6device area is created when we create first address.
We could change the ipv6 layer to allocate the private layer much earlier.
In article <[email protected]> (at Fri, 9 Jul 2004 13:05:53 -0700), "David S. Miller" <[email protected]> says:
Quoted 7 lines
Quoted 1 line · On Sat, 10 Jul 2004 04:59:04 +0900 (JST) YOSHIFUJI Hideaki / $B5HF#1QL@(B…
David, inet6device area is created when we create first address.
We could change the ipv6 layer to allocate the private layer much earlier.
Okay. Yes, I think we need this anyway.
Signature · 2 lines
Hideaki YOSHIFUJI @ USAGI Project <[email protected]> GPG FP: 9022 65EB 1ECF 3AD1 0BDF 80D8 4807 F894 E062 0EEA