]> git.baikalelectronics.ru Git - kernel.git/commit
vhost-net: restart tx poll on sk_sndbuf full
authorSridhar Samudrala <samudrala@us.ibm.com>
Sun, 28 Feb 2010 17:39:16 +0000 (19:39 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 28 Feb 2010 17:50:33 +0000 (19:50 +0200)
commit9cbb12fb0a2ea72f1a335de61ffe929e660eb078
tree1639935ff004a1ba9452314bd8921f81058bb29a
parentf30710f9ec7c291ca9ea801ece0ea2bea15f6465
vhost-net: restart tx poll on sk_sndbuf full

guest to remote communication with vhost net sometimes stops until
guest driver is restarted. This happens when we get guest kick precisely
when the backend send queue is full, as a result handle_tx() returns without
polling backend. This patch fixes this by restarting tx poll on this condition.

Signed-off-by: Sridhar Samudrala <samudrala@us.ibm.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Tom Lendacky <toml@us.ibm.com>
drivers/vhost/net.c