Skip to content

Commit 0e25557

Browse files
committed
vhost: fix interrupt mitigation with raw sockets
A thinko in code means we never trigger interrupt mitigation. Fix this. Reported-by: Juan Quintela <[email protected]> Reported-by: Unai Uribarri <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
1 parent 1dace8c commit 0e25557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/vhost/net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ static void handle_tx(struct vhost_net *net)
125125
mutex_lock(&vq->mutex);
126126
vhost_disable_notify(vq);
127127

128-
if (wmem < sock->sk->sk_sndbuf * 2)
128+
if (wmem < sock->sk->sk_sndbuf / 2)
129129
tx_poll_stop(net);
130130
hdr_size = vq->hdr_size;
131131

0 commit comments

Comments
 (0)