linux-kernel-test/drivers/staging/usbip
Max Vozeler bd65f6233f staging: usbip: vhci: handle EAGAIN from SO_RCVTIMEO
If there is a receive timeout without any active
requests, we can tell the connection was idle and
ignore the timeout.

If there are active requests for which we expect
to receive a reply we close the connection.

This makes it possible to set an upper bound on
the time a usbip device may be unresponsive.

This is a workaround for the lack of heart-beat
messages in the USBIP protocol.

Extending the protocol would break compatibility
with all previous stub versions, so this seems like
the lesser evil.

Signed-off-by: Max Vozeler <max@vozeler.com>
Tested-by: Mark Wehby <MWehby@luxotticaRetail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-01-20 16:01:49 -08:00
..
Kconfig BKL: introduce CONFIG_BKL. 2010-10-21 15:44:13 +02:00
Makefile Staging: usbip: Makefile: replace the use of <module>-objs with <module>-y 2010-10-08 07:23:42 -07:00
README
stub_dev.c staging: usbip: stub: update refcounts for devices and interfaces 2011-01-20 16:01:48 -08:00
stub_main.c Staging: usbip: fix multiple interfaces 2010-07-27 11:06:29 -07:00
stub_rx.c staging: usbip: stub: update refcounts for devices and interfaces 2011-01-20 16:01:48 -08:00
stub_tx.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
stub.h staging: usbip: stub: update refcounts for devices and interfaces 2011-01-20 16:01:48 -08:00
usbip_common.c staging: usbip: resolved a space in a comment 2010-09-16 12:37:36 -07:00
usbip_common.h Staging: usbip: fix typos concerning "sequential" 2010-07-08 13:57:58 -07:00
usbip_event.c staging: usbip: Process event flags without delay 2010-09-21 11:00:22 -07:00
vhci_hcd.c staging: usbip: vhci: refuse to enqueue for dead connections 2011-01-20 16:01:49 -08:00
vhci_rx.c staging: usbip: vhci: handle EAGAIN from SO_RCVTIMEO 2011-01-20 16:01:49 -08:00
vhci_sysfs.c USB: rename USB_SPEED_VARIABLE to USB_SPEED_WIRELESS 2010-03-02 14:53:36 -08:00
vhci_tx.c staging: usbip: fix coding style issues in the usbip driver 2010-05-11 11:35:46 -07:00
vhci.h staging: usbip: vhci: give back URBs from in-flight unlink requests 2011-01-20 16:01:49 -08:00

TODO:
	- more discussion about the protocol
	- testing
	- review of the userspace interface

Please send patches for this code to Greg Kroah-Hartman <greg@kroah.com>