]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
vhost-net: reduce vq polling on tx zerocopy
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 1 Nov 2012 09:16:55 +0000 (09:16 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 3 Nov 2012 01:29:58 +0000 (21:29 -0400)
commit24eb21a14896e5c1c7cbca8e9a40405a51745f1d
treefc754d17a01a4f56272401fd4d73ebe5ee60ede6
parenteaae8132ef6032ffe612e789e8ff145dcf5bc2bb
vhost-net: reduce vq polling on tx zerocopy

It seems that to avoid deadlocks it is enough to poll vq before
 we are going to use the last buffer.  This is faster than
c70aa540c7a9f67add11ad3161096fb95233aa2e.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c