aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2019-09-20 11:00:02 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2019-09-20 11:00:02 +0000
commit4631d7f71787c707ce5a37a337d96c82644d8f3d (patch)
tree7f9bf8a03601bfa3b54cdb44a8186a403804fbfa /sys/dev
parent4e792e431a92f12f2be7acb20d78f7f2637d659c (diff)
downloadsrc-4631d7f71787c707ce5a37a337d96c82644d8f3d.tar.gz
src-4631d7f71787c707ce5a37a337d96c82644d8f3d.zip
Increase the maximum user-space buffer size from 256kBytes to 32MBytes for
libusb. This is useful for speeding up large data transfers while reducing the interrupt rate. Found at: EuroBSDcon 2019 MFC after: 1 week Sponsored by: Mellanox Technologies
Notes
Notes: svn path=/head/; revision=352555
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usb_ioctl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_ioctl.h b/sys/dev/usb/usb_ioctl.h
index e7e63fb9a895..c4023cab5f16 100644
--- a/sys/dev/usb/usb_ioctl.h
+++ b/sys/dev/usb/usb_ioctl.h
@@ -224,7 +224,7 @@ struct usb_fs_uninit {
} USB_IOCTL_STRUCT_ALIGN(1);
struct usb_fs_open {
-#define USB_FS_MAX_BUFSIZE (1 << 18)
+#define USB_FS_MAX_BUFSIZE (1 << 25) /* 32 MBytes */
uint32_t max_bufsize;
#define USB_FS_MAX_FRAMES (1U << 12)
#define USB_FS_MAX_FRAMES_PRE_SCALE (1U << 31) /* for ISOCHRONOUS transfers */