aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/netpoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r--net/core/netpoll.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index d44af2306f23..ed7740f7a94d 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -119,17 +119,17 @@ static void queue_process(struct work_struct *work)
119 txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb)); 119 txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb));
120 120
121 local_irq_save(flags); 121 local_irq_save(flags);
122 __netif_tx_lock(txq, smp_processor_id()); 122 HARD_TX_LOCK(dev, txq, smp_processor_id());
123 if (netif_xmit_frozen_or_stopped(txq) || 123 if (netif_xmit_frozen_or_stopped(txq) ||
124 netpoll_start_xmit(skb, dev, txq) != NETDEV_TX_OK) { 124 netpoll_start_xmit(skb, dev, txq) != NETDEV_TX_OK) {
125 skb_queue_head(&npinfo->txq, skb); 125 skb_queue_head(&npinfo->txq, skb);
126 __netif_tx_unlock(txq); 126 HARD_TX_UNLOCK(dev, txq);
127 local_irq_restore(flags); 127 local_irq_restore(flags);
128 128
129 schedule_delayed_work(&npinfo->tx_work, HZ/10); 129 schedule_delayed_work(&npinfo->tx_work, HZ/10);
130 return; 130 return;
131 } 131 }
132 __netif_tx_unlock(txq); 132 HARD_TX_UNLOCK(dev, txq);
133 local_irq_restore(flags); 133 local_irq_restore(flags);
134 } 134 }
135} 135}
@@ -345,11 +345,11 @@ void netpoll_send_skb_on_dev(struct netpoll *np, struct sk_buff *skb,
345 /* try until next clock tick */ 345 /* try until next clock tick */
346 for (tries = jiffies_to_usecs(1)/USEC_PER_POLL; 346 for (tries = jiffies_to_usecs(1)/USEC_PER_POLL;
347 tries > 0; --tries) { 347 tries > 0; --tries) {
348 if (__netif_tx_trylock(txq)) { 348 if (HARD_TX_TRYLOCK(dev, txq)) {
349 if (!netif_xmit_stopped(txq)) 349 if (!netif_xmit_stopped(txq))
350 status = netpoll_start_xmit(skb, dev, txq); 350 status = netpoll_start_xmit(skb, dev, txq);
351 351
352 __netif_tx_unlock(txq); 352 HARD_TX_UNLOCK(dev, txq);
353 353
354 if (status == NETDEV_TX_OK) 354 if (status == NETDEV_TX_OK)
355 break; 355 break;