summaryrefslogtreecommitdiffstats
path: root/drivers/net/rrunner.h
diff options
context:
space:
mode:
authorVladislav Zolotarov2011-08-02 10:35:43 +0200
committerDavid S. Miller2011-08-02 10:35:43 +0200
commit87b7ba3d24a25cf18aece447de27d7804fa9668c (patch)
tree3d47489b40ee858ddc093069a8723c2d9a63fcf8 /drivers/net/rrunner.h
parentnet: add kerneldoc to skb_copy_bits() (diff)
downloadkernel-qcow2-linux-87b7ba3d24a25cf18aece447de27d7804fa9668c.tar.gz
kernel-qcow2-linux-87b7ba3d24a25cf18aece447de27d7804fa9668c.tar.xz
kernel-qcow2-linux-87b7ba3d24a25cf18aece447de27d7804fa9668c.zip
bnx2x: Prevent restarting Tx during bnx2x_nic_unload
Tx queues were stopped before bp->state was changed to a value different from BNX2X_STATE_OPEN, which allowed the bnx2x_tx_int() called from the NAPI context to re-enable it. This then allowed the netdev->ndo_start_xmit() to be called in the middle of the function reset and rings freeing. This patch changes bp->state to a value different from BNX2X_STATE_OPEN BEFORE disabling the Tx queues in order to restore the broken protection against the above race in the bnx2x_tx_int(). Signed-off-by: Vladislav Zolotarov <vladz@broadcom.com> Signed-off-by: Eilon Greenstein <eilong@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/rrunner.h')
0 files changed, 0 insertions, 0 deletions