]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
USB: serial: re-implement multi-urb writes in generic driver
authorJohan Hovold <jhovold@gmail.com>
Wed, 17 Mar 2010 22:06:07 +0000 (23:06 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 May 2010 20:21:35 +0000 (13:21 -0700)
commit25d514ca227e1ac81d0906a4ccf2aa171f50a600
tree599690248485fb28cd61cf0ce73004e4fbbf3559
parent40f92f0dcd9b215c48c53a226328e8e36615e367
USB: serial: re-implement multi-urb writes in generic driver

Use dynamic transfer buffer sizes since it is more efficient to let the
host controller do the partitioning to fit endpoint size. This way we
also do not use more than one urb per write request.

Replace max_in_flight_urbs with multi_urb_write flag in struct
usb_serial_driver to enable multi-urb writes.

Use MAX_TX_URBS=40 and a max buffer size of PAGE_SIZE to prevent DoS
attacks.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/generic.c
include/linux/usb/serial.h