Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 378be2c0 authored by Robert Olsson's avatar Robert Olsson Committed by David S. Miller
Browse files

[PKTGEN]: Fix multiqueue oops.



Initially pkt_dev can be NULL this causes netif_subqueue_stopped to 
oops. The patch below should cure it. But maybe the pktgen TX logic 
should be reworked to better support the new multiqueue support. 

Signed-off-by: default avatarRobert Olsson <robert.olsson@its.uu.se>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 594a9dfa
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -3331,7 +3331,8 @@ static __inline__ void pktgen_xmit(struct pktgen_dev *pkt_dev)
	}
	}


	if ((netif_queue_stopped(odev) ||
	if ((netif_queue_stopped(odev) ||
	     netif_subqueue_stopped(odev, pkt_dev->skb->queue_mapping)) ||
	     (pkt_dev->skb &&
	      netif_subqueue_stopped(odev, pkt_dev->skb->queue_mapping))) ||
	    need_resched()) {
	    need_resched()) {
		idle_start = getCurUs();
		idle_start = getCurUs();