From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 035B8A0A0C; Wed, 28 Jul 2021 18:18:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6D96541109; Wed, 28 Jul 2021 18:18:46 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 128CF41103 for ; Wed, 28 Jul 2021 18:18:44 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10059"; a="192290670" X-IronPort-AV: E=Sophos;i="5.84,276,1620716400"; d="scan'208";a="192290670" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Jul 2021 09:18:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,276,1620716400"; d="scan'208";a="506588754" Received: from silpixa00400308.ir.intel.com ([10.237.214.190]) by FMSMGA003.fm.intel.com with ESMTP; 28 Jul 2021 09:18:38 -0700 From: Arek Kusztal To: dev@dpdk.org Cc: gakhil@marvell.com, fiona.trahe@intel.com, roy.fan.zhang@intel.com, Arek Kusztal Date: Wed, 28 Jul 2021 17:18:31 +0100 Message-Id: <20210728161831.6807-3-arkadiuszx.kusztal@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210728161831.6807-1-arkadiuszx.kusztal@intel.com> References: <20210728161831.6807-1-arkadiuszx.kusztal@intel.com> Subject: [dpdk-dev] [PATCH 2/2] crypto/qat: fix asymmetric crypto pmd create on gen3 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 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 disables asymmetric crypto pmd on gen3 devices. Fixes: 1f5e4053f9b4 ("common/qat: support GEN3 devices") Signed-off-by: Arek Kusztal --- drivers/crypto/qat/qat_asym_pmd.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/crypto/qat/qat_asym_pmd.c b/drivers/crypto/qat/qat_asym_pmd.c index d4680c3847..4891766471 100644 --- a/drivers/crypto/qat/qat_asym_pmd.c +++ b/drivers/crypto/qat/qat_asym_pmd.c @@ -255,6 +255,10 @@ qat_asym_dev_create(struct qat_pci_device *qat_pci_dev, QAT_LOG(ERR, "Asymmetric crypto PMD not supported on QAT 4xxx"); return -(EFAULT); } + if (qat_pci_dev->qat_dev_gen == QAT_GEN3) { + QAT_LOG(ERR, "Asymmetric crypto PMD not supported on QAT c4xxx"); + return -(EFAULT); + } snprintf(name, RTE_CRYPTODEV_NAME_MAX_LEN, "%s_%s", qat_pci_dev->name, "asym"); QAT_LOG(DEBUG, "Creating QAT ASYM device %s\n", name); -- 2.30.2