]> git.baikalelectronics.ru Git - kernel.git/commit
cxgb3: Fix transmit queue stop mechanism
authorDivy Le Ray <divy@chelsio.com>
Thu, 13 Mar 2008 07:13:30 +0000 (00:13 -0700)
committerJeff Garzik <jeff@garzik.org>
Mon, 17 Mar 2008 12:07:01 +0000 (08:07 -0400)
commitba53c60daebf681890bc92276bc7cef5104292f6
treefd718ac8012aa60ad855556bc0caa903fe69ac4c
parent14275f1429ab4b9879ffd0caf5bcc55f6f9899b6
cxgb3: Fix transmit queue stop mechanism

The last change in the Tx queue stop mechanism opens a window
where the Tx queue might be stopped after pending credits
returned.

Tx credits are returned via a control message generated by the HW.
It returns tx credits on demand, triggered by a completion bit
set in selective transmit packet headers.

The current code can lead to the Tx queue stopped
with all pending credits returned, and the current frame
not triggering a credit return. The Tx queue will then never be
awaken.

The driver could alternatively request a completion for packets
that stop the queue. It's however safer at this point to go back
to the pre-existing behaviour.

Signed-off-by: Divy Le Ray <divy@chelsio.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/cxgb3/sge.c