From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id AEE4B8E1C for ; Fri, 18 May 2018 01:22:57 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 May 2018 16:22:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,412,1520924400"; d="scan'208";a="40250392" Received: from fedora.sh.intel.com ([10.67.114.176]) by fmsmga007.fm.intel.com with ESMTP; 17 May 2018 16:22:55 -0700 From: Changpeng Liu To: changpeng.liu@intel.com, dev@dpdk.org Date: Fri, 18 May 2018 07:32:11 +0800 Message-Id: <1526599932-13083-1-git-send-email-changpeng.liu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dpdk-dev] [PATCH 1/2] examples/vhost_scsi: add virtio-1.0 feature bit support X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2018 23:22:58 -0000 Signed-off-by: Changpeng Liu --- examples/vhost_scsi/vhost_scsi.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/vhost_scsi/vhost_scsi.c b/examples/vhost_scsi/vhost_scsi.c index 2908ff6..a1d542b 100644 --- a/examples/vhost_scsi/vhost_scsi.c +++ b/examples/vhost_scsi/vhost_scsi.c @@ -20,9 +20,10 @@ #include "vhost_scsi.h" #include "scsi_spec.h" -#define VIRTIO_SCSI_FEATURES ((1 << VIRTIO_F_NOTIFY_ON_EMPTY) |\ - (1 << VIRTIO_SCSI_F_INOUT) |\ - (1 << VIRTIO_SCSI_F_CHANGE)) +#define VIRTIO_SCSI_FEATURES ((1ULL << VIRTIO_F_NOTIFY_ON_EMPTY) |\ + (1ULL << VIRTIO_SCSI_F_INOUT) |\ + (1ULL << VIRTIO_SCSI_F_CHANGE) |\ + (1ULL << VIRTIO_F_VERSION_1)) /* Path to folder where character device will be created. Can be set by user. */ static char dev_pathname[PATH_MAX] = ""; -- 1.9.3