]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
vhost_net: Avoid rx vring kicks during busyloop
authorToshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Tue, 3 Jul 2018 07:31:34 +0000 (16:31 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Jul 2018 12:30:47 +0000 (21:30 +0900)
commit6369fec5be0aad4965bb13cc8f26a621ff39cc65
tree810c69bece265e17929a7d8848102238b41c36df
parentbe294a51adfc1e1d9884e34480c34e4388f27904
vhost_net: Avoid rx vring kicks during busyloop

We may run out of avail rx ring descriptor under heavy load but busypoll
did not detect it so busypoll may have exited prematurely. Avoid this by
checking rx ring full during busypoll.

Signed-off-by: Toshiaki Makita <makita.toshiaki@lab.ntt.co.jp>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/vhost/net.c