From patchwork Tue Jun 20 07:52:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 128828 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id DBE7E42D04; Tue, 20 Jun 2023 09:53:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5975F42D2C; Tue, 20 Jun 2023 09:53:14 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 7628D42D3C for ; Tue, 20 Jun 2023 09:53:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687247592; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=N5rOi7Q3HudaP0BcIiFioyBXaBSGu7PxnsyP/oDqsPE=; b=RPjKzCzOJrCHYzJzTODhzqy7AjHi1iycbU80oNWLOa5ls1qMRnqbfr0VtaxmtPHGZyWloY 4i207iSWrZKeEPzPva1zeU3uFlmaKhZR7AF78eRHH/NBkWTkoxgeaElDfErAV8peWEPbsx oZ6RbcVoKOsPNEVVvzdxvgv9V+q7lC8= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-356-fhdW2rtrMWCU-MJ9qzqMxQ-1; Tue, 20 Jun 2023 03:53:06 -0400 X-MC-Unique: fhdW2rtrMWCU-MJ9qzqMxQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 578C73802AE7; Tue, 20 Jun 2023 07:53:06 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.22]) by smtp.corp.redhat.com (Postfix) with ESMTP id ACFE5200A398; Tue, 20 Jun 2023 07:53:04 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, kai.ji@intel.com, g.singh@nxp.com, hemant.agrawal@nxp.com, pablo.de.lara.guarch@intel.com, fanzhang.oss@gmail.com, roretzla@linux.microsoft.com Cc: Maxime Coquelin Subject: [PATCH v2 5/6] crypto/ipsec_mb: remove security lib presence checks Date: Tue, 20 Jun 2023 09:52:50 +0200 Message-ID: <20230620075251.103491-6-maxime.coquelin@redhat.com> In-Reply-To: <20230620075251.103491-1-maxime.coquelin@redhat.com> References: <20230620075251.103491-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 Since security library is a required dependency for building ipsec_mb crypto PMD, remove useless check before security lib headers inclusion. The patch also takes the opportunity to remove unused related defines. Signed-off-by: Maxime Coquelin --- drivers/crypto/ipsec_mb/ipsec_mb_private.h | 3 --- drivers/crypto/ipsec_mb/pmd_aesni_mb_priv.h | 4 ---- 2 files changed, 7 deletions(-) diff --git a/drivers/crypto/ipsec_mb/ipsec_mb_private.h b/drivers/crypto/ipsec_mb/ipsec_mb_private.h index ab27214f2c..52722f94a0 100644 --- a/drivers/crypto/ipsec_mb/ipsec_mb_private.h +++ b/drivers/crypto/ipsec_mb/ipsec_mb_private.h @@ -13,11 +13,8 @@ #include #include -#if defined(RTE_LIB_SECURITY) -#define IPSEC_MB_DOCSIS_SEC_ENABLED 1 #include #include -#endif /* Maximum length for digest */ #define DIGEST_LENGTH_MAX 64 diff --git a/drivers/crypto/ipsec_mb/pmd_aesni_mb_priv.h b/drivers/crypto/ipsec_mb/pmd_aesni_mb_priv.h index 9b7c9edb6d..4ffbe4b282 100644 --- a/drivers/crypto/ipsec_mb/pmd_aesni_mb_priv.h +++ b/drivers/crypto/ipsec_mb/pmd_aesni_mb_priv.h @@ -5,12 +5,10 @@ #ifndef _PMD_AESNI_MB_PRIV_H_ #define _PMD_AESNI_MB_PRIV_H_ -#if defined(RTE_LIB_SECURITY) #define AESNI_MB_DOCSIS_SEC_ENABLED 1 #include #include #include -#endif #include "ipsec_mb_private.h" @@ -950,7 +948,6 @@ typedef void (*hash_one_block_t)(const void *data, void *digest); typedef void (*aes_keyexp_t)(const void *key, void *enc_exp_keys, void *dec_exp_keys); -#ifdef AESNI_MB_DOCSIS_SEC_ENABLED static const struct rte_cryptodev_capabilities aesni_mb_pmd_security_crypto_cap[] = { { /* AES DOCSIS BPI */ @@ -998,6 +995,5 @@ static const struct rte_security_capability aesni_mb_pmd_security_cap[] = { .action = RTE_SECURITY_ACTION_TYPE_NONE } }; -#endif #endif /* _PMD_AESNI_MB_PRIV_H_ */