netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: [Bugme-new] [Bug 29612] New: skge ipv6 doesn't work after boot
       [not found] <bug-29612-10286@https.bugzilla.kernel.org/>
@ 2011-02-24  0:21 ` Andrew Morton
  2011-02-24  0:44   ` [PATCH] skge: don't mark carrier down at start Stephen Hemminger
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2011-02-24  0:21 UTC (permalink / raw)
  To: netdev; +Cc: bugzilla-daemon, bugme-daemon, gbillios, Stephen Hemminger


(switched to email.  Please respond via emailed reply-to-all, not via the
bugzilla web interface).

On Mon, 21 Feb 2011 18:42:21 GMT
bugzilla-daemon@bugzilla.kernel.org wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=29612
> 
>            Summary: skge ipv6 doesn't work after boot
>            Product: Drivers
>            Version: 2.5
>     Kernel Version: 2.6.38-rc4
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Network
>         AssignedTo: drivers_network@kernel-bugs.osdl.org
>         ReportedBy: gbillios@gmail.com
>         Regression: No
> 
> 
> I have noticed that after the initial boot, ipv6 doesn't work until I either
> reconnect to the network with or do an ifdown/up cycle. 
> 
> The adapter has an ipv6 address, ipv6 routing table seems fine but there is no
> actual connectivity until I do what described above. During my debugging tries
> I noticed that ipv6 starts working also when I start capturing data with
> wireshark. If I enable promiscuous mode it starts working, if I start the
> capture *without* promiscuous mode it does nothing, as if the card needs a
> 'push' to start working. 
> 
> Here is the relevant skge output from dmesg, kernel version doesn't really
> matter since I have this issue even with earlier kernels. 
> 
> skge 0000:07:01.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
> skge: 1.13 addr 0xf7ffc000 irq 16 chip Yukon-Lite rev 9
> skge 0000:07:01.0: eth0: addr 00:22:b0:e7:47:71
> skge 0000:07:01.0: eth0: enabling interface
> skge 0000:07:01.0: eth0: Link is up at 1000 Mbps, full duplex, flow control
> both
> skge 0000:07:01.0: eth0: disabling interface
> skge 0000:07:01.0: eth0: enabling interface
> skge 0000:07:01.0: eth0: Link is up at 1000 Mbps, full duplex, flow control
> both
> 
> Just to clarify, the ipv6 network setup is working just fine in general, other
> PCs on the network don't present this issue at all.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] skge: don't mark carrier down at start
  2011-02-24  0:21 ` [Bugme-new] [Bug 29612] New: skge ipv6 doesn't work after boot Andrew Morton
@ 2011-02-24  0:44   ` Stephen Hemminger
  2011-02-24  0:52     ` Andrew Morton
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2011-02-24  0:44 UTC (permalink / raw)
  To: Andrew Morton; +Cc: netdev, bugzilla-daemon, bugme-daemon, gbillios

The API for network devices has changed so that setting carrier
off at probe is no longer required. This should fix the IPv6 addrconf
issue.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>


--- a/drivers/net/skge.c	2011-02-23 16:40:36.351045685 -0800
+++ b/drivers/net/skge.c	2011-02-23 16:40:48.315136410 -0800
@@ -3856,9 +3856,6 @@ static struct net_device *skge_devinit(s
 	memcpy_fromio(dev->dev_addr, hw->regs + B2_MAC_1 + port*8, ETH_ALEN);
 	memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
 
-	/* device is off until link detection */
-	netif_carrier_off(dev);
-
 	return dev;
 }
 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] skge: don't mark carrier down at start
  2011-02-24  0:44   ` [PATCH] skge: don't mark carrier down at start Stephen Hemminger
@ 2011-02-24  0:52     ` Andrew Morton
  2011-02-25  6:17       ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2011-02-24  0:52 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: netdev, bugzilla-daemon, bugme-daemon, gbillios

On Wed, 23 Feb 2011 16:44:49 -0800
Stephen Hemminger <shemminger@linux-foundation.org> wrote:

> The API for network devices has changed so that setting carrier
> off at probe is no longer required. This should fix the IPv6 addrconf
> issue.
> 
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
> 
> 
> --- a/drivers/net/skge.c	2011-02-23 16:40:36.351045685 -0800
> +++ b/drivers/net/skge.c	2011-02-23 16:40:48.315136410 -0800
> @@ -3856,9 +3856,6 @@ static struct net_device *skge_devinit(s
>  	memcpy_fromio(dev->dev_addr, hw->regs + B2_MAC_1 + port*8, ETH_ALEN);
>  	memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
>  
> -	/* device is off until link detection */
> -	netif_carrier_off(dev);
> -
>  	return dev;
>  }

Thanks, but please don't forget to acknowledge the bug reporter's
efforts.

Also, quoting the bugzilla URL in the changelog helps when people come
along to close off open bug reports.


From: Stephen Hemminger <shemminger@linux-foundation.org>

The API for network devices has changed so that setting carrier off at
probe is no longer required.  This should fix the IPv6 addrconf issue.

Addresses https://bugzilla.kernel.org/show_bug.cgi?id=29612

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Reported-by: George Billios <gbillios@gmail.com>
Cc: David Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/net/skge.c |    3 ---
 1 file changed, 3 deletions(-)

diff -puN drivers/net/skge.c~skge-dont-mark-carrier-down-at-start drivers/net/skge.c
--- a/drivers/net/skge.c~skge-dont-mark-carrier-down-at-start
+++ a/drivers/net/skge.c
@@ -3856,9 +3856,6 @@ static struct net_device *skge_devinit(s
 	memcpy_fromio(dev->dev_addr, hw->regs + B2_MAC_1 + port*8, ETH_ALEN);
 	memcpy(dev->perm_addr, dev->dev_addr, dev->addr_len);
 
-	/* device is off until link detection */
-	netif_carrier_off(dev);
-
 	return dev;
 }
 
_


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] skge: don't mark carrier down at start
  2011-02-24  0:52     ` Andrew Morton
@ 2011-02-25  6:17       ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-02-25  6:17 UTC (permalink / raw)
  To: akpm; +Cc: shemminger, netdev, bugzilla-daemon, bugme-daemon, gbillios

From: Andrew Morton <akpm@linux-foundation.org>
Date: Wed, 23 Feb 2011 16:52:43 -0800

> From: Stephen Hemminger <shemminger@linux-foundation.org>
> 
> The API for network devices has changed so that setting carrier off at
> probe is no longer required.  This should fix the IPv6 addrconf issue.
> 
> Addresses https://bugzilla.kernel.org/show_bug.cgi?id=29612
> 
> Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
> Reported-by: George Billios <gbillios@gmail.com>
> Cc: David Miller <davem@davemloft.net>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Applied, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-02-25  6:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bug-29612-10286@https.bugzilla.kernel.org/>
2011-02-24  0:21 ` [Bugme-new] [Bug 29612] New: skge ipv6 doesn't work after boot Andrew Morton
2011-02-24  0:44   ` [PATCH] skge: don't mark carrier down at start Stephen Hemminger
2011-02-24  0:52     ` Andrew Morton
2011-02-25  6:17       ` David Miller

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).