netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net 0/3] cdc-ether: handle promiscuous mode
@ 2014-10-24 17:42 Olivier Blin
  2014-10-24 17:43 ` [PATCH net 1/3] usbnet: add a callback for set_rx_mode Olivier Blin
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Olivier Blin @ 2014-10-24 17:42 UTC (permalink / raw)
  To: netdev; +Cc: oneukum, hayeswang, bjorn, davem, Olivier Blin

Hi,

Since kernel 3.16, my Lenovo USB network adapters (RTL8153) using
cdc-ether are not working anymore in a bridge.

This is due to commit c472ab68ad67db23c9907a27649b7dc0899b61f9, which
resets the packet filter when the device is bound.

The default packet filter set by cdc-ether does not include
promiscuous, while the adapter seemed to have promiscuous enabled by
default.

This patch series allows to support promiscuous mode for cdc-ether, by
hooking into set_rx_mode.

Incidentally, maybe this device should be handled by the r8152 driver,
but this patch series is still nice for other adapters.

Thanks

Olivier Blin (3):
  usbnet: add a callback for set_rx_mode
  cdc-ether: extract usbnet_cdc_update_filter function
  cdc-ether: handle promiscuous mode with a set_rx_mode callback

 drivers/net/usb/cdc_ether.c | 47 +++++++++++++++++++++++++++++++--------------
 drivers/net/usb/usbnet.c    | 20 +++++++++++++++++++
 include/linux/usb/usbnet.h  |  4 ++++
 3 files changed, 57 insertions(+), 14 deletions(-)

-- 
2.1.2

-- This message and any attachments herein are confidential, intended solely for the addressees and are SoftAtHome.s ownership. Any unauthorized use or dissemination is prohibited. If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
-- This message and any attachments herein are confidential, intended solely for the addressees and are SoftAtHome.s ownership. Any unauthorized use or dissemination is prohibited. If you are not the intended addressee of this message, please cancel it immediately and inform the sender.

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

end of thread, other threads:[~2014-10-28 21:30 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-24 17:42 [PATCH net 0/3] cdc-ether: handle promiscuous mode Olivier Blin
2014-10-24 17:43 ` [PATCH net 1/3] usbnet: add a callback for set_rx_mode Olivier Blin
2014-10-24 17:43 ` [PATCH net 2/3] cdc-ether: extract usbnet_cdc_update_filter function Olivier Blin
2014-10-24 17:43 ` [PATCH net 3/3] cdc-ether: handle promiscuous mode with a set_rx_mode callback Olivier Blin
2014-10-27 10:02 ` [PATCH net 0/3] cdc-ether: handle promiscuous mode Oliver Neukum
2014-10-28 19:49 ` David Miller
2014-10-28 21:10   ` Oliver Neukum
2014-10-28 21:30     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).