All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next 1/1] net: usb: qmi_wwan: add default rx_urb_size
@ 2020-09-09  9:13 Daniele Palmas
  2020-09-09 11:09 ` 答复: " Carl Yin(殷张成)
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Daniele Palmas @ 2020-09-09  9:13 UTC (permalink / raw)
  To: Bjørn Mork
  Cc: Kristian Evensen, Paul Gildea, Carl Yin, David S . Miller,
	Jakub Kicinski, netdev, linux-usb, Daniele Palmas

Add default rx_urb_size to support QMAP download data aggregation
without needing additional setup steps in userspace.

The value chosen is the current highest one seen in available modems.

The patch has the side-effect of fixing a babble issue in raw-ip mode
reported by multiple users.

Signed-off-by: Daniele Palmas <dnlplm@gmail.com>
---
Resending with mailing lists added: sorry for the noise.

Hi Bjørn and all,

this patch tries to address the issue reported in the following threads

https://www.spinics.net/lists/netdev/msg635944.html
https://www.spinics.net/lists/linux-usb/msg198846.html
https://www.spinics.net/lists/linux-usb/msg198025.html

so I'm adding the people involved, maybe you can give it a try to
double check if this is good for you.

On my side, I performed tests with different QC chipsets without
experiencing problems.

Thanks,
Daniele
---
 drivers/net/usb/qmi_wwan.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/net/usb/qmi_wwan.c b/drivers/net/usb/qmi_wwan.c
index 07c42c0719f5..92d568f982b6 100644
--- a/drivers/net/usb/qmi_wwan.c
+++ b/drivers/net/usb/qmi_wwan.c
@@ -815,6 +815,10 @@ static int qmi_wwan_bind(struct usbnet *dev, struct usb_interface *intf)
 	}
 	dev->net->netdev_ops = &qmi_wwan_netdev_ops;
 	dev->net->sysfs_groups[0] = &qmi_wwan_sysfs_attr_group;
+
+	/* Set rx_urb_size to allow QMAP rx data aggregation */
+	dev->rx_urb_size = 32768;
+
 err:
 	return status;
 }
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-11-13 15:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09  9:13 [PATCH net-next 1/1] net: usb: qmi_wwan: add default rx_urb_size Daniele Palmas
2020-09-09 11:09 ` 答复: " Carl Yin(殷张成)
2020-09-09 11:57   ` Daniele Palmas
2020-09-09 12:49     ` Bjørn Mork
2020-09-09 21:10       ` Daniele Palmas
2020-09-09 12:28 ` Greg KH
2020-09-09 20:50   ` Daniele Palmas
2020-11-04 17:01 ` Kristian Evensen
2020-11-12 18:28   ` Daniele Palmas
2020-11-13  7:37     ` Kristian Evensen
2020-11-13  8:37       ` 答复: " Carl Yin(殷张成)
2020-11-13  8:50         ` Kristian Evensen
2020-11-13 15:04           ` Kristian Evensen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.