|
@@ -1500,6 +1500,12 @@ int qlcnic_83xx_loopback_test(struct net_device *netdev, u8 mode)
|
|
|
}
|
|
|
} while ((adapter->ahw->linkup && ahw->has_link_events) != 1);
|
|
|
|
|
|
+ /* Make sure carrier is off and queue is stopped during loopback */
|
|
|
+ if (netif_running(netdev)) {
|
|
|
+ netif_carrier_off(netdev);
|
|
|
+ netif_stop_queue(netdev);
|
|
|
+ }
|
|
|
+
|
|
|
ret = qlcnic_do_lb_test(adapter, mode);
|
|
|
|
|
|
qlcnic_83xx_clear_lb_mode(adapter, mode);
|