]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
bnx2x: tx_has_work should not wait for FW
authorVladislav Zolotarov <vladz@broadcom.com>
Mon, 26 Jan 2009 20:36:42 +0000 (12:36 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jan 2009 20:36:42 +0000 (12:36 -0800)
commite8b5fc514d1c7637cb4b8f77e7d8ac33ef66130c
tree486a72b31cdadfe976b7baf181e90e0767b4dee5
parent32ec803348b4d5f1353e1d7feae30880b8b3e342
bnx2x: tx_has_work should not wait for FW

The current tx_has_work waited until all packets sent by the driver
are marked as completed by the FW. This is too greedy and it causes
the bnx2x_poll to spin in vain. The driver should only check that all
packets FW already completed are freed - only in unload flow the
driver should make sure that transmit queue is empty

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>
drivers/net/bnx2x_main.c