]> git.ipfire.org Git - people/ms/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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 14 Apr 2011 23:52:51 +0000 (16:52 -0700)
commitb98b7a3bc62d1e16bb3ab91aa053362c3f500830
tree4ec13d2f1a7d2d24076a708772a89e8b7463ccc8
parentca7d3501b7a287c18b5b470e871d3029b0f4842a
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>
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