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

Commit c89fcfd4 authored by David S. Miller's avatar David S. Miller
Browse files

virtio_net: flush when in xmit_more mode and under descriptor pressure



Mirror the changes made to ixgbe in commit 2367a173
("ixgbe: flush when in xmit_more mode and under descriptor pressure")

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6f19e12f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -953,7 +953,7 @@ static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev)
		}
	}

	if (!skb->xmit_more)
	if (__netif_subqueue_stopped(dev, qnum) || !skb->xmit_more)
		virtqueue_kick(sq->vq);

	return NETDEV_TX_OK;