diff options
author | Olivier Blin <olivier.blin@softathome.com> | 2014-10-24 19:43:00 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-28 17:26:19 -0400 |
commit | 1efed2d06c703489342ab6af2951683e07509c99 (patch) | |
tree | ac3ba893ec63694de9c5719b2420d0d05f45260c /include | |
parent | 9ffa1fcaef222026a8e031830f8db29d3f2cfc47 (diff) | |
download | linux-exynos-1efed2d06c703489342ab6af2951683e07509c99.tar.gz linux-exynos-1efed2d06c703489342ab6af2951683e07509c99.tar.bz2 linux-exynos-1efed2d06c703489342ab6af2951683e07509c99.zip |
usbnet: add a callback for set_rx_mode
To delegate promiscuous mode and multicast filtering to the subdriver.
Signed-off-by: Olivier Blin <olivier.blin@softathome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/usbnet.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/usbnet.h b/include/linux/usb/usbnet.h index 26088feb6608..d9a4905e01d0 100644 --- a/include/linux/usb/usbnet.h +++ b/include/linux/usb/usbnet.h @@ -78,6 +78,7 @@ struct usbnet { # define EVENT_NO_RUNTIME_PM 9 # define EVENT_RX_KILL 10 # define EVENT_LINK_CHANGE 11 +# define EVENT_SET_RX_MODE 12 }; static inline struct usb_driver *driver_of(struct usb_interface *intf) @@ -159,6 +160,9 @@ struct driver_info { /* called by minidriver when receiving indication */ void (*indication)(struct usbnet *dev, void *ind, int indlen); + /* rx mode change (device changes address list filtering) */ + void (*set_rx_mode)(struct usbnet *dev); + /* for new devices, use the descriptor-reading code instead */ int in; /* rx endpoint */ int out; /* tx endpoint */ |