]> git.baikalelectronics.ru Git - kernel.git/commit
atl1: Do not wake queue before queue has been started.
authorDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2008 15:28:37 +0000 (08:28 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jul 2008 15:28:37 +0000 (08:28 -0700)
commit96bb52d4c344df5b5d9453363ddbbe30d5e7d85e
treeac792ae73a39e9f0b71346047c230e19aefccb19
parentcd1674be1c6fec97dcd4b461fa69d5dbb03c9cee
atl1: Do not wake queue before queue has been started.

Based upon a bug report by Alexey Dobriyan, the patch is
also tested by him and confirmed to fix the problem.

Packet flow during link state events should not be done by
waking and stopping the TX queue anyways, that is handled
transparently by netif_carrier_{on,off}().

So, remove the netif_{wake,stop}_queue() calls in the link
check code, and add the necessary netif_start_queue() call
to atl1_up().

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/atlx/atl1.c