From: David Miller <davem@davemloft.net>
To: avorontsov@ru.mvista.com
Cc: jeff@garzik.org, netdev@vger.kernel.org
Subject: Re: [PATCH 3/3] bunch of drivers: avoid BUG at net/core/dev.c:1328
Date: Mon, 21 Jul 2008 08:32:03 -0700 (PDT) [thread overview]
Message-ID: <20080721.083203.22496261.davem@davemloft.net> (raw)
In-Reply-To: <20080721151758.GC7989@polina.dev.rtsoft.ru>
From: Anton Vorontsov <avorontsov@ru.mvista.com>
Date: Mon, 21 Jul 2008 19:17:58 +0400
> The drivers were touching net queue before it has been started, so without
> this patch, the drivers will potentially BUG at net/core/dev.c:1328.
>
> I don't have the hardware for the drivers below, so this patch is untested,
> and thus should be carefully peer reviewed.
>
> tc35815.c
> au1000_eth.c
> bfin_mac.c
> macb.c
> ^ The four drivers are using phylib, they're calling netif_start_queue()
> in open() callback. So trivially remove netif_tx_schedule_all().
> Phylib will handle netif_carrier_*().
>
> cpmac.c
> fec_mpc52xx.c
> fs_enet/fs_enet-main.c
> sh_eth.c
> ^ The same as above, but these were also needlessly calling
> netif_carrier_*() functions. So removed queue calls and also remove
> carrier calls, since phylib will handle it. fs_enet-main.c also didn't
> call netif_start_queue() at open(), this is fixed now.
>
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Your analysis and patch both look accurate, but I'll let this
one sit for a day so that others can have a look and review.
prev parent reply other threads:[~2008-07-21 15:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-21 15:17 [PATCH 3/3] bunch of drivers: avoid BUG at net/core/dev.c:1328 Anton Vorontsov
2008-07-21 15:32 ` David Miller [this message]
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=20080721.083203.22496261.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=avorontsov@ru.mvista.com \
--cc=jeff@garzik.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.