usbnet: no address filtering on RNDIS
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.
--- drivers/net/usb/cdc_ether.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/net/usb/cdc_ether.c +4 -2
@@ -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
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
David Miller
maintainerFrom: 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.
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 +0200Quoted 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