Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F0BEC4363C for ; Fri, 2 Oct 2020 15:36:36 +0000 (UTC) Received: from dpdk.org (dpdk.org [92.243.14.124]) by mail.kernel.org (Postfix) with ESMTP id 1657820719 for ; Fri, 2 Oct 2020 15:36:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1657820719 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 1E0471D97C; Fri, 2 Oct 2020 17:36:15 +0200 (CEST) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id E3D0D1D6F6; Fri, 2 Oct 2020 17:36:11 +0200 (CEST) IronPort-SDR: ZRIFmV68ncRjx9KzQr4bBH6Ym8Pz6voqp/wOQBg3eTP7uug+b3N4rbgKPK8ASVOLgACGYTGfIT AYlrFq/HwiiQ== X-IronPort-AV: E=McAfee;i="6000,8403,9762"; a="247754173" X-IronPort-AV: E=Sophos;i="5.77,328,1596524400"; d="scan'208";a="247754173" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Oct 2020 08:36:06 -0700 IronPort-SDR: BPUGJzPCA0NSy5xKfz0P/G8VeXaM0zpUS8EF37s65Esx8QDXEPSgOasIWNvGFw/jJhKnXJAsEM lCo+VHk5K3hg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,328,1596524400"; d="scan'208";a="515193792" Received: from silpixa00398673.ir.intel.com (HELO silpixa00398673.ger.corp.intel.com) ([10.237.223.136]) by fmsmga006.fm.intel.com with ESMTP; 02 Oct 2020 08:36:04 -0700 From: Fan Zhang To: dev@dpdk.org Cc: chenbo.xia@intel.com, maxime.coquelin@redhat.com, changpeng.liu@intel.com, ferruh.yigit@intel.com, stable@dpdk.org, Fan Zhang Date: Fri, 2 Oct 2020 16:35:59 +0100 Message-Id: <20201002153601.84097-1-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201002083615.45470-1-roy.fan.zhang@intel.com> References: <20201002083615.45470-1-roy.fan.zhang@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [dpdk-dev v2 0/2] vhost/crypto: fix initialization 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" This patch fixes the problem that vhost crypto cannot be initialized due to the different requirement between built-in virtio-net and virtio-crypto. The fix includes the following change: - Added new internal enum type virtio_backend_type to distinguish virtio-net, virtio-crypto, and external device types. - Added new API rte_vhost_crypto_driver_start to distinguish between virtio-net and virtio-crypto built-in drivers initialization. v2: - Removed socket.c setting vhost crypto features. - Fixed incorrect feature flag. - Rebased on top of latest master. Fan Zhang (2): vhost: add backend type in driver start vhost/crypto: fix feature negotiation examples/vhost_crypto/main.c | 3 +- lib/librte_vhost/rte_vhost_crypto.h | 12 ++++++++ lib/librte_vhost/rte_vhost_version.map | 1 + lib/librte_vhost/socket.c | 39 +++++++++++++++++++----- lib/librte_vhost/vhost_crypto.c | 41 +++++++++++++++++--------- lib/librte_vhost/vhost_user.h | 8 +++++ 6 files changed, 81 insertions(+), 23 deletions(-) -- 2.20.1