X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=drivers%2Fvhost%2Fnet.c;h=ff6c91995c96ca25389e1249d80cb42e2402c6de;hb=64e9a9b8a0eef9cbd9f86f0e79fc4eeea24abe76;hp=67898fa9c4477f053ddaaadc05431ae77b918b7a;hpb=3e14bd390ebe41e8b83855fd85fb64478c7c5ee2;p=~andy%2Flinux diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 67898fa9c44..ff6c91995c9 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);