diff options
| -rw-r--r-- | drivers/vhost/net.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c index 67898fa9c447..ff6c91995c96 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) | |||
| 823 | r = vhost_init_used(vq); | 823 | r = vhost_init_used(vq); |
| 824 | if (r) | 824 | if (r) |
| 825 | goto err_vq; | 825 | goto err_vq; |
| 826 | |||
| 827 | n->tx_packets = 0; | ||
| 828 | n->tx_zcopy_err = 0; | ||
| 826 | } | 829 | } |
| 827 | 830 | ||
| 828 | mutex_unlock(&vq->mutex); | 831 | mutex_unlock(&vq->mutex); |
