From patchwork Fri Jun 8 03:22:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiwei Bie X-Patchwork-Id: 40802 X-Patchwork-Delegate: maxime.coquelin@redhat.com Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5F7491B1E6; Fri, 8 Jun 2018 05:22:20 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id A706E1AFFD for ; Fri, 8 Jun 2018 05:22:16 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Jun 2018 20:22:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,489,1520924400"; d="scan'208";a="46168864" Received: from debian.sh.intel.com ([10.67.104.203]) by fmsmga008.fm.intel.com with ESMTP; 07 Jun 2018 20:22:14 -0700 From: Tiwei Bie To: maxime.coquelin@redhat.com, dev@dpdk.org Cc: xiao.w.wang@intel.com Date: Fri, 8 Jun 2018 11:22:24 +0800 Message-Id: <20180608032224.22049-3-tiwei.bie@intel.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180608032224.22049-1-tiwei.bie@intel.com> References: <20180608032224.22049-1-tiwei.bie@intel.com> Subject: [dpdk-dev] [PATCH v3 2/2] net/ifcvf: enable the host notifier 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The necessary vDPA ops have already been implemented in ifcvf driver. So just need to announce the necessary protocol features to enable the host notifier support. Signed-off-by: Tiwei Bie Acked-by: Xiao Wang --- drivers/net/ifc/ifcvf_vdpa.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ifc/ifcvf_vdpa.c b/drivers/net/ifc/ifcvf_vdpa.c index c6627c23a..b8e22daf3 100644 --- a/drivers/net/ifc/ifcvf_vdpa.c +++ b/drivers/net/ifc/ifcvf_vdpa.c @@ -646,6 +646,9 @@ ifcvf_get_vdpa_features(int did, uint64_t *features) #define VDPA_SUPPORTED_PROTOCOL_FEATURES \ (1ULL << VHOST_USER_PROTOCOL_F_REPLY_ACK | \ + 1ULL << VHOST_USER_PROTOCOL_F_SLAVE_REQ | \ + 1ULL << VHOST_USER_PROTOCOL_F_SLAVE_SEND_FD | \ + 1ULL << VHOST_USER_PROTOCOL_F_HOST_NOTIFIER | \ 1ULL << VHOST_USER_PROTOCOL_F_LOG_SHMFD) static int ifcvf_get_protocol_features(int did __rte_unused, uint64_t *features)