Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9505ee37 authored by Vladislav Zolotarov's avatar Vladislav Zolotarov Committed by David S. Miller
Browse files

bnx2x: stop tx before CNIC_STOP



It may take some time to cnic to respond, this prevents tx_timeout
when it happens.

Signed-off-by: default avatarDmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c636322b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1989,6 +1989,9 @@ int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode)
		return -EINVAL;
	}

	/* Stop Tx */
	bnx2x_tx_disable(bp);

#ifdef BCM_CNIC
	bnx2x_cnic_notify(bp, CNIC_CTL_STOP_CMD);
#endif
@@ -1997,9 +2000,6 @@ int bnx2x_nic_unload(struct bnx2x *bp, int unload_mode)

	bp->rx_mode = BNX2X_RX_MODE_NONE;

	/* Stop Tx */
	bnx2x_tx_disable(bp);

	del_timer_sync(&bp->timer);

	/* Set ALWAYS_ALIVE bit in shmem */