Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/72026/?format=api
http://patchwork.dpdk.org/api/patches/72026/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20200623121228.10355-3-ktejasree@marvell.com/", "project": { "id": 1, "url": "http://patchwork.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200623121228.10355-3-ktejasree@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200623121228.10355-3-ktejasree@marvell.com", "date": "2020-06-23T12:12:22", "name": "[2/8] crypto/octeontx2: add lookaside SA context definitions", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "6aafd401a527f2e675789819a9cfd95523360cb7", "submitter": { "id": 1789, "url": "http://patchwork.dpdk.org/api/people/1789/?format=api", "name": "Tejasree Kondoj", "email": "ktejasree@marvell.com" }, "delegate": { "id": 6690, "url": "http://patchwork.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20200623121228.10355-3-ktejasree@marvell.com/mbox/", "series": [ { "id": 10567, "url": "http://patchwork.dpdk.org/api/series/10567/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=10567", "date": "2020-06-23T12:12:20", "name": "add OCTEON TX2 lookaside IPsec support", "version": 1, "mbox": "http://patchwork.dpdk.org/series/10567/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/72026/comments/", "check": "fail", "checks": "http://patchwork.dpdk.org/api/patches/72026/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 4DEAEA0350;\n\tTue, 23 Jun 2020 13:19:15 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 97DC41D63C;\n\tTue, 23 Jun 2020 13:19:10 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 3BD321D634\n for <dev@dpdk.org>; Tue, 23 Jun 2020 13:19:09 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 05NBFxrj030220; Tue, 23 Jun 2020 04:19:08 -0700", "from sc-exch03.marvell.com ([199.233.58.183])\n by mx0b-0016f401.pphosted.com with ESMTP id 31shynw00m-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 23 Jun 2020 04:19:08 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by SC-EXCH03.marvell.com\n (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Tue, 23 Jun 2020 04:19:06 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Tue, 23 Jun 2020 04:19:06 -0700", "from hyd1554T5810.caveonetworks.com.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id 7703C3F703F;\n Tue, 23 Jun 2020 04:19:04 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0818;\n bh=YyDGM9wSYaNqu19e59Oo5nmMKEufLNfw+gwfeMLWftA=;\n b=YeOkpPWHthBg6ZDxaQxPIjW5do2BKd/LC4lrFSg7Oi3c9fiS4siUMsLv+6V59v9cx75f\n yeW5yTArHPggly9bXJ/HNst8i109QxwigwXIvNQrfoWtC+ux71PzaPgXKtxnDkqrtTHQ\n D4JK5P70l/v/w2vD2iZlH4vjOoQ9lCP3aO/bEN1q/ue5pCmyWswx9U8XvncySRX6m+L2\n I4jlylihSaNccuoqEWfbefVzDnT3CdprZPkpxqWwZbcNZGLIQQmXwZmxsd2qbs0xgwwz\n MOXl6ft25qjY3i4bZuTqrHPV2jbC6DvhmnMrQSYbzAesS1+/t34L1F7oAh8F0/2ZFLyQ Vw==", "From": "Tejasree Kondoj <ktejasree@marvell.com>", "To": "Akhil Goyal <akhil.goyal@nxp.com>, Radu Nicolau <radu.nicolau@intel.com>", "CC": "Tejasree Kondoj <ktejasree@marvell.com>, Narayana Prasad\n <pathreya@marvell.com>, Anoob Joseph <anoobj@marvell.com>, Vamsi Attunuru\n <vattunuru@marvell.com>, <dev@dpdk.org>", "Date": "Tue, 23 Jun 2020 17:42:22 +0530", "Message-ID": "<20200623121228.10355-3-ktejasree@marvell.com>", "X-Mailer": "git-send-email 2.27.0", "In-Reply-To": "<20200623121228.10355-1-ktejasree@marvell.com>", "References": "<20200623121228.10355-1-ktejasree@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.216, 18.0.687\n definitions=2020-06-23_06:2020-06-23,\n 2020-06-23 signatures=0", "Subject": "[dpdk-dev] [PATCH 2/8] crypto/octeontx2: add lookaside SA context\n\tdefinitions", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Signed-off-by: Vamsi Attunuru <vattunuru@marvell.com>\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n drivers/crypto/octeontx2/otx2_cryptodev_sec.h | 52 ++++++++\n drivers/crypto/octeontx2/otx2_ipsec_po.h | 119 ++++++++++++++++++\n drivers/crypto/octeontx2/otx2_security.h | 2 +\n drivers/net/octeontx2/otx2_ethdev_sec.h | 1 +\n 4 files changed, 174 insertions(+)\n create mode 100644 drivers/crypto/octeontx2/otx2_cryptodev_sec.h\n create mode 100644 drivers/crypto/octeontx2/otx2_ipsec_po.h", "diff": "diff --git a/drivers/crypto/octeontx2/otx2_cryptodev_sec.h b/drivers/crypto/octeontx2/otx2_cryptodev_sec.h\nnew file mode 100644\nindex 0000000000..af62207d07\n--- /dev/null\n+++ b/drivers/crypto/octeontx2/otx2_cryptodev_sec.h\n@@ -0,0 +1,52 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright (C) 2020 Marvell International Ltd.\n+ */\n+\n+#ifndef __OTX2_CRYPTODEV_SEC_H__\n+#define __OTX2_CRYPTODEV_SEC_H__\n+\n+#include \"otx2_ipsec_po.h\"\n+\n+struct otx2_sec_session_ipsec_lp {\n+\tRTE_STD_C11\n+\tunion {\n+\t\t/* Inbound SA */\n+\t\tstruct otx2_ipsec_po_in_sa in_sa;\n+\t\t/* Outbound SA */\n+\t\tstruct otx2_ipsec_po_out_sa out_sa;\n+\t};\n+\n+\tuint64_t ucmd_w3;\n+\tuint16_t ucmd_opcode;\n+\tuint16_t ucmd_param1;\n+\tuint16_t ucmd_param2;\n+\n+\tuint8_t partial_len;\n+\tuint8_t roundup_len;\n+\tuint8_t roundup_byte;\n+\tuint16_t ip_id;\n+\tunion {\n+\t\tuint64_t esn;\n+\t\tstruct {\n+\t\t\tuint32_t seq_lo;\n+\t\t\tuint32_t seq_hi;\n+\t\t};\n+\t};\n+\n+\t/** Context length in 8-byte words */\n+\tsize_t ctx_len;\n+\t/** Auth IV offset in bytes */\n+\tuint16_t auth_iv_offset;\n+\t/** IV offset in bytes */\n+\tuint16_t iv_offset;\n+\t/** AAD length */\n+\tuint16_t aad_length;\n+\t/** MAC len in bytes */\n+\tuint8_t mac_len;\n+\t/** IV length in bytes */\n+\tuint8_t iv_length;\n+\t/** Auth IV length in bytes */\n+\tuint8_t auth_iv_length;\n+};\n+\n+#endif /* __OTX2_CRYPTODEV_SEC_H__ */\ndiff --git a/drivers/crypto/octeontx2/otx2_ipsec_po.h b/drivers/crypto/octeontx2/otx2_ipsec_po.h\nnew file mode 100644\nindex 0000000000..602b9d10e2\n--- /dev/null\n+++ b/drivers/crypto/octeontx2/otx2_ipsec_po.h\n@@ -0,0 +1,119 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(C) 2020 Marvell International Ltd.\n+ */\n+\n+#ifndef __OTX2_IPSEC_PO_H__\n+#define __OTX2_IPSEC_PO_H__\n+\n+#include <rte_crypto_sym.h>\n+#include <rte_ip.h>\n+#include <rte_security.h>\n+\n+union bit_perfect_iv {\n+\tuint8_t aes_iv[16];\n+\tuint8_t des_iv[8];\n+\tstruct {\n+\t\tuint8_t nonce[4];\n+\t\tuint8_t iv[8];\n+\t\tuint8_t counter[4];\n+\t} misc; /* For GCM/GMAC/CTR/CCM */\n+};\n+\n+struct ip_selector {\n+\tuint8_t src_port[4];\n+\tuint8_t dest_port[4];\n+\tRTE_STD_C11\n+\tunion {\n+\t\tstruct {\n+\t\t\tuint8_t src_addr[8];\n+\t\t\tuint8_t dest_addr[8];\n+\t\t} ipv4;\n+\t\tstruct {\n+\t\t\tuint8_t src_addr[32];\n+\t\t\tuint8_t dest_addr[32];\n+\t\t} ipv6;\n+\t};\n+};\n+\n+struct otx2_ipsec_po_sa_ctl {\n+\trte_be32_t spi : 32;\n+\tuint64_t exp_proto_inter_frag : 8;\n+\tuint64_t rsvd_42_40 : 3;\n+\tuint64_t esn_en : 1;\n+\tuint64_t rsvd_45_44 : 2;\n+\tuint64_t encap_type : 2;\n+\tuint64_t enc_type : 3;\n+\tuint64_t rsvd_48 : 1;\n+\tuint64_t auth_type : 4;\n+\tuint64_t valid : 1;\n+\tuint64_t direction : 1;\n+\tuint64_t outer_ip_ver : 1;\n+\tuint64_t inner_ip_ver : 1;\n+\tuint64_t ipsec_mode : 1;\n+\tuint64_t ipsec_proto : 1;\n+\tuint64_t aes_key_len : 2;\n+};\n+\n+struct otx2_ipsec_po_in_sa {\n+\t/* w0 */\n+\tstruct otx2_ipsec_po_sa_ctl ctl;\n+\n+\t/* w1-w4 */\n+\tuint8_t cipher_key[32];\n+\n+\t/* w5-w6 */\n+\tunion bit_perfect_iv iv;\n+\n+\t/* w7 */\n+\tuint32_t esn_hi;\n+\tuint32_t esn_low;\n+\n+\t/* w8 */\n+\tuint8_t udp_encap[8];\n+\n+\t/* w9-w23 */\n+\tRTE_STD_C11\n+\tstruct {\n+\t\tuint8_t hmac_key[48];\n+\t\tstruct ip_selector sel_checks;\n+\t} aes_gcm;\n+};\n+\n+struct ip_template {\n+\tunion {\n+\t\tRTE_STD_C11\n+\t\tuint8_t raw[252];\n+\t\tstruct {\n+\t\t\tstruct rte_ipv4_hdr hdr;\n+\t\t\tuint8_t unused[40];\n+\t\t} ipv4;\n+\n+\t\tstruct {\n+\t\t\tstruct rte_ipv6_hdr hdr;\n+\t\t\tuint8_t unused[208];\n+\t\t} ipv6;\n+\t};\n+};\n+\n+struct otx2_ipsec_po_out_sa {\n+\t/* w0 */\n+\tstruct otx2_ipsec_po_sa_ctl ctl;\n+\n+\t/* w1-w4 */\n+\tuint8_t cipher_key[32];\n+\n+\t/* w5-w6 */\n+\tunion bit_perfect_iv iv;\n+\n+\t/* w7 */\n+\tuint32_t esn_hi;\n+\tuint32_t esn_low;\n+\n+\t/* w8-w39 */\n+\tRTE_STD_C11\n+\tstruct ip_template templt;\n+\tuint16_t udp_src;\n+\tuint16_t udp_dst;\n+};\n+\n+#endif /* __OTX2_IPSEC_PO_H__ */\ndiff --git a/drivers/crypto/octeontx2/otx2_security.h b/drivers/crypto/octeontx2/otx2_security.h\nindex 275d69b6a5..e76cd843c7 100644\n--- a/drivers/crypto/octeontx2/otx2_security.h\n+++ b/drivers/crypto/octeontx2/otx2_security.h\n@@ -5,11 +5,13 @@\n #ifndef __OTX2_SECURITY_H__\n #define __OTX2_SECURITY_H__\n \n+#include \"otx2_cryptodev_sec.h\"\n #include \"otx2_ethdev_sec.h\"\n #include \"otx2_ipsec_fp.h\"\n \n union otx2_sec_session_ipsec {\n \tstruct otx2_sec_session_ipsec_ip ip;\n+\tstruct otx2_sec_session_ipsec_lp lp;\n };\n \n struct otx2_sec_session {\ndiff --git a/drivers/net/octeontx2/otx2_ethdev_sec.h b/drivers/net/octeontx2/otx2_ethdev_sec.h\nindex 22025d0d0c..298b00bf89 100644\n--- a/drivers/net/octeontx2/otx2_ethdev_sec.h\n+++ b/drivers/net/octeontx2/otx2_ethdev_sec.h\n@@ -8,6 +8,7 @@\n #include <rte_ethdev.h>\n \n #include \"otx2_ipsec_fp.h\"\n+#include \"otx2_ipsec_po.h\"\n \n #define OTX2_CPT_RES_ALIGN\t\t16\n #define OTX2_NIX_SEND_DESC_ALIGN\t16\n", "prefixes": [ "2/8" ] }{ "id": 72026, "url": "