[RFC] [PATCH] usbatm.[ch]: logic changes + error handling

Duncan Sands baldrick at free.fr
Fri Apr 15 06:31:01 EDT 2005


On Fri, 2005-04-15 at 14:18 +0400, Roman Kagan wrote:
> OK so here goes another update of my patch to the current CVS, in case
> it gets somebody interested.

I'll get on to it after pushing the new infrastructure to gregkh.  By
the way, I was musing about whether it is possible to avoid copying
packets into a buffer at all by exploiting the scatter-gather
infrastructure.  What gets sent to the modem?  Basically, blocks of data
from the skb interspersed with padding and headers/trailers.  So
couldn't you pass a scatter-gather thingy like this:

pointer 1 -> header
pointer 2 -> start of data in skb
pointer 3 -> next header thingy
pointer 4 -> byte 48 of data in skb (or whatever it is)
pointer 5 -> next header thingy

etc

Then you would only need to set up headers, you wouldn't need to
copy the data.

Ciao,

Duncan.

PS: I haven't thought this through at all, so I wouldn't be
surprised to discover that it can't work for some obvious reason.




More information about the Usbatm mailing list