[PATCH] skge: dont free skb until multi-part transmit complete
authorStephen Hemminger <shemminger@osdl.org>
Thu, 23 Mar 2006 19:07:27 +0000 (11:07 -0800)
committerJeff Garzik <jeff@garzik.org>
Thu, 23 Mar 2006 22:13:54 +0000 (17:13 -0500)
commit866b4f3e94a7568a1cb0018c061e19e120de6922
treece9f82edb063145a46d5bc84d7e38d153272bc46
parent4c180fc424550217344db6fe8960732dbd7feb0c
[PATCH] skge: dont free skb until multi-part transmit complete

Don't free transmit buffers until the whole set of transmit descriptors
has been marked as done.  Otherwise, we risk freeing a skb before the
whole transmit is done.

This changes the transmit completion handling from incremental to a
two pass algorithm. First pass scans and records the start of the last
done descriptor, second cleans up until that point.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/skge.c