linux-stable/drivers/vhost
Jason Wang dbf34207c6 vhost_net: re-poll only on EAGAIN or ENOBUFS
Currently, we restart tx polling unconditionally when sendmsg()
fails. This would cause unnecessary wakeups of vhost wokers and waste
cpu utlization when evil userspace(guest driver) is able to hit EFAULT or
EINVAL.

The polling is only needed when the socket send buffer were exceeded or not
enough memory. So fix this by restarting polling only when sendmsg() returns
EAGAIN/ENOBUFS.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2012-05-02 18:22:24 +03:00
..
Kconfig net/macvtap: add vhost support 2010-02-18 14:08:38 -08:00
Makefile
net.c vhost_net: re-poll only on EAGAIN or ENOBUFS 2012-05-02 18:22:24 +03:00
test.c tools/virtio: fix up vhost/test module build 2012-04-12 10:35:42 +03:00
test.h vhost test module 2010-12-09 16:00:21 +02:00
vhost.c skbuff: struct ubuf_info callback type safety 2012-04-13 13:09:19 -04:00
vhost.h skbuff: struct ubuf_info callback type safety 2012-04-13 13:09:19 -04:00