diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 67898fa9c4477f053ddaaadc05431ae77b918b7a..ff6c91995c96ca25389e1249d80cb42e2402c6de 100644 --- a/drivers/vhost/net.c +++ b/drivers/vhost/net.c @@ -823,6 +823,9 @@ static long vhost_net_set_backend(struct vhost_net *n, unsigned index, int fd) r = vhost_init_used(vq); if (r) goto err_vq; + + n->tx_packets = 0; + n->tx_zcopy_err = 0; } mutex_unlock(&vq->mutex);