Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;