diff options
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r-- | net/core/netpoll.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 823215d8e90f..da1019451ccb 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -237,13 +237,13 @@ static void netpoll_send_skb(struct netpoll *np, struct sk_buff *skb) | |||
237 | { | 237 | { |
238 | int status = NETDEV_TX_BUSY; | 238 | int status = NETDEV_TX_BUSY; |
239 | unsigned long tries; | 239 | unsigned long tries; |
240 | struct net_device *dev = np->dev; | 240 | struct net_device *dev = np->dev; |
241 | struct netpoll_info *npinfo = np->dev->npinfo; | 241 | struct netpoll_info *npinfo = np->dev->npinfo; |
242 | 242 | ||
243 | if (!npinfo || !netif_running(dev) || !netif_device_present(dev)) { | 243 | if (!npinfo || !netif_running(dev) || !netif_device_present(dev)) { |
244 | __kfree_skb(skb); | 244 | __kfree_skb(skb); |
245 | return; | 245 | return; |
246 | } | 246 | } |
247 | 247 | ||
248 | /* don't get messages out of order, and no recursion */ | 248 | /* don't get messages out of order, and no recursion */ |
249 | if (skb_queue_len(&npinfo->txq) == 0 && | 249 | if (skb_queue_len(&npinfo->txq) == 0 && |
@@ -676,7 +676,7 @@ int netpoll_setup(struct netpoll *np) | |||
676 | } | 676 | } |
677 | 677 | ||
678 | atleast = jiffies + HZ/10; | 678 | atleast = jiffies + HZ/10; |
679 | atmost = jiffies + 4*HZ; | 679 | atmost = jiffies + 4*HZ; |
680 | while (!netif_carrier_ok(ndev)) { | 680 | while (!netif_carrier_ok(ndev)) { |
681 | if (time_after(jiffies, atmost)) { | 681 | if (time_after(jiffies, atmost)) { |
682 | printk(KERN_NOTICE | 682 | printk(KERN_NOTICE |
@@ -772,9 +772,9 @@ void netpoll_cleanup(struct netpoll *np) | |||
772 | np->dev->npinfo = NULL; | 772 | np->dev->npinfo = NULL; |
773 | if (atomic_dec_and_test(&npinfo->refcnt)) { | 773 | if (atomic_dec_and_test(&npinfo->refcnt)) { |
774 | skb_queue_purge(&npinfo->arp_tx); | 774 | skb_queue_purge(&npinfo->arp_tx); |
775 | skb_queue_purge(&npinfo->txq); | 775 | skb_queue_purge(&npinfo->txq); |
776 | cancel_rearming_delayed_work(&npinfo->tx_work); | 776 | cancel_rearming_delayed_work(&npinfo->tx_work); |
777 | flush_scheduled_work(); | 777 | flush_scheduled_work(); |
778 | 778 | ||
779 | kfree(npinfo); | 779 | kfree(npinfo); |
780 | } | 780 | } |