Commit 0e255572 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin

vhost: fix interrupt mitigation with raw sockets

A thinko in code means we never trigger interrupt
mitigation. Fix this.
Reported-by: default avatarJuan Quintela <quintela@redhat.com>
Reported-by: default avatarUnai Uribarri <unai.uribarri@optenet.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent 1dace8c8
......@@ -125,7 +125,7 @@ static void handle_tx(struct vhost_net *net)
mutex_lock(&vq->mutex);
vhost_disable_notify(vq);
if (wmem < sock->sk->sk_sndbuf * 2)
if (wmem < sock->sk->sk_sndbuf / 2)
tx_poll_stop(net);
hdr_size = vq->hdr_size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment