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

Commit 762d5f6c authored by Eilon Greenstein's avatar Eilon Greenstein Committed by David S. Miller
Browse files

bnx2x: Calling tx disable unconditionally



On unload, the FW assumes that no packets will be sent after the driver sends
the FW stop command. To ensure that, the driver must always call
netif_tx_disable

Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 490c3c9b
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -6573,11 +6573,9 @@ static void bnx2x_netif_stop(struct bnx2x *bp, int disable_hw)
{
	bnx2x_int_disable_sync(bp, disable_hw);
	bnx2x_napi_disable(bp);
	if (netif_running(bp->dev)) {
	netif_tx_disable(bp->dev);
	bp->dev->trans_start = jiffies;	/* prevent tx timeout */
}
}

/*
 * Init service functions