]> git.baikalelectronics.ru Git - kernel.git/commit
ipg: plug Tx completion leak
authorFrancois Romieu <romieu@fr.zoreil.com>
Thu, 10 Jan 2008 22:40:59 +0000 (23:40 +0100)
committerFrancois Romieu <romieu@fr.zoreil.com>
Thu, 17 Jan 2008 22:35:09 +0000 (23:35 +0100)
commit5aa50db200a2ff1887a43c2af788e6e9d767ffe6
treec8fc52f334131349d4886b362c766eacd168746e
parente08c76e3ecbe17e78f1eee86cc7010c2bd86a4c3
ipg: plug Tx completion leak

The Tx skb release could not free more than one skb per call.
Add it to the fact that the xmit handler does not check for
a queue full condition and you have a recipe to leak quickly.

Let's release every pending Tx descriptor which has been given
back to the host CPU by the network controller. The xmit handler
suggests that it is done through the IPG_TFC_TFDDONE bit.

Remove the former "curr" computing: it does not produce anything
usable in its current form.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
drivers/net/ipg.c