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

Commit 9507ffc2 authored by Florian Fainelli's avatar Florian Fainelli Committed by David S. Miller
Browse files

net: r6040: Check for skb->xmit_more



Kick the transmission only if this is the last SKB to transmit or the
queue is not already stopped.

Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 58e6b056
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -840,6 +840,7 @@ static netdev_tx_t r6040_start_xmit(struct sk_buff *skb,
	skb_tx_timestamp(skb);

	/* Trigger the MAC to check the TX descriptor */
	if (!skb->xmit_more || netif_queue_stopped(dev))
		iowrite16(TM2TX, ioaddr + MTPR);
	lp->tx_insert_ptr = descptr->vndescp;