Commit e10dcb1b authored by Miguel Rodríguez Pérez's avatar Miguel Rodríguez Pérez Committed by David S. Miller

net: cdc_ncm: hook into set_rx_mode to admit multicast traffic

We set set_rx_mode to usbnet_cdc_update_filter provided
by cdc_ether that simply admits all multicast traffic
if there is more than one multicast filter configured.
Signed-off-by: default avatarMiguel Rodríguez Pérez <miguel@det.uvigo.gal>
Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 37a2ebdd
...@@ -1896,6 +1896,7 @@ static const struct driver_info cdc_ncm_info = { ...@@ -1896,6 +1896,7 @@ static const struct driver_info cdc_ncm_info = {
.status = cdc_ncm_status, .status = cdc_ncm_status,
.rx_fixup = cdc_ncm_rx_fixup, .rx_fixup = cdc_ncm_rx_fixup,
.tx_fixup = cdc_ncm_tx_fixup, .tx_fixup = cdc_ncm_tx_fixup,
.set_rx_mode = usbnet_cdc_update_filter,
}; };
/* Same as cdc_ncm_info, but with FLAG_WWAN */ /* Same as cdc_ncm_info, but with FLAG_WWAN */
...@@ -1909,6 +1910,7 @@ static const struct driver_info wwan_info = { ...@@ -1909,6 +1910,7 @@ static const struct driver_info wwan_info = {
.status = cdc_ncm_status, .status = cdc_ncm_status,
.rx_fixup = cdc_ncm_rx_fixup, .rx_fixup = cdc_ncm_rx_fixup,
.tx_fixup = cdc_ncm_tx_fixup, .tx_fixup = cdc_ncm_tx_fixup,
.set_rx_mode = usbnet_cdc_update_filter,
}; };
/* Same as wwan_info, but with FLAG_NOARP */ /* Same as wwan_info, but with FLAG_NOARP */
...@@ -1922,6 +1924,7 @@ static const struct driver_info wwan_noarp_info = { ...@@ -1922,6 +1924,7 @@ static const struct driver_info wwan_noarp_info = {
.status = cdc_ncm_status, .status = cdc_ncm_status,
.rx_fixup = cdc_ncm_rx_fixup, .rx_fixup = cdc_ncm_rx_fixup,
.tx_fixup = cdc_ncm_tx_fixup, .tx_fixup = cdc_ncm_tx_fixup,
.set_rx_mode = usbnet_cdc_update_filter,
}; };
static const struct usb_device_id cdc_devs[] = { static const struct usb_device_id cdc_devs[] = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment