On Sat, Sep 29, 2012 at 8:01 PM, Richard Miller <9f...@hamnavoe.com> wrote:

> Almost: it's a pipeline of one thread reading a buffer full of packets,
> splitting it up, and sending a packet at a time to a second thread, which
> writes them to the kernel packet ethernet interface, which stores them
> in a Buf queue.
>

Taking a cursory glance it looks as if it just reading at most one
full packet at a time
(the size of the buffer is 2000), it may be if they are small you may
get more than one
in one read, but it may not be so, depends on the device and what is
set as maxpkt
which may be changed with usbctl if the device lets you

Making a bigger buffer (after making sure you can actually read more
bytes) and or decoupling
reader and processer by having a buffered channel so that the
reader can spend more time reading may help (it helped for serial).


G.

Reply via email to