Skip to contentSkip to conversation

usbnet: no address filtering on RNDIS

PATCH In review Oliver Neukum 3 participants 4 messages May 15, 2017

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usbnet: no address filtering on RNDIS

RNDIS does not do multicast filtering and the commands crash a few devices. Make it conditional.

Fixes b527caee1b91946db844b1dc63d4f726958891c8
---
 drivers/net/usb/cdc_ether.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/usb/cdc_ether.c +4 -2
index f3ae88fdf332..64b1a6bdef98 100644
@@ -313,9 +313,11 @@ int usbnet_generic_cdc_bind(struct usbnet *dev, struct usb_interface *intf)
 	/* Some devices don't initialise properly. In particular
 	 * the packet filter is not reset. There are devices that
 	 * don't do reset all the way. So the packet filter should
-	 * be set to a sane initial value.
+	 * be set to a sane initial value, if filtering is supported.
+	 * RNDIS does not support it.
 	 */
-	usbnet_cdc_update_filter(dev);
+	if (!rndis)
+		usbnet_cdc_update_filter(dev);
 
 	return 0;
 
Signature · 1 line
2.12.0
#1 lore raw
Quoted 2 lines · Oliver Neukum

RNDIS does not do multicast filtering and the commands crash a few devices. Make it conditional.

Strange. I thought we already discussed this when the filter reset request was initially added 3 years ago. Ref
https://patchwork.ozlabs.org/patch/374137/

Bjørn

maintainer
#2 lore raw

From: Bjørn Mork <[email protected]>
Date: Mon, 15 May 2017 14:20:20 +0200

Quoted 9 lines
Quoted 2 lines · Oliver Neukum

RNDIS does not do multicast filtering and the commands crash a few devices. Make it conditional.

Strange. I thought we already discussed this when the filter reset request was initially added 3 years ago. Ref
https://patchwork.ozlabs.org/patch/374137/

I think the suggestion at the end of that thread is a better way to handle this.

#3 lore raw

Am Montag, den 15.05.2017, 10:16 -0400 schrieb David Miller:

Quoted 9 lines

From: Bjørn Mork <[email protected]>
Date: Mon, 15 May 2017 14:20:20 +0200

Quoted 6 lines
Quoted 2 lines · Oliver Neukum

RNDIS does not do multicast filtering and the commands crash a few devices. Make it conditional.

Quoted 6 lines
Quoted 3 lines

Strange.  I thought we already discussed this when the filter reset request was initially added 3 years ago.  Ref
https://patchwork.ozlabs.org/patch/374137/

I think the suggestion at the end of that thread is a better way to handle this.

Indeed. I will redo the patch.

Regards
Oliver