]> git.karo-electronics.de Git - karo-tx-linux.git/commit
staging: usbip: bugfix for isochronous packets and optimization
authorArjan Mels <arjan.mels@gmx.net>
Tue, 5 Apr 2011 18:26:59 +0000 (20:26 +0200)
committerAndi Kleen <ak@linux.intel.com>
Thu, 28 Apr 2011 15:20:50 +0000 (08:20 -0700)
commitdfc75cfe82f7961feae07838cb832853d7433543
treeab261d02c9445e9395d1d610567265a9f52cb564
parentdb898d0c5c493ce4177d5e1d3a953e079a56a24b
staging: usbip: bugfix for isochronous packets and optimization

commit 28276a28d8b3cd19f4449991faad4945fe557656 upstream.

For isochronous packets the actual_length is the sum of the actual
length of each of the packets, however between the packets might be
padding, so it is not sufficient to just send the first actual_length
bytes of the buffer. To fix this and simultanesouly optimize the
bandwidth the content of the isochronous packets are send without the
padding, the padding is restored on the receiving end.

Signed-off-by: Arjan Mels <arjan.mels@gmx.net>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Cc: Takahiro Hirofuchi <hirofuchi@users.sourceforge.net>
Cc: Max Vozeler <max@vozeler.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/usbip/stub_tx.c
drivers/staging/usbip/usbip_common.c
drivers/staging/usbip/usbip_common.h
drivers/staging/usbip/vhci_rx.c