aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2014-08-28 04:39:49 -0400
committerDavid S. Miller <davem@davemloft.net>2014-08-28 04:39:49 -0400
commitc89fcfd42cbcf839b6737c977f280188eeea92d7 (patch)
treec54c730acaf556c5e692d9bbda88c20e747a4776 /drivers/net/virtio_net.c
parent6f19e12f623067d6a330748f932ca4a81b828ffb (diff)
virtio_net: flush when in xmit_more mode and under descriptor pressure
Mirror the changes made to ixgbe in commit 2367a17390138f68b3aa28f2f220b8d7ff8d91f4 ("ixgbe: flush when in xmit_more mode and under descriptor pressure") Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/virtio_net.c')
-rw-r--r--drivers/net/virtio_net.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index f0c2824f5e0f..9359a13d285a 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -953,7 +953,7 @@ static netdev_tx_t start_xmit(struct sk_buff *skb, struct net_device *dev)
953 } 953 }
954 } 954 }
955 955
956 if (!skb->xmit_more) 956 if (__netif_subqueue_stopped(dev, qnum) || !skb->xmit_more)
957 virtqueue_kick(sq->vq); 957 virtqueue_kick(sq->vq);
958 958
959 return NETDEV_TX_OK; 959 return NETDEV_TX_OK;