[PATCH 1/4] net: skb_orphan on dev_hard_start_xmit
Herbert Xu
herbert at gondor.apana.org.au
Sat Jul 4 23:34:08 EDT 2009
On Sun, Jul 05, 2009 at 11:26:58AM +0800, Herbert Xu wrote:
>
> Here's a another crazy idea:
>
> Let's use dummy TX descriptors to generate an interrupt, either
> with or without transmitting an actual packet on the wire depending
> on the NIC.
Here's an even crazier idea that doesn't use dummy descriptors.
xmit(skb)
if (TX queue contains no interrupting descriptor &&
qdisc is empty)
mark TX descriptor as interrupting
if (TX queue now contains an interrupting descriptor &&
qdisc len < 2)
stop queue
if (TX ring full)
stop queue
clean()
do work
wake queue as per usual
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert at gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
More information about the libertas-dev
mailing list