From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Freimann Subject: [RFC PATCH 04/11] vhost: enable 1.1 for testing Date: Fri, 5 May 2017 09:57:15 -0400 Message-ID: <1493992642-52756-5-git-send-email-jfreiman@redhat.com> References: <1493992642-52756-1-git-send-email-jfreiman@redhat.com> Cc: dev@dpdk.org To: yuanhan.liu@linux.intel.com Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id B818F37B0 for ; Fri, 5 May 2017 15:57:26 +0200 (CEST) In-Reply-To: <1493992642-52756-1-git-send-email-jfreiman@redhat.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" From: Yuanhan Liu Just set the features on, no actual work has been done. Just make sure the virtio PMD could have this feature been enabled, for testing only. Signed-off-by: Yuanhan Liu --- lib/librte_vhost/vhost.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index ddd8a9c..208b2eb 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -138,6 +138,9 @@ struct vhost_virtqueue { #ifndef VIRTIO_F_VERSION_1 #define VIRTIO_F_VERSION_1 32 #endif +#ifndef VIRTIO_F_VERSION_1_1 + #define VIRTIO_F_VERSION_1_1 34 +#endif #define VHOST_USER_F_PROTOCOL_FEATURES 30 @@ -148,6 +151,7 @@ struct vhost_virtqueue { (1ULL << VIRTIO_NET_F_GUEST_ANNOUNCE) | \ (1ULL << VIRTIO_NET_F_MQ) | \ (1ULL << VIRTIO_F_VERSION_1) | \ + (1ULL << VIRTIO_F_VERSION_1_1) | \ (1ULL << VHOST_F_LOG_ALL) | \ (1ULL << VHOST_USER_F_PROTOCOL_FEATURES) | \ (1ULL << VIRTIO_NET_F_HOST_TSO4) | \ -- 1.8.3.1