On Fr, 2018-06-29 at 16:45 +0200, Miguel Rodríguez Pérez wrote: > Subject: [PATCH 1/2] Hook into usbnet_change_mtu respecting usbnet > driver_info > > Change the way cdc_ncm_change_mtu hooks into the netdev_ops > structure so that changes into usbnet driver_info operations > can be respected. Without this, is was not possible to hook > into usbnet_set_rx_mode.
Hi, what is wrong with the existing hook? static void __handle_set_rx_mode(struct usbnet *dev) { if (dev->driver_info->set_rx_mode) (dev->driver_info->set_rx_mode)(dev); clear_bit(EVENT_SET_RX_MODE, &dev->flags); } If you cannot use it, I would prefer you to actually fix that. Regards Oliver -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html