projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c636322
)
bnx2x: stop tx before CNIC_STOP
author
Vladislav Zolotarov
<
[email protected]
>
Tue, 19 Jul 2011 01:39:41 +0000
(
01:39
+0000)
committer
David S. Miller
<
[email protected]
>
Tue, 19 Jul 2011 16:57:48 +0000
(09:57 -0700)
It may take some time to cnic to respond, this prevents tx_timeout
when it happens.
Signed-off-by: Dmitry Kravkov <
[email protected]
>
Signed-off-by: Eilon Greenstein <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/bnx2x/bnx2x_cmn.c
patch
|
blob
|
history
diff --git
a/drivers/net/bnx2x/bnx2x_cmn.c
b/drivers/net/bnx2x/bnx2x_cmn.c
index 5854a6c342238f85fd2bec759f77b0627e543aab..8b079dcd5b967dc633eb6242942793c6477c4a04 100644
(file)
--- a/
drivers/net/bnx2x/bnx2x_cmn.c
+++ b/
drivers/net/bnx2x/bnx2x_cmn.c
@@
-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 */