]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commit3a33ef847d858b968df86c3d94bc10aa15fdaeeb
treece9f82edb063145a46d5bc84d7e38d153272bc46
parent4809dfa850a4ef09e849cc0df983200ebbcb322a
[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