Skip to content

Commit

Permalink
add ndo_poll_controller property to allow netcon
Browse files Browse the repository at this point in the history
  • Loading branch information
mk01 authored and mkreisl committed Oct 23, 2023
1 parent 88c9b60 commit 271edd2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions drivers/net/usb/smsc95xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,6 +1099,12 @@ static int smsc95xx_reset(struct usbnet *dev)
return 0;
}

#ifdef CONFIG_NET_POLL_CONTROLLER
static void smsc95xx_poll_dummy(struct net_device *netdev)
{
}
#endif

static const struct net_device_ops smsc95xx_netdev_ops = {
.ndo_open = usbnet_open,
.ndo_stop = usbnet_stop,
Expand All @@ -1111,6 +1117,9 @@ static const struct net_device_ops smsc95xx_netdev_ops = {
.ndo_eth_ioctl = smsc95xx_ioctl,
.ndo_set_rx_mode = smsc95xx_set_multicast,
.ndo_set_features = smsc95xx_set_features,
#ifdef CONFIG_NET_POLL_CONTROLLER
.ndo_poll_controller = smsc95xx_poll_dummy,
#endif
};

static void smsc95xx_handle_link_change(struct net_device *net)
Expand Down

0 comments on commit 271edd2

Please sign in to comment.