From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0081.outbound.protection.outlook.com [104.47.32.81]) by dpdk.org (Postfix) with ESMTP id 8CDCD5587 for ; Thu, 20 Apr 2017 07:44:48 +0200 (CEST) Received: from BN6PR03CA0027.namprd03.prod.outlook.com (10.175.124.13) by CY1PR0301MB1194.namprd03.prod.outlook.com (10.160.165.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Thu, 20 Apr 2017 05:44:46 +0000 Received: from BN1BFFO11FD002.protection.gbl (2a01:111:f400:7c10::1:111) by BN6PR03CA0027.outlook.office365.com (2603:10b6:404:10c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13 via Frontend Transport; Thu, 20 Apr 2017 05:44:45 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD002.mail.protection.outlook.com (10.58.144.65) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Thu, 20 Apr 2017 05:44:45 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v3K5iavY015982; Wed, 19 Apr 2017 22:44:42 -0700 From: To: CC: , , , Date: Thu, 20 Apr 2017 11:14:16 +0530 Message-ID: <1492667067-21968-3-git-send-email-akhil.goyal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1492667067-21968-1-git-send-email-akhil.goyal@nxp.com> References: <1492616268-6307-1-git-send-email-akhil.goyal@nxp.com> <1492667067-21968-1-git-send-email-akhil.goyal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131371406857982362; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39410400002)(39840400002)(39380400002)(39860400002)(39400400002)(39850400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(5660300001)(48376002)(106466001)(2950100002)(69596002)(6916009)(33646002)(50466002)(85426001)(189998001)(53936002)(77096006)(54906002)(8676002)(38730400002)(110136004)(81166006)(5890100001)(6666003)(4326008)(2351001)(8656002)(105606002)(47776003)(86152003)(50986999)(104016004)(76176999)(575784001)(36756003)(356003)(8936002)(305945005)(2906002)(5003940100001)(86362001)(2876002)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB1194; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD002; 1:x5Oi0gZbpdHdOOXkiOlRWoOSdLwNSC0fWRA3YcByaU+OFvJO2zjQvey3GzxWBxeheE6lmXjJAKOsaGj9cst5K4Qs7mhVG3e5YqpWMXreD9fDBhNeczCPVGUXqWqrnJG5J7OIqt6eE2vh+xERIhLXcWX7J1tSLZ45Zxz0O+LsC4fzRd3WvIxBHx4jGg2/cdYme1VzT/FSy+9Gr+StTscsqOF/RzRZek9Dn6aovd9jrApfJJ2ngznddBSLD0qP+4QS90P8B5BplZKeVGlHLC7viD0GuvUiGbPEidZjn7rXReuKQOnRHYGfKnzHurWjmOjYnvEZu0D+IuVOpL5AEv4Bjs2QtI5BWcjblkPaHLuz1sRosksJ0FT++ld1T7NQ+4Jsh+mFykcoyUEE4h0xwEnp4/eghCHiQ9WC4ywZCHTDkpkVp73NPcppMRCiA7BbIoiFJYAewfMwgZ3bjelkqcy2ap0+EJ9kiquNzM+CNmO+HUeFbW3Onx1Uyfwh6bbm+8VJEnkuhxp02keOb3OfQ9GD/CIvgxhnS0x7vCHCbzToDQA25j9HktGNtxG3UP7sTfcKwiSRGM1+XRQSdmMb6Q7oW6dH8P1VErebsPuk0PnuPObMRzsPkmXHGBtZphvh4RwMM7QUQHhlmtKqVDUkTjn7MrWimu1eNmJliSSoXA+vSKLz0cDLIKEPQb8Ie9JlujqPZyoauMpJMJfil77ubPtlL1ZqnNDqCf3WstKDY9VHJYY3a+KFCHrbkXwOlnAF7LTLcOZcIvNtsKPLSGGEH4vhXw== MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2d4c6894-f37c-4f1a-7039-08d487b059de X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:CY1PR0301MB1194; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1194; 3:dcP9FLdgOOFRtjFK0w4bPZ+1wm7RpZyf8kIgbDsIHLlycHrpmwTrEN+PVRmOOx2lDpDaV4FxM3gHqKq0ettJR3t1ZlGWWszQAePjmLtsQq+178SNYA6BPc228uFcwwXq5JN+V++iWwjx6hBp4wZOLFKcfM254uJGcu5uL9He2IieSx7PdefcXzhChyZq2+yv5up9SM1l06sKnUCz0+Iyk/CpLnfzmFU4RipDT1avmLwqtf5TvkVS0B9SUHLdfqBirLX3rLMcYs1K7G5vUNbWM+3uNYETuK73G04tYVOwvLV6lFi/jt1KXuYauhCWsgG2rOVzi6TEfxEzGvIHEytLiKLgGbUEb0MQ6DOa9LfwzxAfBuBoJ1ijTGdq1+3cw2FxX7eCxJksUVQC46IyCoCHdZGsf3cJe8SPq7MecorOl62pBwCk7Afgky2aJXALT42V; 25:avVyLmTrXa+y1zDuD2iz/Hg8mzeiahR0OG6KDZvsCRhEkFQmtfJsyOKvGOqqSGc4z9KASZuAzrlBzsKaiMQ7UghjVhhRdHxxom1OOD32M4s5rM/vaPlOMMoLoU161C9UuRTS13+y//0oSTaDqOGnNrxhZjzMU7a29atlbSAJjYW8H6pEHl9Mm7uQYGcq53zvqcxcmPH8UN4ZHBiIuAefUwiE6PPIiJP2VXAuAVfS9FF5GLkD06efIUbkEbKOVESlIZiGn4FRm6HpvDcOCVlRtalRv4rjzgl0Kxrq0Z2R7KtMvaFKI+YsY5P8JHHnq6dpQIr7NnQHZ9xFTIq7U9m/EFuEnUVwOX2zoxeMyld90PzXdkZPJKiyS4+X/0ob5vARX9wREYtlp5doOaRt7FEzANRpI88RdhZFK5r9bVmt2YWQsRWoAjQniyyHQfhEBxJypzNNfS4bbK4s5Vx35yFOQg== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1194; 31:mBDAt5yDXZqW7fHLGpDqSFBdQFOsx2p30yxMohj6+8ia4wtn7gChxoXqvM8JB2FRW2nuYPhPOAsJU4Cdu/br49BAicaudSX9uRQItDfLL3RHWORT8xExxHAHrgHqPjYivmDSlKjq44HUkemGi9xnn8NxGIwG6FP2SmaWlBfiAS3pn4vA6EglQvC4ZxgEZU1H7GngxDTMztmZOtti0DGiwsXrv4ObiYdkWgB6/2fDCZukzW2zIOkOAhddrm19RgfRv/N3U+8cmwXWiEyIxdDjHddujrkbWyohH6JSglY5Kgg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13017025)(13018025)(13024025)(13023025)(13015025)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(6055026)(6096035)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(20161123556025)(20161123565025)(20161123561025); SRVR:CY1PR0301MB1194; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB1194; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1194; 4:oN6wVAYSOviN6JAFA4qbTo3dvWubRQPd7zcyx5r4ADyEVKICZuGT/OiS+9k/QeR56wbim8TeKFfTHnwL2rxIgtQ6tku14o7o8guM2k2McAyuT5LTr5fVFhxIYjLfcwbO0iQyntihuTpVwREcVnTUsY6W7vPgMk4Tzd4q9rtW2+2QVy9EZ/LS1kwQiWo3LHb8TC8coK4g8XRCQa9jpW1I97d/+i1byrKkGYkxZjN+yqq4xc9zhyDY6nV/QNevI2tXYe28R13g/tHprXZq+IFfl1InKQZWOOjRbHDi5ymRHmpXP2/jJPCMIfwZMo9A0mQD9eXqPEJIKgQV+IG5UIY0TzjXIJfZAk9RZmDzopkA+lOZu3/knr0t96K+7kRGpjWNprY2GY86e3+0NCt26MmPlqoun9+j/kHpkN6QiAHm7ZFKJo4RtV3YBoEQT6Wd0el4ArhLByAG3/+yhgCOmWEFWy7QGAPD/cP9N3lQO+FNMhZEX0A627+pu2A8dr1PCIHE47mlIXUzCOsx1icEuiSmCnzn3hBwXWtBvngQwrESBGj/AKmjl7zW+mK7KmiH1jImX/OzHwwBbUSmv+jUJqcINh0WPy3hvViuZ/bZI0EvsSboeE+lbuZK7zk74memcWmbrOdlc412SAH0XUzuE9G4UcPeLRfmnc90Tr87Y2roEu7edGZ2UqRZASeiYq/CglL9mjgQbBZWBBCmMCjffuV0HQz6S7UUpCcLKFZ3yVGU8ewn9FbzjO97J94XEJiPSxEGGzbKsc7lwc2Lu9UtnaQqcn7y9iFdWmqvNvtha0lAeqT9WheeTyw9rEMdGFHjkyKHN+cXA7Q351P6YEQ4RDA4h4GwbM0XxRcf77swhouY/9fOGs9dlGa5qLa2gq6X0g27y6xorFqOp+fud0RAr7L4lZ0dKPS4B93ygXVFo2Gxw/M= X-Forefront-PRVS: 02830F0362 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB1194; 23:UbuNvFPpxDE8P9nkzIldcIYTx+qL7erRjv/+QO0?= =?us-ascii?Q?mJv3wI8ePJX/GbRBRpWSlm7RUnEg3cdbOSImS367F0i3sfKMVsIsOCHwvFEt?= =?us-ascii?Q?6bzw7pP5O3DrKtDys4G0omPuexKmHkIKlhrWuyCT4o9FmwXlmruMjeVX+/W7?= =?us-ascii?Q?1292lK037gM6NbbV64VvjPbturnS/gAUOee/oiWxScvUVSMMTefwROcMUxVN?= =?us-ascii?Q?ssiM0cklIIrsWugqYDZ8sAe/xBHWqao1DZg/JQsZlDu0XR9ZDUKikHbErW1r?= =?us-ascii?Q?qXp3gy2o+xOL9fohnTdjj2hpPqqcQH4b/TT4G5q3xwqhYZqwBksIkktF/T1O?= =?us-ascii?Q?ZwuTdkNmup4Ckph5jpKdYKWgFsV/TUG+UCQCdIQh+klItvLLO3DbJuuPkCwZ?= =?us-ascii?Q?GixiA9aWIQWk5oUqTaVji5qkCctOUPCrGBWf9fIe3ch47y+P6MfYUYr6JIvu?= =?us-ascii?Q?qtCHHxq6nvFSHJjlNFTmrlIaq98ouxBeYRI/mjLDI+MqJ0kovtMEoxHH7+Y1?= =?us-ascii?Q?TTjWcAdcbIVyKBiW9uFkH3nuFxxAKkLgB7hgTt/qI2Qub1dRBudfQ4k2WWyx?= =?us-ascii?Q?l/RiyeiQ+ZJF8g1sGIDk1pTPse0PBf+HYGgbkRkZVM1sv6NNPx3MxLyxvE5H?= =?us-ascii?Q?2MxqvoXlwH8dTDXLQsluOp+LVVopZgUMTB5gXI9TmqTpw1EFQj+4EoiuvDv1?= =?us-ascii?Q?NBjVAvrf6nou4LyVCL7e5uq3Fw53cYvv3D1Z8HcfdtbD+jXOMNhU872JngQM?= =?us-ascii?Q?4xOdJnBFD2Y3HHZ+3S8YJ2OUUGfqXFiotbiUa2OklbRu6Y2z/+iQVdhC8L+H?= =?us-ascii?Q?rMsMdgJAO3DB4Av1mOEqlNL4e6wlS99Pw+vMNcbHfGOFfxUjeu+z+TDMDqk1?= =?us-ascii?Q?SHAnCgizEsL8Kqe7eme8X7VQvokA40MrsNt41AJsQFGr4JM+hRDzI47WwABC?= =?us-ascii?Q?6C+PrkOtF0aURL+5I2C0r1sMmITQUW3SGOHWGc92xCsOgXNRkZ9l+2f1OImn?= =?us-ascii?Q?Sv2J5l4CGlWr4irc7nhwUmS0Xh1F9iyEZceX4qYYtBFDYqFo2ZbPFo2n6TrD?= =?us-ascii?Q?iPPz10uMKcwRi8T5n41z7Os4SZsNFNy4ZwZAdypMFYyqjgmU7EEK/68+jWl6?= =?us-ascii?Q?Gr3hGZACbN7oVytk/g7/dub0CXf/gPdvEJ6pjpc+Qx0v4Km4PCBxQEcEgbAz?= =?us-ascii?Q?LYPEf+7QVJ2TsnlVLSwyAYtKd6Dt3f47KN30G8H2KBpPRdTu7WQb0vuMWLXU?= =?us-ascii?Q?tG6Qn+Rq8vWeZ8BXdUvbOOdPFAAGR8whOgoH7d9alBL1yovQ4S8QhzpNjLMx?= =?us-ascii?Q?3G3zr//yCDaSlXplUGKQcEbseMRsmdwCNAIsOGyysvflj?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1194; 6:ZF5/Ga26T35wl2YHoDYlFJLDjIH/DFGPk25UpIiNgPpCoA5vjDTZNMsZZXgwJVOCMCmxrvyceMDCt4+5Lz8bOhxHLS8O1QOkN+TvrqvHBYCOqmi6xGT6YGK+5TAWSIIhPZwu+apTb8RbyaqYmsD7JRk4CphaWb777AmgptRRoNk2syoZbIuirSQDvlAwDh47ZB7/8KAQxoemTfcZyRrYKHAYGiM1vLrah5ZOTO+M/wVcy9Ue0XObdviHwx8Ryrfr3YPHd5PVV3vcCNA1wa3FiTF2jFzaxRgykoSDc87+yc7Fp06CL4RM31gEIOxmP3louHDy/xRh1xyKTv1dbTvbmRWlZXv9hax/ItKWblce9n35LAJY2YOGx52JhoeF8ph6stqwhfWZGzzDev8XC42ZXRLx93MDUp5uObSkxJvh0lUQAMETMCA0YOX+ENBz36hS8HqJfaNalkzBsg2B9z9RbJxoPH6Jp/rxcRmEOAky9XfdPsmEHR3+Gi1eFrYR3UeJ; 5:sK1peJTFMoi1WM/MYw0g4moCCoUiuo2C/FasrAYkwSNPiWzE2YIr07WFxCgRj373HKvraMbrEbNxrzWuSKNgtOClu3DkgUqYzhArelSW6kgITpqTdOgx85w+pQTn2lLDCSYldBIgwBfHU1E3JWg493cUPWuvSHpvzN0xhqO9vRaPrdOZAvbUo6imLtFiwI0l; 24:/4MXUPeOoI/e3SUb2DDycFpDR9Jzbc/LzXC1HAccLls8Zdb7Iz9xTaxEvXZTxBzq635u5WuMk+XtBROqLKquKWpQhVpYrG8U15AUCZJVtyE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1194; 7:jKtSiYlzaiQ71Ef4VcNiLlmKmPYoP5MI9zkaw7NDShLJlPV33YT6ZwDXwmuNyOmznWo+9iL6gqdyPwKLe5N3vfgo8PamaeUsnqmusWpMl3NQWkMWevIxw+mS2u/TwlaaJu7z2feqBw7av5tt4GgRLEBIctUlwaUtpOjqKQjncK1/7UPwr/PhqrSKhkNVAQJEcRaJFUzjSgAxyuH0+w6eEUWwus4WJ/U7EGFuGfInGg3422hQWJ/DvVnWvA9EfEP93LjfoxA8NOJLpYvbgrs+N3pwhOY52LloqB3hP7Kqjn3HoFHx2oQrTQ1VdCtQBePDCIbyq31WVqQnCfj7cI4UZg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2017 05:44:45.5642 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1194 Subject: [dpdk-dev] [PATCH v9 02/13] crypto/dpaa2_sec: add dpaa2 sec poll mode driver 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: , X-List-Received-Date: Thu, 20 Apr 2017 05:44:49 -0000 From: Akhil Goyal Signed-off-by: Hemant Agrawal Signed-off-by: Akhil Goyal --- config/common_base | 8 + config/defconfig_arm64-dpaa2-linuxapp-gcc | 12 ++ drivers/Makefile | 1 + drivers/crypto/Makefile | 2 + drivers/crypto/dpaa2_sec/Makefile | 76 +++++++ drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 190 +++++++++++++++++ drivers/crypto/dpaa2_sec/dpaa2_sec_logs.h | 70 +++++++ drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 225 +++++++++++++++++++++ .../crypto/dpaa2_sec/rte_pmd_dpaa2_sec_version.map | 4 + mk/rte.app.mk | 5 + 10 files changed, 593 insertions(+) create mode 100644 drivers/crypto/dpaa2_sec/Makefile create mode 100644 drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c create mode 100644 drivers/crypto/dpaa2_sec/dpaa2_sec_logs.h create mode 100644 drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h create mode 100644 drivers/crypto/dpaa2_sec/rte_pmd_dpaa2_sec_version.map diff --git a/config/common_base b/config/common_base index 412ec3f..07b6f98 100644 --- a/config/common_base +++ b/config/common_base @@ -522,6 +522,14 @@ CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF=y CONFIG_RTE_LIBRTE_PMD_OCTEONTX_SSOVF_DEBUG=n # +#Compile NXP DPAA2 crypto sec driver for CAAM HW +# +CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC=n +CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_INIT=n +CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_DRIVER=n +CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_RX=n + +# # Compile librte_ring # CONFIG_RTE_LIBRTE_RING=y diff --git a/config/defconfig_arm64-dpaa2-linuxapp-gcc b/config/defconfig_arm64-dpaa2-linuxapp-gcc index 174c0ed..afe777e 100644 --- a/config/defconfig_arm64-dpaa2-linuxapp-gcc +++ b/config/defconfig_arm64-dpaa2-linuxapp-gcc @@ -65,3 +65,15 @@ CONFIG_RTE_LIBRTE_DPAA2_DEBUG_DRIVER=n CONFIG_RTE_LIBRTE_DPAA2_DEBUG_RX=n CONFIG_RTE_LIBRTE_DPAA2_DEBUG_TX=n CONFIG_RTE_LIBRTE_DPAA2_DEBUG_TX_FREE=n + +#Compile NXP DPAA2 crypto sec driver for CAAM HW +CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC=y +CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_INIT=n +CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_DRIVER=n +CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_RX=n + +# +# Number of sessions to create in the session memory pool +# on a single DPAA2 SEC device. +# +CONFIG_RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS=2048 diff --git a/drivers/Makefile b/drivers/Makefile index a7d0fc5..a04a01f 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -37,6 +37,7 @@ DEPDIRS-mempool := bus DIRS-y += net DEPDIRS-net := bus mempool DIRS-$(CONFIG_RTE_LIBRTE_CRYPTODEV) += crypto +DEPDIRS-crypto := mempool DIRS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += event include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile index 652c554..7a719b9 100644 --- a/drivers/crypto/Makefile +++ b/drivers/crypto/Makefile @@ -53,5 +53,7 @@ DIRS-$(CONFIG_RTE_LIBRTE_PMD_ZUC) += zuc DEPDIRS-zuc = $(core-libs) DIRS-$(CONFIG_RTE_LIBRTE_PMD_NULL_CRYPTO) += null DEPDIRS-null = $(core-libs) +DIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += dpaa2_sec +DEPDIRS-dpaa2_sec = $(core-libs) include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/drivers/crypto/dpaa2_sec/Makefile b/drivers/crypto/dpaa2_sec/Makefile new file mode 100644 index 0000000..b9c808e --- /dev/null +++ b/drivers/crypto/dpaa2_sec/Makefile @@ -0,0 +1,76 @@ +# BSD LICENSE +# +# Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved. +# Copyright (c) 2016 NXP. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# * Neither the name of Freescale Semiconductor, Inc nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +include $(RTE_SDK)/mk/rte.vars.mk + +# +# library name +# +LIB = librte_pmd_dpaa2_sec.a + +# build flags +ifeq ($(CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_INIT),y) +CFLAGS += -O0 -g +CFLAGS += "-Wno-error" +else +CFLAGS += -O3 +CFLAGS += $(WERROR_FLAGS) +endif +CFLAGS += -D _GNU_SOURCE + +CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec/ +CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/ +CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/qbman/include +CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/mc +CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/portal +CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa2/ +CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal + +# versioning export map +EXPORT_MAP := rte_pmd_dpaa2_sec_version.map + +# library version +LIBABIVER := 1 + +# library source files +SRCS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += dpaa2_sec_dpseci.c + +# library dependencies +DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += lib/librte_eal +DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += lib/librte_mempool lib/librte_mbuf +DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += lib/librte_cryptodev +DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += drivers/bus/fslmc +DEPDIRS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += drivers/mempool/dpaa2 + +LDLIBS += -lrte_bus_fslmc +LDLIBS += -lrte_mempool_dpaa2 + +include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c new file mode 100644 index 0000000..2e3785c --- /dev/null +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -0,0 +1,190 @@ +/*- + * BSD LICENSE + * + * Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved. + * Copyright (c) 2016 NXP. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Freescale Semiconductor, Inc nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "dpaa2_sec_priv.h" +#include "dpaa2_sec_logs.h" + +#define FSL_VENDOR_ID 0x1957 +#define FSL_DEVICE_ID 0x410 +#define FSL_SUBSYSTEM_SEC 1 +#define FSL_MC_DPSECI_DEVID 3 + +static int +dpaa2_sec_uninit(const struct rte_cryptodev_driver *crypto_drv __rte_unused, + struct rte_cryptodev *dev) +{ + PMD_INIT_LOG(INFO, "Closing DPAA2_SEC device %s on numa socket %u\n", + dev->data->name, rte_socket_id()); + + return 0; +} + +static int +dpaa2_sec_dev_init(struct rte_cryptodev *cryptodev) +{ + struct dpaa2_sec_dev_private *internals; + struct rte_device *dev = cryptodev->device; + struct rte_dpaa2_device *dpaa2_dev; + + PMD_INIT_FUNC_TRACE(); + dpaa2_dev = container_of(dev, struct rte_dpaa2_device, device); + if (dpaa2_dev == NULL) { + PMD_INIT_LOG(ERR, "dpaa2_device not found\n"); + return -1; + } + + cryptodev->dev_type = RTE_CRYPTODEV_DPAA2_SEC_PMD; + + cryptodev->feature_flags = RTE_CRYPTODEV_FF_SYMMETRIC_CRYPTO | + RTE_CRYPTODEV_FF_HW_ACCELERATED | + RTE_CRYPTODEV_FF_SYM_OPERATION_CHAINING; + + internals = cryptodev->data->dev_private; + internals->max_nb_sessions = RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS; + + /* + * For secondary processes, we don't initialise any further as primary + * has already done this work. Only check we don't need a different + * RX function + */ + if (rte_eal_process_type() != RTE_PROC_PRIMARY) { + PMD_INIT_LOG(DEBUG, "Device already init by primary process"); + return 0; + } + + PMD_INIT_LOG(DEBUG, "driver %s: created\n", cryptodev->data->name); + return 0; +} + +static int +cryptodev_dpaa2_sec_probe(struct rte_dpaa2_driver *dpaa2_drv, + struct rte_dpaa2_device *dpaa2_dev) +{ + struct rte_cryptodev *cryptodev; + char cryptodev_name[RTE_CRYPTODEV_NAME_MAX_LEN]; + + int retval; + + sprintf(cryptodev_name, "dpsec-%d", dpaa2_dev->object_id); + + cryptodev = rte_cryptodev_pmd_allocate(cryptodev_name, rte_socket_id()); + if (cryptodev == NULL) + return -ENOMEM; + + if (rte_eal_process_type() == RTE_PROC_PRIMARY) { + cryptodev->data->dev_private = rte_zmalloc_socket( + "cryptodev private structure", + sizeof(struct dpaa2_sec_dev_private), + RTE_CACHE_LINE_SIZE, + rte_socket_id()); + + if (cryptodev->data->dev_private == NULL) + rte_panic("Cannot allocate memzone for private " + "device data"); + } + + dpaa2_dev->cryptodev = cryptodev; + cryptodev->device = &dpaa2_dev->device; + cryptodev->driver = (struct rte_cryptodev_driver *)dpaa2_drv; + + /* init user callbacks */ + TAILQ_INIT(&(cryptodev->link_intr_cbs)); + + /* Invoke PMD device initialization function */ + retval = dpaa2_sec_dev_init(cryptodev); + if (retval == 0) + return 0; + + if (rte_eal_process_type() == RTE_PROC_PRIMARY) + rte_free(cryptodev->data->dev_private); + + cryptodev->attached = RTE_CRYPTODEV_DETACHED; + + return -ENXIO; +} + +static int +cryptodev_dpaa2_sec_remove(struct rte_dpaa2_device *dpaa2_dev) +{ + struct rte_cryptodev *cryptodev; + int ret; + + cryptodev = dpaa2_dev->cryptodev; + if (cryptodev == NULL) + return -ENODEV; + + ret = dpaa2_sec_uninit(NULL, cryptodev); + if (ret) + return ret; + + /* free crypto device */ + rte_cryptodev_pmd_release_device(cryptodev); + + if (rte_eal_process_type() == RTE_PROC_PRIMARY) + rte_free(cryptodev->data->dev_private); + + cryptodev->device = NULL; + cryptodev->driver = NULL; + cryptodev->data = NULL; + + return 0; +} + +static struct rte_dpaa2_driver rte_dpaa2_sec_driver = { + .drv_type = DPAA2_MC_DPSECI_DEVID, + .driver = { + .name = "DPAA2 SEC PMD" + }, + .probe = cryptodev_dpaa2_sec_probe, + .remove = cryptodev_dpaa2_sec_remove, +}; + +RTE_PMD_REGISTER_DPAA2(dpaa2_sec_pmd, rte_dpaa2_sec_driver); diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_logs.h b/drivers/crypto/dpaa2_sec/dpaa2_sec_logs.h new file mode 100644 index 0000000..03d4c70 --- /dev/null +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_logs.h @@ -0,0 +1,70 @@ +/*- + * BSD LICENSE + * + * Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved. + * Copyright (c) 2016 NXP. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Freescale Semiconductor, Inc nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _DPAA2_SEC_LOGS_H_ +#define _DPAA2_SEC_LOGS_H_ + +#define PMD_INIT_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args) + +#ifdef RTE_LIBRTE_DPAA2_SEC_DEBUG_INIT +#define PMD_INIT_FUNC_TRACE() PMD_INIT_LOG(DEBUG, " >>") +#else +#define PMD_INIT_FUNC_TRACE() do { } while (0) +#endif + +#ifdef RTE_LIBRTE_DPAA2_SEC_DEBUG_RX +#define PMD_RX_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#else +#define PMD_RX_LOG(level, fmt, args...) do { } while (0) +#endif + +#ifdef RTE_LIBRTE_DPAA2_SEC_DEBUG_TX +#define PMD_TX_LOG(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ## args) +#else +#define PMD_TX_LOG(level, fmt, args...) do { } while (0) +#endif + +#ifdef RTE_LIBRTE_DPAA2_SEC_DEBUG_DRIVER +#define PMD_DRV_LOG_RAW(level, fmt, args...) \ + RTE_LOG(level, PMD, "%s(): " fmt, __func__, ## args) +#else +#define PMD_DRV_LOG_RAW(level, fmt, args...) do { } while (0) +#endif + +#define PMD_DRV_LOG(level, fmt, args...) \ + PMD_DRV_LOG_RAW(level, fmt "\n", ## args) + +#endif /* _DPAA2_SEC_LOGS_H_ */ diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h new file mode 100644 index 0000000..6ecfb01 --- /dev/null +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h @@ -0,0 +1,225 @@ +/*- + * BSD LICENSE + * + * Copyright (c) 2016 Freescale Semiconductor, Inc. All rights reserved. + * Copyright (c) 2016 NXP. All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of Freescale Semiconductor, Inc nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _RTE_DPAA2_SEC_PMD_PRIVATE_H_ +#define _RTE_DPAA2_SEC_PMD_PRIVATE_H_ + +/** private data structure for each DPAA2_SEC device */ +struct dpaa2_sec_dev_private { + void *mc_portal; /**< MC Portal for configuring this device */ + void *hw; /**< Hardware handle for this device.Used by NADK framework */ + int32_t hw_id; /**< An unique ID of this device instance */ + int32_t vfio_fd; /**< File descriptor received via VFIO */ + uint16_t token; /**< Token required by DPxxx objects */ + unsigned int max_nb_queue_pairs; + /**< Max number of queue pairs supported by device */ + unsigned int max_nb_sessions; + /**< Max number of sessions supported by device */ +}; + +struct dpaa2_sec_qp { + struct dpaa2_queue rx_vq; + struct dpaa2_queue tx_vq; +}; + +static const struct rte_cryptodev_capabilities dpaa2_sec_capabilities[] = { + { /* MD5 HMAC */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, + {.auth = { + .algo = RTE_CRYPTO_AUTH_MD5_HMAC, + .block_size = 64, + .key_size = { + .min = 64, + .max = 64, + .increment = 0 + }, + .digest_size = { + .min = 16, + .max = 16, + .increment = 0 + }, + .aad_size = { 0 } + }, } + }, } + }, + { /* SHA1 HMAC */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, + {.auth = { + .algo = RTE_CRYPTO_AUTH_SHA1_HMAC, + .block_size = 64, + .key_size = { + .min = 64, + .max = 64, + .increment = 0 + }, + .digest_size = { + .min = 20, + .max = 20, + .increment = 0 + }, + .aad_size = { 0 } + }, } + }, } + }, + { /* SHA224 HMAC */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, + {.auth = { + .algo = RTE_CRYPTO_AUTH_SHA224_HMAC, + .block_size = 64, + .key_size = { + .min = 64, + .max = 64, + .increment = 0 + }, + .digest_size = { + .min = 28, + .max = 28, + .increment = 0 + }, + .aad_size = { 0 } + }, } + }, } + }, + { /* SHA256 HMAC */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, + {.auth = { + .algo = RTE_CRYPTO_AUTH_SHA256_HMAC, + .block_size = 64, + .key_size = { + .min = 64, + .max = 64, + .increment = 0 + }, + .digest_size = { + .min = 32, + .max = 32, + .increment = 0 + }, + .aad_size = { 0 } + }, } + }, } + }, + { /* SHA384 HMAC */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, + {.auth = { + .algo = RTE_CRYPTO_AUTH_SHA384_HMAC, + .block_size = 128, + .key_size = { + .min = 128, + .max = 128, + .increment = 0 + }, + .digest_size = { + .min = 48, + .max = 48, + .increment = 0 + }, + .aad_size = { 0 } + }, } + }, } + }, + { /* SHA512 HMAC */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_AUTH, + {.auth = { + .algo = RTE_CRYPTO_AUTH_SHA512_HMAC, + .block_size = 128, + .key_size = { + .min = 128, + .max = 128, + .increment = 0 + }, + .digest_size = { + .min = 64, + .max = 64, + .increment = 0 + }, + .aad_size = { 0 } + }, } + }, } + }, + { /* AES CBC */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, + {.cipher = { + .algo = RTE_CRYPTO_CIPHER_AES_CBC, + .block_size = 16, + .key_size = { + .min = 16, + .max = 32, + .increment = 8 + }, + .iv_size = { + .min = 16, + .max = 16, + .increment = 0 + } + }, } + }, } + }, + { /* 3DES CBC */ + .op = RTE_CRYPTO_OP_TYPE_SYMMETRIC, + {.sym = { + .xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER, + {.cipher = { + .algo = RTE_CRYPTO_CIPHER_3DES_CBC, + .block_size = 8, + .key_size = { + .min = 16, + .max = 24, + .increment = 8 + }, + .iv_size = { + .min = 8, + .max = 8, + .increment = 0 + } + }, } + }, } + }, + + RTE_CRYPTODEV_END_OF_CAPABILITIES_LIST() +}; +#endif /* _RTE_DPAA2_SEC_PMD_PRIVATE_H_ */ diff --git a/drivers/crypto/dpaa2_sec/rte_pmd_dpaa2_sec_version.map b/drivers/crypto/dpaa2_sec/rte_pmd_dpaa2_sec_version.map new file mode 100644 index 0000000..8591cc0 --- /dev/null +++ b/drivers/crypto/dpaa2_sec/rte_pmd_dpaa2_sec_version.map @@ -0,0 +1,4 @@ +DPDK_17.05 { + + local: *; +}; diff --git a/mk/rte.app.mk b/mk/rte.app.mk index a17d0cf..b5215c0 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -160,6 +160,11 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_ZUC) += -L$(LIBSSO_ZUC_PATH)/build -lsso _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO) += -lrte_pmd_armv8 _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_ARMV8_CRYPTO) += -L$(ARMV8_CRYPTO_LIB_PATH) -larmv8_crypto _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER) += -lrte_pmd_crypto_scheduler +ifeq ($(CONFIG_RTE_LIBRTE_FSLMC_BUS),y) +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += -lrte_pmd_dpaa2_sec +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += -lrte_mempool_dpaa2 +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC) += -lrte_bus_fslmc +endif # CONFIG_RTE_LIBRTE_FSLMC_BUS endif # CONFIG_RTE_LIBRTE_CRYPTODEV ifeq ($(CONFIG_RTE_LIBRTE_EVENTDEV),y) -- 1.9.1