From: Stephen Hemminger Date: Tue, 6 Nov 2007 19:45:40 +0000 (-0800) Subject: sky2: netpoll on port 0 only X-Git-Tag: v2.6.24-rc3~163^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a5e68c02fe4d8dff2ff3c5212f9f67082849cc4b;p=platform%2Fupstream%2Fkernel-adaptation-pc.git sky2: netpoll on port 0 only Netpoll will only work on port 0 because of the restrictive relationship between NAPI and netpoll. Signed-off-by: Stephen Hemminger Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 94de85f..4666e6e 100644 --- a/drivers/net/sky2.c +++ b/drivers/net/sky2.c @@ -3995,7 +3995,8 @@ static __devinit struct net_device *sky2_init_netdev(struct sky2_hw *hw, dev->tx_timeout = sky2_tx_timeout; dev->watchdog_timeo = TX_WATCHDOG; #ifdef CONFIG_NET_POLL_CONTROLLER - dev->poll_controller = sky2_netpoll; + if (port == 0) + dev->poll_controller = sky2_netpoll; #endif sky2 = netdev_priv(dev);