From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH] vhost: fix ANY_LAYOUT declaration Date: Fri, 19 Jan 2018 22:42:54 +0800 Message-ID: <20180119144254.GQ29540@yliu-mob> References: <1516388570-42634-1-git-send-email-zhihong.wang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, jianfeng.tan@intel.com To: Zhihong Wang Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by dpdk.org (Postfix) with ESMTP id 4F1841B341 for ; Fri, 19 Jan 2018 15:42:59 +0100 (CET) Content-Disposition: inline In-Reply-To: <1516388570-42634-1-git-send-email-zhihong.wang@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Jan 19, 2018 at 02:02:50PM -0500, Zhihong Wang wrote: > The VIRTIO_F_ANY_LAYOUT feature indicates the device accepts arbitrary > descriptor layouts. The vhost-user lib already supports it, but the > feature declaration is missing. This patch fixes the mismatch. I remembered there was a long discussion one year ago, that we can't blindly set this feature, as this flag is reserved (thus should not be set) for virtio 1.0. We should set it when v1.0 is not enabled. However, as you know, v1.0 is also enabled by default in DPDK vhost-user. --yliu > > Signed-off-by: Zhihong Wang > --- > lib/librte_vhost/vhost.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h > index b2bf0e8..57a9bea 100644 > --- a/lib/librte_vhost/vhost.h > +++ b/lib/librte_vhost/vhost.h > @@ -170,6 +170,7 @@ struct vhost_msg { > > /* Features supported by this builtin vhost-user net driver. */ > #define VIRTIO_NET_SUPPORTED_FEATURES ((1ULL << VIRTIO_NET_F_MRG_RXBUF) | \ > + (1ULL << VIRTIO_F_ANY_LAYOUT) | \ > (1ULL << VIRTIO_NET_F_CTRL_VQ) | \ > (1ULL << VIRTIO_NET_F_CTRL_RX) | \ > (1ULL << VIRTIO_NET_F_GUEST_ANNOUNCE) | \ > -- > 2.7.5