aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/core/pktgen.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 7bae576ac115..4ad62d375373 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -3331,8 +3331,9 @@ static __inline__ void pktgen_xmit(struct pktgen_dev *pkt_dev)
3331 } 3331 }
3332 3332
3333 if ((netif_queue_stopped(odev) || 3333 if ((netif_queue_stopped(odev) ||
3334 netif_subqueue_stopped(odev, pkt_dev->skb->queue_mapping)) || 3334 (pkt_dev->skb &&
3335 need_resched()) { 3335 netif_subqueue_stopped(odev, pkt_dev->skb->queue_mapping))) ||
3336 need_resched()) {
3336 idle_start = getCurUs(); 3337 idle_start = getCurUs();
3337 3338
3338 if (!netif_running(odev)) { 3339 if (!netif_running(odev)) {