]> git.baikalelectronics.ru Git - kernel.git/commit
net: cdc_ncm: add .ndo_set_rx_mode to cdc_ncm_netdev_ops
authorMiguel Rodríguez Pérez <miguel@det.uvigo.gal>
Wed, 15 Jul 2020 18:40:59 +0000 (20:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Jul 2020 19:42:47 +0000 (12:42 -0700)
commit82a24f5bbe9c4391d2a066e09b0ca0c5c15022fb
tree896229d30f19bda375cab389579f7f979eb55e61
parent9a2b4f43524acb065d61fc249f87b67805b874b0
net: cdc_ncm: add .ndo_set_rx_mode to cdc_ncm_netdev_ops

The cdc_ncm driver overrides the net_device_ops structure used by usbnet
to be able to hook into .ndo_change_mtu. However, the structure was
missing the .ndo_set_rx_mode field, preventing the driver from
hooking into usbnet's set_rx_mode. This patch adds the missing callback to
usbnet_set_rx_mode in net_device_ops.

Signed-off-by: Miguel Rodríguez Pérez <miguel@det.uvigo.gal>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c