Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #899061

Bug#891036: libusbip: error: port number exceeds 128

From Gergely Risko <risko@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#891036: libusbip: error: port number exceeds 128
Date 2018-05-22 18:20 +0200
Message-ID <vSib0-pl-3@gated-at.bofh.it> (permalink)
References <vlH06-1O8-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Dear Ben,

The issue is definitely not fixed by this in 4.14.17-1:

  * usbip: Reduce USBIP_VHCI_HC_PORTS to 15, the maximum allowed for SuperSpeed
    hubs (Closes: #878866)

On the other hand simply increasing the limit in the userspace library
from 128 to 256 fixes the issue on my computer running
linux-image-4.16.0-1-amd64 (4.16.5-1).  Please note that the patch is
only a userspace change in the usbip package, not a kernel change.

I tested the change without even rebuilding the package, just building
the userspace usbip executable with autogen+configure+make in the
tools/usb/usbip subdirectory and I managed to pass through a usb
device.  No oopses, no problems, device is working as expected.

Cheers,
Gergely

--- linux-4.16.5.orig/tools/usb/usbip/libsrc/vhci_driver.h
+++ linux-4.16.5/tools/usb/usbip/libsrc/vhci_driver.h
@@ -13,7 +13,7 @@
 
 #define USBIP_VHCI_BUS_TYPE "platform"
 #define USBIP_VHCI_DEVICE_NAME "vhci_hcd.0"
-#define MAXNPORT 128
+#define MAXNPORT 256
 
 enum hub_speed {
 	HUB_SPEED_HIGH = 0,

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#891036: libusbip: error: port number exceeds 128 Gergely Risko <risko@debian.org> - 2018-05-22 18:20 +0200

csiph-web