* [PATCH] usbnet: no address filtering on RNDIS
@ 2017-05-15 11:58 Oliver Neukum
2017-05-15 12:20 ` Bjørn Mork
0 siblings, 1 reply; 4+ messages in thread
From: Oliver Neukum @ 2017-05-15 11:58 UTC (permalink / raw)
To: davem, netdev; +Cc: Oliver Neukum
RNDIS does not do multicast filtering and the commands crash a few devices.
Make it conditional.
Fixes: b527caee1b91946db844b1dc63d4f726958891c8
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Reported-by: "Ridgway, Keith" <kridgway@harris.com>
---
drivers/net/usb/cdc_ether.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index f3ae88fdf332..64b1a6bdef98 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -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;
--
2.12.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] usbnet: no address filtering on RNDIS
2017-05-15 11:58 [PATCH] usbnet: no address filtering on RNDIS Oliver Neukum
@ 2017-05-15 12:20 ` Bjørn Mork
2017-05-15 14:16 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Bjørn Mork @ 2017-05-15 12:20 UTC (permalink / raw)
To: Oliver Neukum; +Cc: davem, netdev
Oliver Neukum <oneukum@suse.com> writes:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usbnet: no address filtering on RNDIS
2017-05-15 12:20 ` Bjørn Mork
@ 2017-05-15 14:16 ` David Miller
2017-05-15 15:08 ` Oliver Neukum
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2017-05-15 14:16 UTC (permalink / raw)
To: bjorn; +Cc: oneukum, netdev
From: Bjørn Mork <bjorn@mork.no>
Date: Mon, 15 May 2017 14:20:20 +0200
> Oliver Neukum <oneukum@suse.com> writes:
>
>> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] usbnet: no address filtering on RNDIS
2017-05-15 14:16 ` David Miller
@ 2017-05-15 15:08 ` Oliver Neukum
0 siblings, 0 replies; 4+ messages in thread
From: Oliver Neukum @ 2017-05-15 15:08 UTC (permalink / raw)
To: David Miller, bjorn; +Cc: netdev
Am Montag, den 15.05.2017, 10:16 -0400 schrieb David Miller:
> From: Bjørn Mork <bjorn@mork.no>
> Date: Mon, 15 May 2017 14:20:20 +0200
>
> > Oliver Neukum <oneukum@suse.com> writes:
> >
> >> 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.
Indeed. I will redo the patch.
Regards
Oliver
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-05-15 15:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-15 11:58 [PATCH] usbnet: no address filtering on RNDIS Oliver Neukum
2017-05-15 12:20 ` Bjørn Mork
2017-05-15 14:16 ` David Miller
2017-05-15 15:08 ` Oliver Neukum
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.