Commit 9295f940 authored by Manish Chopra's avatar Manish Chopra Committed by David S. Miller

netxen: Fix bug in Tx completion path.

o Driver is not updating sw_consumer while processing Tx completion
  when interface is going down. Due to this interface down path gets
  stuck forever waiting for NAPI to complete.
Signed-off-by: default avatarManish Chopra <manish.chopra@qlogic.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 0d368820
...@@ -1794,9 +1794,9 @@ int netxen_process_cmd_ring(struct netxen_adapter *adapter) ...@@ -1794,9 +1794,9 @@ int netxen_process_cmd_ring(struct netxen_adapter *adapter)
break; break;
} }
if (count && netif_running(netdev)) {
tx_ring->sw_consumer = sw_consumer; tx_ring->sw_consumer = sw_consumer;
if (count && netif_running(netdev)) {
smp_mb(); smp_mb();
if (netif_queue_stopped(netdev) && netif_carrier_ok(netdev)) if (netif_queue_stopped(netdev) && netif_carrier_ok(netdev))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment