|
@@ -266,6 +266,8 @@ static void handle_tx(struct vhost_net *net)
|
|
" len %d != %zd\n", err, len);
|
|
" len %d != %zd\n", err, len);
|
|
if (!zcopy)
|
|
if (!zcopy)
|
|
vhost_add_used_and_signal(&net->dev, vq, head, 0);
|
|
vhost_add_used_and_signal(&net->dev, vq, head, 0);
|
|
|
|
+ else
|
|
|
|
+ vhost_zerocopy_signal_used(vq);
|
|
total_len += len;
|
|
total_len += len;
|
|
if (unlikely(total_len >= VHOST_NET_WEIGHT)) {
|
|
if (unlikely(total_len >= VHOST_NET_WEIGHT)) {
|
|
vhost_poll_queue(&vq->poll);
|
|
vhost_poll_queue(&vq->poll);
|