diff options
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 7bae576ac115..36fdea71d742 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c | |||
@@ -380,7 +380,6 @@ struct pktgen_thread { | |||
380 | /* Field for thread to receive "posted" events terminate, stop ifs etc. */ | 380 | /* Field for thread to receive "posted" events terminate, stop ifs etc. */ |
381 | 381 | ||
382 | u32 control; | 382 | u32 control; |
383 | int pid; | ||
384 | int cpu; | 383 | int cpu; |
385 | 384 | ||
386 | wait_queue_head_t queue; | 385 | wait_queue_head_t queue; |
@@ -3331,8 +3330,9 @@ static __inline__ void pktgen_xmit(struct pktgen_dev *pkt_dev) | |||
3331 | } | 3330 | } |
3332 | 3331 | ||
3333 | if ((netif_queue_stopped(odev) || | 3332 | if ((netif_queue_stopped(odev) || |
3334 | netif_subqueue_stopped(odev, pkt_dev->skb->queue_mapping)) || | 3333 | (pkt_dev->skb && |
3335 | need_resched()) { | 3334 | netif_subqueue_stopped(odev, pkt_dev->skb->queue_mapping))) || |
3335 | need_resched()) { | ||
3336 | idle_start = getCurUs(); | 3336 | idle_start = getCurUs(); |
3337 | 3337 | ||
3338 | if (!netif_running(odev)) { | 3338 | if (!netif_running(odev)) { |
@@ -3462,8 +3462,6 @@ static int pktgen_thread_worker(void *arg) | |||
3462 | 3462 | ||
3463 | init_waitqueue_head(&t->queue); | 3463 | init_waitqueue_head(&t->queue); |
3464 | 3464 | ||
3465 | t->pid = current->pid; | ||
3466 | |||
3467 | pr_debug("pktgen: starting pktgen/%d: pid=%d\n", cpu, current->pid); | 3465 | pr_debug("pktgen: starting pktgen/%d: pid=%d\n", cpu, current->pid); |
3468 | 3466 | ||
3469 | max_before_softirq = t->max_before_softirq; | 3467 | max_before_softirq = t->max_before_softirq; |