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 May 22, 2024
1 parent b3eed38 commit 964bbf8
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 @@ -1101,6 +1101,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 @@ -1113,6 +1119,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 964bbf8

Please sign in to comment.