aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
Diffstat (limited to 'net/core')
-rw-r--r--net/core/netpoll.c2
-rw-r--r--net/core/pktgen.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index a5ad06828d67..12b1df976562 100644
--- a/net/core/netpoll.c
+++ b/net/core/netpoll.c
@@ -115,7 +115,7 @@ static void queue_process(struct work_struct *work)
115 continue; 115 continue;
116 } 116 }
117 117
118 txq = netdev_get_tx_queue(dev, skb_get_queue_mapping(skb)); 118 txq = skb_get_tx_queue(dev, skb);
119 119
120 local_irq_save(flags); 120 local_irq_save(flags);
121 HARD_TX_LOCK(dev, txq, smp_processor_id()); 121 HARD_TX_LOCK(dev, txq, smp_processor_id());
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 83e2b4b19eb7..d81b540096c3 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -3286,7 +3286,6 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
3286{ 3286{
3287 struct net_device *odev = pkt_dev->odev; 3287 struct net_device *odev = pkt_dev->odev;
3288 struct netdev_queue *txq; 3288 struct netdev_queue *txq;
3289 u16 queue_map;
3290 int ret; 3289 int ret;
3291 3290
3292 /* If device is offline, then don't send */ 3291 /* If device is offline, then don't send */
@@ -3324,8 +3323,7 @@ static void pktgen_xmit(struct pktgen_dev *pkt_dev)
3324 if (pkt_dev->delay && pkt_dev->last_ok) 3323 if (pkt_dev->delay && pkt_dev->last_ok)
3325 spin(pkt_dev, pkt_dev->next_tx); 3324 spin(pkt_dev, pkt_dev->next_tx);
3326 3325
3327 queue_map = skb_get_queue_mapping(pkt_dev->skb); 3326 txq = skb_get_tx_queue(odev, pkt_dev->skb);
3328 txq = netdev_get_tx_queue(odev, queue_map);
3329 3327
3330 local_bh_disable(); 3328 local_bh_disable();
3331 3329