From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0049.outbound.protection.outlook.com [104.47.33.49]) by dpdk.org (Postfix) with ESMTP id E9EB87D77 for ; Tue, 15 Aug 2017 08:37:03 +0200 (CEST) Received: from CY1PR03CA0012.namprd03.prod.outlook.com (2603:10b6:600::22) by MWHSPR01MB180.namprd03.prod.outlook.com (2603:10b6:301:7b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1341.21; Tue, 15 Aug 2017 06:37:02 +0000 Received: from BN1BFFO11FD003.protection.gbl (2a01:111:f400:7c10::1:125) by CY1PR03CA0012.outlook.office365.com (2603:10b6:600::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1341.21 via Frontend Transport; Tue, 15 Aug 2017 06:37:01 +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 BN1BFFO11FD003.mail.protection.outlook.com (10.58.144.66) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1304.16 via Frontend Transport; Tue, 15 Aug 2017 06:37:00 +0000 Received: from netperf2.ap.freescale.net ([10.232.133.164]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v7F6atQD015692; Mon, 14 Aug 2017 23:36:55 -0700 From: Akhil Goyal To: , , , , , , , CC: , , Akhil Goyal Date: Tue, 15 Aug 2017 12:05:01 +0530 Message-ID: <20170815063505.22032-1-akhil.goyal@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170725112153.29699-1-akhil.goyal@nxp.com> References: <20170725112153.29699-1-akhil.goyal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131472526212998220; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(336005)(39860400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(47776003)(6666003)(356003)(97736004)(8676002)(2950100002)(81156014)(81166006)(305945005)(48376002)(105606002)(8936002)(50226002)(85426001)(76176999)(50986999)(54906002)(7416002)(189998001)(5660300001)(2201001)(1076002)(104016004)(53936002)(68736007)(5003940100001)(2906002)(86362001)(36756003)(77096006)(4326008)(69596002)(106466001)(50466002)(498600001)(33646002)(626005)(8656003)(217873001)(2101003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHSPR01MB180; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1BFFO11FD003; 1:cDaCKHeutrLrb4XotcHcmTWB1J/v+Su8VJsb7fFcG?= =?us-ascii?Q?pc9lPfC9VuMihMakLq0m/1u3M1S/1Ms4butpdutLen+4xJnM2BmJTV+f8wg+?= =?us-ascii?Q?WwBvtRBHzNyw6QI1snOug6PH3mrDllHnnzSyCbTNDwBSnYn4gkO5ednuLvhA?= =?us-ascii?Q?Neasp5HibINZeMDzvrfNCIJjVEoAbK7gzhYawJ1UEnkNia8co0he2Ivwoo3h?= =?us-ascii?Q?Zv15ZjCYvUp/hK0olc6K99IYiCke3hm1eU/SpQtYO5NnFomi5FZUzNdbjEJN?= =?us-ascii?Q?WH8vmbQW1xaJym2ZzEQpzmAjisPOGJQ++/9zymlvPWHyNsRZC3qAaFRYBJYE?= =?us-ascii?Q?fDFgWHl8G0/58rPFVi6PP7tmZngBLaJd5KHUDuso/n39OTvtVtHMZq7i0oAV?= =?us-ascii?Q?MQ7syQdDG+XKDYORr9q1JXRdEvZFXZuKpPdc4UaeuvXD0EYPsCOymY3AKZJr?= =?us-ascii?Q?3IsCRtgRMdtAVa1GjTerj4/U++dvx2lVxIZUlNdjQTKCpzsxXouca9ly6Sh3?= =?us-ascii?Q?Zi7EVo08cDHfoJjO1uzqv53p+x1qhFIJS03a5EGaTloUz9x0+jBxXuIOlBWn?= =?us-ascii?Q?TkFMv7QY6NjXRnMJ6I5WFpMEcCKfgihIjegwhCM0Vh4F+ekUBzNhSZlY5SLX?= =?us-ascii?Q?fqI6G/LipYDzP2N8TlGgsH23dlyIFiAj3jG0i4GXiSUm9EE2ZrotRS/fqPnc?= =?us-ascii?Q?FJqnB4nQ2PXjkBMF7d1KgigThKyDy+L6NvBsGYJS0kK6hY2N7LYGz2N2C1qd?= =?us-ascii?Q?/ZFdBGJmlptn0qHfx+iXXXo/QFp6IgYXbw6e6Y2QJ+SqwHl7HIY2MEegGqHj?= =?us-ascii?Q?SjeSGtmrbgL2AeKVoEBCehU9qXI0gcWsB2+DPUQHOoDRfRWxKbFj9Q5OlHBv?= =?us-ascii?Q?Fb6lEc3ohkaaXgR2R57mG+vY3ppPkqNcNHINJMzyznNjfZwGx110o5wIzxBu?= =?us-ascii?Q?9bIih3GI8qIISZVz8V3msvHc+dus+95tk7K2TzRyxJFNCsWsNxqA800xnbYm?= =?us-ascii?Q?jf+E+jk89AQSrJUYW8pKE6e?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 40d0d4e6-2dca-4f96-4072-08d4e3a808df X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:MWHSPR01MB180; X-Microsoft-Exchange-Diagnostics: 1; MWHSPR01MB180; 3:Cf/BzSvXo4VU/GwOhNp4Bpv4suoMW/uO+spb0PwmCNN6yMVw0De/w996rSLaAoF5YmOiugEBMmkkORG3XCcGXMWrxQ+h+mw/wzREyz3BuXCr9FFf3hQW38IIpQtu7+YTgWzbqyu6kvFMbzOuBTJgMZwQ2LFUXkJ0JW26gMX+zAvbpSXLnNoO2Rp5ZdllBDKi0VYTI/bxzuIF3OThWWIh3FtuyamC1xEkh3ovlUOukLg+Gv6riy8mpk5FkbnmE15VENzSkLz+3xkcSYgEEW0HoJWQOgXcfL19VBCjR2IJOcELQO+mRJgU7H1IApMsPEf/sS0406X5XNONmF7IrY+dHg==; 25:Jb7hdnh9xi7Rj1LhgCwzrSOejH9agihVI1oyY2jd6ew6dg5GayaY+WQPoqALxbfBAH6UD8OOwQeuEZORSL0aed95nZ8Eamw7FFNTO+iE3xulQROjhIUs3PLOCEmZ0wTIyzCdQUYuxWrR3GFFJanFzFKvQvzJTBKyd/9ZsNs9VN3sNXNV92SX5P1j+ScGUHM6Jzf7lMW6t4tWMVCjbH1sTmFBANYJkSAcx+rhU+0GXUGE9B8wSKgs8KVaSJsFZbyQ/a/um3v7VAmUst1Ak0VM6WfIuy2xbjU224O589nNLpBruf4kkFc+6jmjbuoPiAHwHEixTOqwfLGRRaUkDpER8Q==; 31:tjV7rJiakC12O5m5OtLCkl485/s8zBKh08lp29rOEDih3J+0ZA7NEugjlxwYiCY1w7hmlY/XGwotM59rPz6dzbqKqiToIvA0z6P1ip5b0U6EwN3P8ChKzaAtQTdJvwQf+ea/Lkuw5Ip40mx4mA2+itZC80bPseSV6F3qOaDsnuxl4gyZ689RliUPZ0xwKf4biOztIeoVKiUCUpzLfduCLEVgeq+Jjcpvo10KMsjyTds= X-MS-TrafficTypeDiagnostic: MWHSPR01MB180: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(17755550239193); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(93006095)(93001095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6096035)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123559100)(20161123565025)(20161123561025)(20161123563025)(20161123556025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHSPR01MB180; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHSPR01MB180; X-Microsoft-Exchange-Diagnostics: 1; MWHSPR01MB180; 4:BWyvMDp8LdPsT1KKszgRcqq7PP72b4Xv9KX4gOb88Opeaf9nKqQuhiKknCWRk9Z2ZXtNU6lxZJ1ZQhefT3c1vnyp5pLduLhOKdbEI3OXquUWm4y3K1ZBkS/9a0TqZ0tbArXRL1pTJb4P9IIFdsdW4r6CHzQtxE0OfIa4pZUWAmBUDUvHgflFwtFnDQK7N4+2C0QRbH7Dc330aKxS4pX24nmGVUSs/xcFxmwRvvxkQZPZu5l0GK4uBnreEWesuMUs76s/LhO8w8aeC5yAjmK29hTEu0/PdapvKenxaZSEvTIXyzacAdRVnoSVkPxTlX3XgcrKYfTAG7pOryfaoQGT5w== X-Forefront-PRVS: 04004D94E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHSPR01MB180; 23:NIbV+d3dhyOK0Iqorlf9EtcLhRYrFDGrzn0wzorlg?= =?us-ascii?Q?P2frxHCxm1FQI14+pxoSWbziBt7s274TPlwnboER2VU9j2kIpzhHe0ksyAbw?= =?us-ascii?Q?aCI0msu7XYjBl9deTlJDR8etL4kwg24dTByWnBy/fmyJtJc0gKhVj2ciXcrH?= =?us-ascii?Q?u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LCfFfcKGh8qWaekg9kzl9dqFEKZRsASIFW5AX+u0UFPD1ZKRKf14f44lNoHMODv6Ubg7nv2axCnQaA5PevabalkiORZYGMtehsQiag5rLl1xXA8yZjryz1JMoEYeW3hXYjadz+zLe0O8lxf0LRTYC5I5smHrka/9BHPg9lvArw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Aug 2017 06:37:00.6602 (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: MWHSPR01MB180 Subject: [dpdk-dev] [RFC PATCH v2 0/4] IPSec Inline and look aside crypto offload 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: Tue, 15 Aug 2017 06:37:04 -0000 This patchet showcases the definition and usage of the rte_security APIs described in the RFC v1 sent earlier. The data path and configuration path is similar to what was proposed in version 1. However, rte_security_configure API is removed, as it looked redundant. Also the rte_security.x files are placed inside the lib/librte_cryptodev/ as the APIs are defined with the help of crypto APIs and it makes more sense to extend the cryptodev library instead of a separate library which perform similar actions. Some of the parameters of the APIs are also modified for better usability. The parameter ``dev_name`` is removed as the appropriate device(crypto/eth) can be obtained by using the action type. The patchset is still in work in progress state and there may be some changes and cleanup in the next version. This is just to enable others to work in parallel on the crypto offloading using ethernet devices. This patchset include the definition of rte_security APIs in patch 1, changes required in cryptodev in patch 2, sample driver implementation in patch 3 and ipsec-secgw application changes in patch 4. Akhil Goyal (4): RFC2: rte_security: API definitions cryptodev: entend cryptodev to support security APIs crypto/dpaa2_sec: add support for protocol offload ipsec example/ipsec-secgw: add support for offloading crypto op drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 368 ++++++++++++++++++++++++- drivers/crypto/dpaa2_sec/dpaa2_sec_priv.h | 33 +++ examples/ipsec-secgw/ipsec.c | 125 ++++++--- examples/ipsec-secgw/ipsec.h | 13 +- examples/ipsec-secgw/sa.c | 142 +++++++--- lib/librte_cryptodev/Makefile | 3 +- lib/librte_cryptodev/rte_crypto_sym.h | 15 + lib/librte_cryptodev/rte_cryptodev.h | 20 +- lib/librte_cryptodev/rte_cryptodev_pmd.h | 35 +++ lib/librte_cryptodev/rte_security.c | 171 ++++++++++++ lib/librte_cryptodev/rte_security.h | 409 ++++++++++++++++++++++++++++ 11 files changed, 1243 insertions(+), 91 deletions(-) create mode 100644 lib/librte_cryptodev/rte_security.c create mode 100644 lib/librte_cryptodev/rte_security.h -- 2.9.3