get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/74183/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 74183,
    "url": "http://patches.dpdk.org/api/patches/74183/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200716083931.29092-4-ktejasree@marvell.com/",
    "project": {
        "id": 1,
        "url": "http://patches.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": "<20200716083931.29092-4-ktejasree@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200716083931.29092-4-ktejasree@marvell.com",
    "date": "2020-07-16T08:39:26",
    "name": "[v3,3/8] crypto/octeontx2: add lookaside SA context definitions",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7478c109a97c4bfd2b7a6b5ae0229117bec39c3b",
    "submitter": {
        "id": 1789,
        "url": "http://patches.dpdk.org/api/people/1789/?format=api",
        "name": "Tejasree Kondoj",
        "email": "ktejasree@marvell.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200716083931.29092-4-ktejasree@marvell.com/mbox/",
    "series": [
        {
            "id": 11079,
            "url": "http://patches.dpdk.org/api/series/11079/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11079",
            "date": "2020-07-16T08:39:23",
            "name": "add OCTEON TX2 lookaside IPsec support",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/11079/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/74183/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/74183/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 B61D6A0546;\n\tThu, 16 Jul 2020 09:45:41 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DD13A1BEDD;\n\tThu, 16 Jul 2020 09:45:37 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id E4F611BEDD\n for <dev@dpdk.org>; Thu, 16 Jul 2020 09:45:35 +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 06G7YjMv004450; Thu, 16 Jul 2020 00:45:34 -0700",
            "from sc-exch03.marvell.com ([199.233.58.183])\n by mx0b-0016f401.pphosted.com with ESMTP id 328mmhxm7p-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 16 Jul 2020 00:45:34 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by SC-EXCH03.marvell.com\n (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Thu, 16 Jul 2020 00:45:32 -0700",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Thu, 16 Jul 2020 00:45:33 -0700",
            "from hyd1554T5810.caveonetworks.com.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id D2DF63F703F;\n Thu, 16 Jul 2020 00:45:30 -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=Net+S/KymjvZC1VEgxewMIj6ksEiudSl+GjMR8AlZtI=;\n b=hvtTkcddHz0H8aQpx10Rc3sIPCd8RcOPEuZlMPaRCdrMLLNWYu2lSTNGYf2dEc5uit/e\n 1JbyGwLYSOfllz6zRruQT99bX2rBHSkHkKIn5LI3mDEvk0JMZtHPmeS6SNEo77H6XhR8\n 8FeX4rjUHzhtAa2HXgIJ5Adl0vBRt9YaYJk7Z1njUqIamjCbAPZ3KbjxIeNjOVbOb9b1\n y+kapZc15v9Mt4QzVfbMtMaddJzoeu02WpYuzWFu6IIXS0Zn7eQHV/PJaexmmyVnn0D3\n YELoQgFxMSy6fbi1XKifrJGMIYuVQsVNTWG5HcEDeW2l+N9oYRkIblOhtmx0izMLnDwP Hw==",
        "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": "Thu, 16 Jul 2020 14:09:26 +0530",
        "Message-ID": "<20200716083931.29092-4-ktejasree@marvell.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20200716083931.29092-1-ktejasree@marvell.com>",
        "References": "<20200716083931.29092-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.235, 18.0.687\n definitions=2020-07-16_04:2020-07-16,\n 2020-07-16 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v3 3/8] crypto/octeontx2: add lookaside SA\n\tcontext definitions",
        "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": "This patch adds lookaside IPsec SA context definitions.\n\nSigned-off-by: Vamsi Attunuru <vattunuru@marvell.com>\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n drivers/crypto/octeontx2/otx2_cryptodev_sec.h |  58 +++++++++\n drivers/crypto/octeontx2/otx2_ipsec_po.h      | 110 ++++++++++++++++++\n drivers/crypto/octeontx2/otx2_security.h      |   2 +\n drivers/net/octeontx2/otx2_ethdev_sec.h       |   1 +\n 4 files changed, 171 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..253f62d873\n--- /dev/null\n+++ b/drivers/crypto/octeontx2/otx2_cryptodev_sec.h\n@@ -0,0 +1,58 @@\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+\tunion {\n+\t\tuint64_t ucmd_w0;\n+\t\tstruct {\n+\t\t\tuint16_t ucmd_dlen;\n+\t\t\tuint16_t ucmd_param2;\n+\t\t\tuint16_t ucmd_param1;\n+\t\t\tuint16_t ucmd_opcode;\n+\t\t};\n+\t};\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..217dfeaff0\n--- /dev/null\n+++ b/drivers/crypto/octeontx2/otx2_ipsec_po.h\n@@ -0,0 +1,110 @@\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 otx2_ipsec_po_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} gcm;\n+};\n+\n+struct otx2_ipsec_po_traffic_selector {\n+\trte_be16_t src_port[2];\n+\trte_be16_t dst_port[2];\n+\tRTE_STD_C11\n+\tunion {\n+\t\tstruct {\n+\t\t\trte_be32_t src_addr[2];\n+\t\t\trte_be32_t dst_addr[2];\n+\t\t} ipv4;\n+\t\tstruct {\n+\t\t\tuint8_t src_addr[32];\n+\t\t\tuint8_t dst_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 otx2_ipsec_po_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+\tstruct {\n+\t\tuint8_t hmac_key[48];\n+\t\tstruct otx2_ipsec_po_traffic_selector selector;\n+\t} aes_gcm;\n+};\n+\n+struct otx2_ipsec_po_ip_template {\n+\tRTE_STD_C11\n+\tunion {\n+\t\tuint8_t raw[252];\n+\t\tstruct rte_ipv4_hdr ipv4_hdr;\n+\t\tstruct rte_ipv6_hdr ipv6_hdr;\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 otx2_ipsec_po_bit_perfect_iv iv;\n+\n+\t/* w7 */\n+\tuint32_t esn_hi;\n+\tuint32_t esn_low;\n+\n+\t/* w8-w39 */\n+\tstruct otx2_ipsec_po_ip_template template;\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 9790c709d6..9b4fe263c4 100644\n--- a/drivers/crypto/octeontx2/otx2_security.h\n+++ b/drivers/crypto/octeontx2/otx2_security.h\n@@ -5,10 +5,12 @@\n #ifndef __OTX2_SECURITY_H__\n #define __OTX2_SECURITY_H__\n \n+#include \"otx2_cryptodev_sec.h\"\n #include \"otx2_ethdev_sec.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": [
        "v3",
        "3/8"
    ]
}