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 D8A6242C6E; Fri, 9 Jun 2023 15:55:37 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E8A8B42FB0; Fri, 9 Jun 2023 15:55:13 +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 D45AD42F82 for ; Fri, 9 Jun 2023 15:55:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1686318911; 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=IHoGVAQ0Hj76WdzqwdMZvv44ZGu5PXPBJ/X94Ekl4+E=; b=OAEd8s6hMY2GMpEydCAyTLSF+UtFVl3y3/g+LMfVND/oWsrDsJ1OQkX7cTZz+rEpb32o7V yPEA+IINBmoi1Rn/Kuws2JxG6EV7+fZK44ZBl/35dloy3995AvE8DntmkxkKmI/39We4On MpBQWa36kbCfpdHWNF/y/JAZsS924t0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-606-zm8b9r3_PVSo6fHB45axxg-1; Fri, 09 Jun 2023 09:55:08 -0400 X-MC-Unique: zm8b9r3_PVSo6fHB45axxg-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 95CFD811E86; Fri, 9 Jun 2023 13:55:07 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.25]) by smtp.corp.redhat.com (Postfix) with ESMTP id 19564140E956; Fri, 9 Jun 2023 13:55:05 +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 Cc: Maxime Coquelin Subject: [PATCH 5/6] crypto/ipsec_mb: remove security lib presence checks Date: Fri, 9 Jun 2023 15:54:49 +0200 Message-Id: <20230609135450.476983-6-maxime.coquelin@redhat.com> In-Reply-To: <20230609135450.476983-1-maxime.coquelin@redhat.com> References: <20230609135450.476983-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true 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 8a7c74f621..fee02306c1 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" @@ -960,7 +958,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 */ @@ -1008,6 +1005,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_ */ -- 2.40.1