From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 070E8A0613 for ; Mon, 26 Aug 2019 14:49:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 757491C11B; Mon, 26 Aug 2019 14:49:31 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id A766E1BFB4 for ; Mon, 26 Aug 2019 14:49:27 +0200 (CEST) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x7QCjAn0005859; Mon, 26 Aug 2019 05:49:26 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=z0N2j8CoO+3oSFEOUtyCQqSUDBLmW0sdelxfjCSHRt4=; b=T3x6IQo5XPLhdn/eq0Pw3ecgE1119DcOi+NsZJLeBf0QYY8KHcAvtdz4JuN3mg12DpAb +RDh8iXrIrdWlHmzgtDxvLu3UBvdAqhjug+3CeYts0C1QB9DyYIbc5oa6vc2spxV2o5Q jjn+WvhJZOxhRzBwhlGg0YwAt4bG99LaM9X7BY0I5aqrBE3siIIdYN1zDzkHZPMkyvvU ZbBKJbnInt2IBTnz1C7YZm2Pbn2W5J79QBXXNMIby9I2omLoxiUUor+aDP8jiVXk6bAg UGtyOADm0RyoCOtwS8QLnskx6Wsfs/mgilHX6Qly9aw0cBo10Ww5uP2oPRV0kyqF9CYD 1Q== Received: from sc-exch03.marvell.com ([199.233.58.183]) by mx0a-0016f401.pphosted.com with ESMTP id 2uk2kpy1ey-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 26 Aug 2019 05:49:26 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 26 Aug 2019 05:49:25 -0700 Received: from NAM01-BN3-obe.outbound.protection.outlook.com (104.47.33.58) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 26 Aug 2019 05:49:25 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Gxvv89LgoUp7u5jgDQklnGiHJh30IaRb0FL5yis2I9hcILV37ZVogXH2cvXhtR1NieXlVgwrlQI/fA+riPVE9VejhdLp/g3LW6uqtZYijFUlP0ytlmq0X8qad7HLNn/jVyO0v2MFsbNWBx5zBk9tUJg/TAku6dimW5/Q10kA6x7urTqwqXi7QFDbm2kjjISt9Ybn5Mc3yeM1AMwvXOW0LxerGOROs2zrWgNXa7Rs0EFgsYFeB0TIITN8Pm9pjMcudBcFgEyH7XTBndu9DNdjSp1Bsh4j/tMe02tvn/aa/nQK+yq0wm9NOqfL8cjFHq0Iy2lwjNKHufvSokQc8w+77g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z0N2j8CoO+3oSFEOUtyCQqSUDBLmW0sdelxfjCSHRt4=; b=CL0hrY52TZ4YkHdBLpZELmx7iRlKvZOy3epYFBHqgO3i1xU2lgXF8TXPzECzrOdXG4GtGwRETFFGCwiVmOBwVuRhMwfBJ3qU9dka3+HGMPsyp2kBLeVe/N+Vb+RObtHPuJYCDsKaP5/M5VucrddM3L5E8jfTZ5cUJ6Dcoc4X8C7uJJ1JUz8yNQFnx65QYL3cB3RAdFZfxU7LVp1ShzHXJKZrRjvV3tmXgqA8HnZtgKG/3NAJq4qWZaJbyfKFkzfyrJgViOb/bvtn7cjn4sA4f/SBjJ1mzGzFhJ2uW+e9o9XfHJUJHBqdCkNwj2kpHWsGihY5H16F9iRMSvkc0aavOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=marvell.com; dmarc=pass action=none header.from=marvell.com; dkim=pass header.d=marvell.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector2-marvell-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=z0N2j8CoO+3oSFEOUtyCQqSUDBLmW0sdelxfjCSHRt4=; b=Dc5xOu8AvNFXMWBFD6rW/CyjjHHOAaZuq5bx+xFq1L3ds668yMA2SOfT/ico+Td67xxUPGuKw91nNxhpPQ+EAYaaJicJ4D1emIZ/4/5Xca31nsEHuWMZhJxJU12V/BwU66jDnEXUs3+p+aLZnfRIZd7coax2iPne4nsAnM1hgvw= Received: from MN2PR18MB2797.namprd18.prod.outlook.com (20.179.22.16) by MN2PR18MB3230.namprd18.prod.outlook.com (10.255.237.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.20; Mon, 26 Aug 2019 12:49:22 +0000 Received: from MN2PR18MB2797.namprd18.prod.outlook.com ([fe80::28ff:b1d2:ef69:5e84]) by MN2PR18MB2797.namprd18.prod.outlook.com ([fe80::28ff:b1d2:ef69:5e84%5]) with mapi id 15.20.2199.021; Mon, 26 Aug 2019 12:49:22 +0000 From: Nagadheeraj Rottela To: "akhil.goyal@nxp.com" , "pablo.de.lara.guarch@intel.com" , "mattias.ronnblom@ericsson.com" CC: "dev@dpdk.org" , Srikanth Jampala , Nagadheeraj Rottela Thread-Topic: [PATCH v4 01/11] crypto/nitrox: add Nitrox build and doc skeleton Thread-Index: AQHVXAyuzYdgy7ir0UanJ6g4KALPGw== Date: Mon, 26 Aug 2019 12:49:22 +0000 Message-ID: <20190826124836.21187-2-rnagadheeraj@marvell.com> References: <4b0fc70c-768a-a474-ace4-b69513412cae@ericsson.com> <20190826124836.21187-1-rnagadheeraj@marvell.com> In-Reply-To: <20190826124836.21187-1-rnagadheeraj@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: PN1PR01CA0088.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::28) To MN2PR18MB2797.namprd18.prod.outlook.com (2603:10b6:208:a0::16) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.13.6 x-originating-ip: [115.113.156.2] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8d2caf57-a9cb-4323-429d-08d72a23d138 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR18MB3230; x-ms-traffictypediagnostic: MN2PR18MB3230: x-ms-exchange-purlcount: 1 x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 01415BB535 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(39850400004)(346002)(396003)(136003)(376002)(199004)(189003)(54906003)(110136005)(76176011)(4326008)(52116002)(86362001)(14454004)(36756003)(486006)(6506007)(6436002)(71200400001)(55236004)(102836004)(25786009)(316002)(66446008)(6116002)(66946007)(64756008)(66556008)(66476007)(71190400001)(2201001)(3846002)(99286004)(478600001)(8676002)(305945005)(2906002)(107886003)(186003)(2616005)(386003)(26005)(966005)(476003)(81156014)(5660300002)(6486002)(11346002)(2501003)(256004)(7736002)(81166006)(14444005)(8936002)(53936002)(6306002)(446003)(1076003)(66066001)(6512007)(50226002); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB3230; H:MN2PR18MB2797.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: tMQH3UBF5944FejiWY33h5O3Qe7DEAI4GCSLFSIPRcGo/sml7fUV8wPNDKCKC09GGfCszih+XK44UE6fRo21dE1oAIEuSg2BxRVYXnZ9toK+P2tQ++txjTcmqSyb22at6FQNkS0jnNpx9DtZ/wJ472quQ4vnm+OzG2ei0evw0VTCT1HQ3cCZe86LaSC3PvNlUQSSuvd6wGfIcxco0EU1Bb9JiCCLP0TXdu+gSBQBmMyCkaUzYmTRAvf6p19ktd3iZ0fj1i+IWgZ7kuhCkMPZExTUAGZH8wLL+8HpkrBBKI/JxpbHTocLCjXRIfZ7DHs6T7zGHjOwYVQvSqAomXwECI/e4B9q2ikfC9vQPZdZrnzNYESSlhnmqGDmzcGQrdLKavxDaqz6rhQicA1O8NtUiR+nIwfyqvhup6PM+dd9EoQ= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 8d2caf57-a9cb-4323-429d-08d72a23d138 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Aug 2019 12:49:22.2999 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: /ACuPcaYKnVxYOKII4DiTO6voS3sO3dSyQVFTEyBN8rUZJ5gseM83fDsCuQcnJ1OUultshrsYLvTcknFbSdE42xYcbVx2bbH+wZQU7EozB8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB3230 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-08-26_07:2019-08-26,2019-08-26 signatures=0 Subject: [dpdk-dev] [PATCH v4 01/11] crypto/nitrox: add Nitrox build and doc skeleton 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" Add bare minimum Nitrox PMD library and doc build infrastructure and claim responsibility by updating the maintainers file. Signed-off-by: Nagadheeraj Rottela --- MAINTAINERS | 7 ++++++ config/common_base | 5 +++++ doc/guides/cryptodevs/index.rst | 1 + doc/guides/cryptodevs/nitrox.rst | 11 ++++++++++ drivers/crypto/Makefile | 1 + drivers/crypto/meson.build | 4 ++-- drivers/crypto/nitrox/Makefile | 28 ++++++++++++++++++++= ++++ drivers/crypto/nitrox/meson.build | 13 +++++++++++ drivers/crypto/nitrox/nitrox_device.c | 3 +++ drivers/crypto/nitrox/rte_pmd_nitrox_version.map | 3 +++ mk/rte.app.mk | 1 + 11 files changed, 75 insertions(+), 2 deletions(-) create mode 100644 doc/guides/cryptodevs/nitrox.rst create mode 100644 drivers/crypto/nitrox/Makefile create mode 100644 drivers/crypto/nitrox/meson.build create mode 100644 drivers/crypto/nitrox/nitrox_device.c create mode 100644 drivers/crypto/nitrox/rte_pmd_nitrox_version.map diff --git a/MAINTAINERS b/MAINTAINERS index 410026086..8a865b73f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -965,6 +965,13 @@ F: drivers/crypto/mvsam/ F: doc/guides/cryptodevs/mvsam.rst F: doc/guides/cryptodevs/features/mvsam.ini =20 +Nitrox +M: Nagadheeraj Rottela +M: Srikanth Jampala +F: drivers/crypto/nitrox/ +F: doc/guides/cryptodevs/nitrox.rst +F: doc/guides/cryptodevs/features/nitrox.ini + Null Crypto M: Declan Doherty F: drivers/crypto/null/ diff --git a/config/common_base b/config/common_base index 8ef75c203..92ecb4a68 100644 --- a/config/common_base +++ b/config/common_base @@ -664,6 +664,11 @@ CONFIG_RTE_LIBRTE_PMD_CCP=3Dn CONFIG_RTE_LIBRTE_PMD_MVSAM_CRYPTO=3Dn =20 # +# Compile PMD for NITROX crypto device +# +CONFIG_RTE_LIBRTE_PMD_NITROX=3Dy + +# # Compile generic security library # CONFIG_RTE_LIBRTE_SECURITY=3Dy diff --git a/doc/guides/cryptodevs/index.rst b/doc/guides/cryptodevs/index.= rst index 83610e64f..d1e0d3203 100644 --- a/doc/guides/cryptodevs/index.rst +++ b/doc/guides/cryptodevs/index.rst @@ -21,6 +21,7 @@ Crypto Device Drivers octeontx openssl mvsam + nitrox null scheduler snow3g diff --git a/doc/guides/cryptodevs/nitrox.rst b/doc/guides/cryptodevs/nitro= x.rst new file mode 100644 index 000000000..b6b86dda5 --- /dev/null +++ b/doc/guides/cryptodevs/nitrox.rst @@ -0,0 +1,11 @@ +.. SPDX-License-Identifier: BSD-3-Clause + Copyright(C) 2019 Marvell International Ltd. + +Nitrox Crypto Poll Mode Driver +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D + +The Nitrox crypto poll mode driver provides support for offloading +cryptographic operations to the NITROX V security processor. Detailed +information about the NITROX V security processor can be obtained here: + +* https://www.marvell.com/security-solutions/nitrox-security-processors/ni= trox-v/ diff --git a/drivers/crypto/Makefile b/drivers/crypto/Makefile index 009f8443d..7129bcfc9 100644 --- a/drivers/crypto/Makefile +++ b/drivers/crypto/Makefile @@ -25,5 +25,6 @@ DIRS-$(CONFIG_RTE_LIBRTE_PMD_CAAM_JR) +=3D caam_jr endif # CONFIG_RTE_LIBRTE_PMD_DPAA_SEC endif # CONFIG_RTE_LIBRTE_SECURITY DIRS-$(CONFIG_RTE_LIBRTE_PMD_VIRTIO_CRYPTO) +=3D virtio +DIRS-$(CONFIG_RTE_LIBRTE_PMD_NITROX) +=3D nitrox =20 include $(RTE_SDK)/mk/rte.subdir.mk diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index 83e78860e..1a358ff8b 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -2,8 +2,8 @@ # Copyright(c) 2017 Intel Corporation =20 drivers =3D ['aesni_gcm', 'aesni_mb', 'caam_jr', 'ccp', 'dpaa_sec', 'dpaa2= _sec', - 'kasumi', 'mvsam', 'null', 'octeontx', 'openssl', 'qat', 'scheduler', - 'snow3g', 'virtio', 'zuc'] + 'kasumi', 'mvsam', 'nitrox', 'null', 'octeontx', 'openssl', 'qat', + 'scheduler', 'snow3g', 'virtio', 'zuc'] =20 std_deps =3D ['cryptodev'] # cryptodev pulls in all other needed deps config_flag_fmt =3D 'RTE_LIBRTE_@0@_PMD' diff --git a/drivers/crypto/nitrox/Makefile b/drivers/crypto/nitrox/Makefil= e new file mode 100644 index 000000000..da33a1d2a --- /dev/null +++ b/drivers/crypto/nitrox/Makefile @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(C) 2019 Marvell International Ltd. + +include $(RTE_SDK)/mk/rte.vars.mk + +# library name +LIB =3D librte_pmd_nitrox.a + +# build flags +CFLAGS +=3D -O3 +CFLAGS +=3D $(WERROR_FLAGS) +CFLAGS +=3D -DALLOW_EXPERIMENTAL_API + +# library version +LIBABIVER :=3D 1 + +# versioning export map +EXPORT_MAP :=3D rte_pmd_nitrox_version.map + +# external library dependencies +LDLIBS +=3D -lrte_eal -lrte_mbuf -lrte_mempool +LDLIBS +=3D -lrte_pci -lrte_bus_pci +LDLIBS +=3D -lrte_cryptodev + +# library source files +SRCS-$(CONFIG_RTE_LIBRTE_PMD_NITROX) +=3D nitrox_device.c + +include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/crypto/nitrox/meson.build b/drivers/crypto/nitrox/meso= n.build new file mode 100644 index 000000000..0afb14b00 --- /dev/null +++ b/drivers/crypto/nitrox/meson.build @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright(C) 2019 Marvell International Ltd. + +if not is_linux + build =3D false + reason =3D 'only supported on Linux' +endif + +deps +=3D ['bus_pci'] +allow_experimental_apis =3D true +sources =3D files( + 'nitrox_device.c', + ) diff --git a/drivers/crypto/nitrox/nitrox_device.c b/drivers/crypto/nitrox/= nitrox_device.c new file mode 100644 index 000000000..d26535dee --- /dev/null +++ b/drivers/crypto/nitrox/nitrox_device.c @@ -0,0 +1,3 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * Copyright(C) 2019 Marvell International Ltd. + */ diff --git a/drivers/crypto/nitrox/rte_pmd_nitrox_version.map b/drivers/cry= pto/nitrox/rte_pmd_nitrox_version.map new file mode 100644 index 000000000..0a539ae48 --- /dev/null +++ b/drivers/crypto/nitrox/rte_pmd_nitrox_version.map @@ -0,0 +1,3 @@ +DPDK_19.08 { + local: *; +}; diff --git a/mk/rte.app.mk b/mk/rte.app.mk index ba5c39e01..fb496692b 100644 --- a/mk/rte.app.mk +++ b/mk/rte.app.mk @@ -279,6 +279,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_CAAM_JR) +=3D -lrte_p= md_caam_jr endif # CONFIG_RTE_LIBRTE_DPAA_BUS endif # CONFIG_RTE_LIBRTE_SECURITY _LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_VIRTIO_CRYPTO) +=3D -lrte_pmd_virtio_crypt= o +_LDLIBS-$(CONFIG_RTE_LIBRTE_PMD_NITROX) +=3D -lrte_pmd_nitrox endif # CONFIG_RTE_LIBRTE_CRYPTODEV =20 ifeq ($(CONFIG_RTE_LIBRTE_COMPRESSDEV),y) --=20 2.13.6