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 C60AAA0471 for ; Wed, 17 Jul 2019 07:29:07 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2A2BC2BE1; Wed, 17 Jul 2019 07:29:07 +0200 (CEST) Received: from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 592D52BAB for ; Wed, 17 Jul 2019 07:29:05 +0200 (CEST) Received: from pps.filterd (m0045851.ppops.net [127.0.0.1]) by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x6H5PLO1005628 for ; Tue, 16 Jul 2019 22:29:04 -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=11sKL0h3PYSvc+RFo+K2/t2almjCOGlFGjmey+o/mjo=; b=j9CNIwKlJBDypidL0BGIlH2d9SnAFdxe3HgWpB/DhdPKbW26+U9mNPgF7NLX5b+Kcw1h KXuiPVcgrPC2rtK/3gF5fKONa6eUo6L89bigU4SUdwiIPaWURGHxZL9P0TvSd03ZlO6f 4i7FLgaIhTs1pWBeUmO2Kr51SUNb/6w2Fg7LEM/9DU2FUm9g3eAqk9htHw2vuMD8EXVH Tn00AGcNgYF7U8LkKVyOu7Ps0GBZCZBYxCtaTxmR5DayHlIen3zvw0Loz2md9UbkLLk6 8D62Rl/iAJ+HdpcTi7upnYQMaGOZZYAn9xY4FivCRV3tFwKGUZD/TVMCWN11DaHY7Dkv CQ== Received: from sc-exch02.marvell.com ([199.233.58.182]) by mx0b-0016f401.pphosted.com with ESMTP id 2ts0a26927-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Tue, 16 Jul 2019 22:29:04 -0700 Received: from SC-EXCH04.marvell.com (10.93.176.84) by SC-EXCH02.marvell.com (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Tue, 16 Jul 2019 22:29:02 -0700 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (104.47.34.55) by SC-EXCH04.marvell.com (10.93.176.84) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Tue, 16 Jul 2019 22:29:02 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YySSYqXykXtiWVqWwyIg4OY9Mh6GyvBaQDBAKIhYRWvH3u+UGHDA5BG5paGhFepDIoK0HforrEwDVq/S6V4rUKC0ctjzV4mSLQjoea0M00yUJVJ05MA7ZdLiGY+p0PiCCGJUi/svqZeeVWBmebFWKJLpSmFeKYwT5G47rUBe6XKcOfD0TfgEIwEAM0++HWYKwxpM9pLqBjefa40tffQ38pPIR8ledSrRpjrIt/rHmyr7eXCrrrCZ2X1A8yhqCwW0UVx7oY/OhV9CQcSPMAPIfD/wXEykhmv/EJcQUDmI2UxeIMLhSyzTwnmyaLE2WnFvq5S78pvwNeWDdrxDDIr5ng== 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=11sKL0h3PYSvc+RFo+K2/t2almjCOGlFGjmey+o/mjo=; b=NgUlPge3la5lL7sGgABp6XUQer4kDUQljHl2MeP0bA9ZrUsfMlH6FwqMFnTjhSa88o2k3ny3Hnmt9jyJa5h50104LWtbr7H8B+DCBHFLZXNk81MRfTIxpe0msuqbI1AUNg1Z/nUjuYp5L3h4vZGDZxx5zLhLLo8CG5GZteu8yX4rYWHQfN9DP8Q6im2gy0J7fvMkqEhEp2MDutIgIDZr6E29MLT3l+cM5+S4om6BXK7IQVO2IjnqNbm1jzSIctXMEP9hQ3VdwfLahBceVkS3gJ9QgFpOm/KaLQfXbNVM1rhczGe13PigWrBefQQC7NmayKXza/CWpPO3Q0kVCiq8Og== 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=11sKL0h3PYSvc+RFo+K2/t2almjCOGlFGjmey+o/mjo=; b=IcLbA8yU19ELZwnwCZhnzKeeTBi8X/o92DzV2Z010bmE2YrDKy3JmI7ivzOz+ahuumETrpt45P0USoDcXotycJRVHMhPusN2FE8EFr/Xa+Uik/gUA22O8SyDrXUQZ59p9Y4EDljSQdZTt9LJs88Ks598mHH47vQYmXGFCzIP+Es= Received: from MN2PR18MB2797.namprd18.prod.outlook.com (20.179.22.16) by MN2PR18MB2767.namprd18.prod.outlook.com (20.179.20.95) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2073.11; Wed, 17 Jul 2019 05:29:01 +0000 Received: from MN2PR18MB2797.namprd18.prod.outlook.com ([fe80::5d53:ac2e:80ec:cd8f]) by MN2PR18MB2797.namprd18.prod.outlook.com ([fe80::5d53:ac2e:80ec:cd8f%6]) with mapi id 15.20.2073.012; Wed, 17 Jul 2019 05:29:01 +0000 From: Nagadheeraj Rottela To: "dev@dpdk.org" CC: Srikanth Jampala , Nagadheeraj Rottela Thread-Topic: [PATCH 01/10] crypto/nitrox: add Nitrox build and doc skeleton Thread-Index: AQHVPGCKbwcZPXoBqEujJmk9LsQVeg== Date: Wed, 17 Jul 2019 05:29:01 +0000 Message-ID: <20190717052837.647-2-rnagadheeraj@marvell.com> References: <20190717052837.647-1-rnagadheeraj@marvell.com> In-Reply-To: <20190717052837.647-1-rnagadheeraj@marvell.com> Accept-Language: en-IN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BMXPR01CA0001.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::11) 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: af686cc1-498e-42af-42dc-08d70a77ace0 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR18MB2767; x-ms-traffictypediagnostic: MN2PR18MB2767: x-ms-exchange-purlcount: 1 x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7219; x-forefront-prvs: 01018CB5B3 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(979002)(4636009)(376002)(346002)(366004)(396003)(39860400002)(136003)(199004)(189003)(55236004)(6512007)(66066001)(66946007)(66476007)(66446008)(86362001)(64756008)(66556008)(107886003)(14444005)(71190400001)(99286004)(256004)(71200400001)(7736002)(305945005)(54906003)(6306002)(5660300002)(1730700003)(486006)(53936002)(26005)(81166006)(316002)(50226002)(6486002)(81156014)(8676002)(1076003)(6506007)(4326008)(25786009)(386003)(6116002)(11346002)(2616005)(3846002)(2351001)(6916009)(478600001)(14454004)(476003)(446003)(8936002)(68736007)(76176011)(102836004)(36756003)(186003)(52116002)(966005)(5640700003)(2906002)(6436002)(2501003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR18MB2767; 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: DzYy431wDr0aZ6Hhp/v4D0sUKDdB8WxDoAqaDikLcAaawxxO9VgM0fN7OvYoGsFflf3OgO8cBmg02CUAw73bWh8h25kIdwLKP1dItBivmH2JAXVIbMyUyNmSXbxBlGOy9dZE3SzF1D4hKdxrzX1K5RzDLQHRUf35qHUNGHvqywgCRez2do1//xIXXhWWOxi+NlQTUk2A9+P5XPjNa08xEIYPRdW0hRCZG5zvuS4Iz+/5w9k0UHk6SrJGPxX3YNZiDpFWAGTXoh6xR7yG9L6kzuoU5nW/9V3GW+IK+90LH8VxbzhHOqOpGVem0p/STRR+cxMK6sZtt/cbnJjOdWJsz/txdvvzK2Op33DUgg9ar8/sL69ncFJVpE4IzSR3jDxlgvS1jlNjNDOiFH+QbHZ2KEa2b5J5dwpUBfrWGGVqnU8= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: af686cc1-498e-42af-42dc-08d70a77ace0 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jul 2019 05:29:01.6017 (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: rnagadheeraj@marvell.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR18MB2767 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:5.22.84,1.0.8 definitions=2019-07-17_02:2019-07-16,2019-07-17 signatures=0 Subject: [dpdk-dev] [PATCH 01/10] 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 4534e3e2d..b6f8d40e4 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -964,6 +964,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 a277c808e..3c0613629 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