[PATCH 2/3] can: peak_usb: increase rx buffer size used for USB bulk transfer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In case of high bud load, 2KB can sometimes be too small for the device,
leading to potential fragmentation of USB records, while 4KB better suits
its internal buffer size.

Signed-off-by: Stephane Grosjean <s.grosjean@xxxxxxxxxxxxxxx>
---
 drivers/net/can/usb/peak_usb/pcan_usb_fd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/can/usb/peak_usb/pcan_usb_fd.c b/drivers/net/can/usb/peak_usb/pcan_usb_fd.c
index 4d85b29a17b7..a1c339716776 100644
--- a/drivers/net/can/usb/peak_usb/pcan_usb_fd.c
+++ b/drivers/net/can/usb/peak_usb/pcan_usb_fd.c
@@ -30,7 +30,7 @@
 #define PCAN_UFD_CMD_TIMEOUT_MS		1000
 
 /* PCAN-USB Pro FD rx/tx buffers size */
-#define PCAN_UFD_RX_BUFFER_SIZE		2048
+#define PCAN_UFD_RX_BUFFER_SIZE		4096
 #define PCAN_UFD_TX_BUFFER_SIZE		512
 
 /* struct pcan_ufd_fw_info::type */
-- 
2.34.1





[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux