netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alexey Dobriyan <adobriyan@gmail.com>
To: Jay Cliburn <jacliburn@bellsouth.net>
Cc: csnook@redhat.com, netdev@vger.kernel.org
Subject: Re: atl1: WARNING at net/sched/sch_generic.c:221
Date: Tue, 16 Sep 2008 02:45:22 +0400	[thread overview]
Message-ID: <20080915224522.GA21012@x200.localdomain> (raw)
In-Reply-To: <20080914181714.34935d9c@osprey.hogchain.net>

On Sun, Sep 14, 2008 at 06:17:14PM -0500, Jay Cliburn wrote:
> On Thu, 21 Aug 2008 15:58:49 +0400
> adobriyan@gmail.com wrote:
> 
> > This message happens more or less every reboot, sometimes cable
> > unplug/plug is needed to restore connectivity, otherwise card is
> > working fine.
> > 
> > 
> > [   22.570010] eth1: link up, 100Mbps, full-duplex, lpa 0x45E1
> > [   26.570011] NET: Registered protocol family 10
> > [   37.551934] eth0: no IPv6 routers present
> > 
> > 	[rebooted box which is directly connected to a box with atl1]
> > 
> > [ 2078.740004] atl1 0000:03:00.0: eth0 link is down
> > [ 2080.790004] atl1 0000:03:00.0: eth0 link is up 1000 Mbps full
> > duplex [ 2086.049998] NETDEV WATCHDOG: eth0 (atl1): transmit timed out
> > [ 2086.050004] ------------[ cut here ]------------
> > [ 2086.050004] WARNING: at net/sched/sch_generic.c:221
> [...]
> 
> Alexey,
> 
> Can you please try this patch?

Seems to help (no more messages), still sometimes no networking until after
cable replug. Stay tuned.

> --- a/drivers/net/atlx/atl1.c
> +++ b/drivers/net/atlx/atl1.c
> @@ -2642,6 +2642,7 @@ static void atl1_down(struct atl1_adapter *adapter)
>  {
>  	struct net_device *netdev = adapter->netdev;
>  
> +	netif_stop_queue(netdev);
>  	del_timer_sync(&adapter->watchdog_timer);
>  	del_timer_sync(&adapter->phy_config_timer);
>  	adapter->phy_timer_pending = false;
> @@ -2655,7 +2656,6 @@ static void atl1_down(struct atl1_adapter *adapter)
>  	adapter->link_speed = SPEED_0;
>  	adapter->link_duplex = -1;
>  	netif_carrier_off(netdev);
> -	netif_stop_queue(netdev);
>  
>  	atl1_clean_tx_ring(adapter);
>  	atl1_clean_rx_ring(adapter);
> @@ -2724,6 +2724,8 @@ static int atl1_open(struct net_device *netdev)
>  	struct atl1_adapter *adapter = netdev_priv(netdev);
>  	int err;
>  
> +	netif_carrier_off(netdev);
> +
>  	/* allocate transmit descriptors */
>  	err = atl1_setup_ring_resources(adapter);
>  	if (err)
> diff --git a/drivers/net/atlx/atlx.c b/drivers/net/atlx/atlx.c
> index b3e7fcf..3cc9d10 100644
> --- a/drivers/net/atlx/atlx.c
> +++ b/drivers/net/atlx/atlx.c
> @@ -105,7 +105,6 @@ static void atlx_check_for_link(struct atlx_adapter *adapter)
>  				netdev->name);
>  			adapter->link_speed = SPEED_0;
>  			netif_carrier_off(netdev);
> -			netif_stop_queue(netdev);
>  		}
>  	}
>  	schedule_work(&adapter->link_chg_task);

  reply	other threads:[~2008-09-15 22:43 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-21 11:58 atl1: WARNING at net/sched/sch_generic.c:221 adobriyan
2008-08-21 11:59 ` David Miller
2008-08-21 12:04   ` adobriyan
2008-08-21 12:08     ` David Miller
2008-09-14 19:26       ` Jay Cliburn
2008-09-14 19:58         ` Stephen Hemminger
2008-09-14 23:56         ` David Miller
2008-09-15  0:11           ` Jay Cliburn
2008-09-15  3:14           ` Jeff Garzik
2008-08-22  2:00 ` Jay Cliburn
2008-08-22 21:50   ` Jay Cliburn
2008-09-14 23:17 ` Jay Cliburn
2008-09-15 22:45   ` Alexey Dobriyan [this message]
2008-09-16  1:44     ` Jay Cliburn
2008-09-17  7:44       ` Alexey Dobriyan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080915224522.GA21012@x200.localdomain \
    --to=adobriyan@gmail.com \
    --cc=csnook@redhat.com \
    --cc=jacliburn@bellsouth.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).