[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v11 2/7] vhost-user: add protocol feature negoti
From: |
Yuanhan Liu |
Subject: |
Re: [Qemu-devel] [PATCH v11 2/7] vhost-user: add protocol feature negotiation |
Date: |
Thu, 24 Sep 2015 19:29:04 +0800 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Thu, Sep 24, 2015 at 01:13:24PM +0300, Marcel Apfelbaum wrote:
> >diff --git a/hw/net/vhost_net.c b/hw/net/vhost_net.c
> >index 1d76b94..9d32d76 100644
> >--- a/hw/net/vhost_net.c
> >+++ b/hw/net/vhost_net.c
> >@@ -152,8 +152,10 @@ struct vhost_net *vhost_net_init(VhostNetOptions
> >*options)
> > net->dev.backend_features = qemu_has_vnet_hdr(options->net_backend)
> > ? 0 : (1ULL << VHOST_NET_F_VIRTIO_NET_HDR);
> > net->backend = r;
> >+ net->dev.protocol_features = 0;
> > } else {
> > net->dev.backend_features = 0;
> >+ net->dev.protocol_features = 0;
> > net->backend = -1;
> > }
>
> Maybe protocol_features assignment should be outside the if clause.
> (assigned to 0 in both cases)
Yeah, we could do that. However, it seems that it will take more effort,
for handling patch conflicts while rebase, than it worths. Therefore
I will keep it.
--yliu
- [Qemu-devel] [PATCH v11 0/7] vhost-user multiple queue support, Yuanhan Liu, 2015/09/23
- [Qemu-devel] [PATCH v11 2/7] vhost-user: add protocol feature negotiation, Yuanhan Liu, 2015/09/23
- [Qemu-devel] [PATCH v11 3/7] vhost: rename VHOST_RESET_OWNER to VHOST_RESET_DEVICE, Yuanhan Liu, 2015/09/23
- [Qemu-devel] [PATCH v11 4/7] vhost-user: add VHOST_USER_GET_QUEUE_NUM message, Yuanhan Liu, 2015/09/23
- [Qemu-devel] [PATCH v11 5/7] vhost: introduce vhost_backend_get_vq_index method, Yuanhan Liu, 2015/09/23
- [Qemu-devel] [PATCH v11 6/7] vhost-user: add multiple queue support, Yuanhan Liu, 2015/09/23