get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 130110,
    "url": "http://patchwork.dpdk.org/api/patches/130110/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230811071712.240-2-anoobj@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": "<20230811071712.240-2-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230811071712.240-2-anoobj@marvell.com",
    "date": "2023-08-11T07:17:10",
    "name": "[RFC,1/3] net: add headers for TLS/DTLS packets",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "52d6f45d2b06a0a834929fb772c240a2500740c1",
    "submitter": {
        "id": 1205,
        "url": "http://patchwork.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@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/20230811071712.240-2-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 29175,
            "url": "http://patchwork.dpdk.org/api/series/29175/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29175",
            "date": "2023-08-11T07:17:09",
            "name": "add TLS record processing security offload",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/29175/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/130110/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/130110/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 9672C4302F;\n\tFri, 11 Aug 2023 09:17:54 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0D8BB4325C;\n\tFri, 11 Aug 2023 09:17:43 +0200 (CEST)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 1A8A340F16\n for <dev@dpdk.org>; Fri, 11 Aug 2023 09:17:40 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id\n 37AMjl1W001550; Fri, 11 Aug 2023 00:17:36 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3sd8yp9f1b-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Fri, 11 Aug 2023 00:17:36 -0700",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.48;\n Fri, 11 Aug 2023 00:17:35 -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.48 via Frontend\n Transport; Fri, 11 Aug 2023 00:17:35 -0700",
            "from BG-LT92004.corp.innovium.com (unknown [10.28.163.189])\n by maili.marvell.com (Postfix) with ESMTP id 9ADA43F70D5;\n Fri, 11 Aug 2023 00:17:20 -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=pfpt0220;\n bh=w4VJfOMxxpVnMxfsxLI8ivJp9+LF5RTixfIhZu+4nDU=;\n b=A/yyotvFHMimTp4MRQm/orxxjjrIIoZ/1CIJ6MMFmEG2ZZcCPlUHsxs3M1bgbW16xR0B\n avNqew5N1uGb0y9x2ba/dhON+LLgXzMx9F2XxRgXkdXrXCbblUeJc0JV291ytiu4p6d6\n 3A/TrLDnlSxqVm5/+aYdorWCwmvkayH2EenuwDBCa9ywZUxDdsxcAtlQek5PDi1WvtuZ\n uTcok0V8Qb5MMAxnkvJDSoHuUkqG12Q6KS3PypjKUckX947VPu50JnjO7ffiAzAtCf53\n czQi2xd7imOkOWLCcNk0E0NcLcATne4wBpLMb+Ff1gKg2xg5rVc1hex68CGrDfKhN+xn EQ==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Thomas Monjalon <thomas@monjalon.net>, Akhil Goyal <gakhil@marvell.com>,\n Jerin Jacob <jerinj@marvell.com>, Konstantin Ananyev\n <konstantin.v.ananyev@yandex.ru>",
        "CC": "Hemant Agrawal <hemant.agrawal@nxp.com>, <dev@dpdk.org>, Olivier Matz\n <olivier.matz@6wind.com>, Vidya Sagar Velumuri <vvelumuri@marvell.com>",
        "Subject": "[RFC PATCH 1/3] net: add headers for TLS/DTLS packets",
        "Date": "Fri, 11 Aug 2023 12:47:10 +0530",
        "Message-ID": "<20230811071712.240-2-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230811071712.240-1-anoobj@marvell.com>",
        "References": "<20230811071712.240-1-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-ORIG-GUID": "8FQ0FEO9jZnYAbdU8-pTlf9HOKCSH6UN",
        "X-Proofpoint-GUID": "8FQ0FEO9jZnYAbdU8-pTlf9HOKCSH6UN",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.267,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26\n definitions=2023-08-10_20,2023-08-10_01,2023-05-22_02",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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"
    },
    "content": "From: Akhil Goyal <gakhil@marvell.com>\n\nAdded TLS and DTLS packet headers for L4 security applications.\n\nSigned-off-by: Akhil Goyal <gakhil@marvell.com>\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>\n---\n doc/api/doxy-api-index.md |  2 ++\n lib/net/meson.build       |  2 ++\n lib/net/rte_dtls.h        | 61 +++++++++++++++++++++++++++++++++++++++\n lib/net/rte_tls.h         | 48 ++++++++++++++++++++++++++++++\n 4 files changed, 113 insertions(+)\n create mode 100644 lib/net/rte_dtls.h\n create mode 100644 lib/net/rte_tls.h",
    "diff": "diff --git a/doc/api/doxy-api-index.md b/doc/api/doxy-api-index.md\nindex fdeda13932..03e2445bb1 100644\n--- a/doc/api/doxy-api-index.md\n+++ b/doc/api/doxy-api-index.md\n@@ -128,6 +128,8 @@ The public API headers are grouped by topics:\n   [eCPRI](@ref rte_ecpri.h),\n   [PDCP hdr](@ref rte_pdcp_hdr.h),\n   [PDCP](@ref rte_pdcp.h),\n+  [TLS](@ref rte_tls.h),\n+  [DTLS](@ref rte_dtls.h),\n   [L2TPv2](@ref rte_l2tpv2.h),\n   [PPP](@ref rte_ppp.h),\n   [IB](@ref rte_ib.h)\ndiff --git a/lib/net/meson.build b/lib/net/meson.build\nindex b1bc27bad5..0b69138949 100644\n--- a/lib/net/meson.build\n+++ b/lib/net/meson.build\n@@ -5,6 +5,8 @@ headers = files(\n         'rte_ip.h',\n         'rte_tcp.h',\n         'rte_udp.h',\n+        'rte_tls.h',\n+        'rte_dtls.h',\n         'rte_esp.h',\n         'rte_sctp.h',\n         'rte_icmp.h',\ndiff --git a/lib/net/rte_dtls.h b/lib/net/rte_dtls.h\nnew file mode 100644\nindex 0000000000..1455c07a92\n--- /dev/null\n+++ b/lib/net/rte_dtls.h\n@@ -0,0 +1,61 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(C) 2023 Marvell.\n+ */\n+\n+#ifndef RTE_DTLS_H\n+#define RTE_DTLS_H\n+\n+/**\n+ * @file\n+ *\n+ * Datagram transport layer security(DTLS) related defines.\n+ */\n+\n+#include <rte_byteorder.h>\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+#define RTE_DTLS_TYPE_INVALID\t0 /**< Invalid DTLS message type. */\n+#define RTE_DTLS_TYPE_CCS\t20 /**< Change cipher message. */\n+#define RTE_DTLS_TYPE_ALERT\t21 /**< Alert message. */\n+#define RTE_DTLS_TYPE_HANDSHAKE\t22 /**< Handshake message for DTLS. */\n+#define RTE_DTLS_TYPE_APPDATA\t23 /**< DTLS application data message. */\n+#define RTE_DTLS_TYPE_HEARTBEAT\t24 /**< DTLS 1.3 heartbeat message. */\n+#define RTE_DTLS_TYPE_CIPHERTEXT_WITH_CID\t25 /**< DTLS 1.3 ciphertext with CID message. */\n+#define RTE_DTLS_TYPE_ACK\t26 /**< DTLS 1.3 ACK message. */\n+#define RTE_DTLS_TYPE_MAX\t255 /**< Maximum value as DTLS content type. */\n+\n+#define RTE_DTLS_VERSION_1_2\t0xFEFD /**< DTLS 1.2 version. 1's complement of 1.2. */\n+#define RTE_DTLS_VERSION_1_3\t0xFEFC /**< DTLS 1.3 version. 1's complement of 1.3. */\n+\n+/**\n+ * DTLS Header\n+ */\n+__extension__\n+struct rte_dtls_hdr {\n+\t/** Content type of DTLS packet. Defined as RTE_DTLS_TYPE_*. */\n+\tuint8_t type;\n+\t/** DTLS Version defined as RTE_DTLS_VERSION*. */\n+\trte_be16_t version;\n+#if RTE_BYTE_ORDER == RTE_LITTLE_ENDIAN\n+\t/** The sequence number for the DTLS record. */\n+\tuint64_t sequence_number : 48;\n+\t/** A counter value that is incremented on every cipher state change. */\n+\tuint64_t epoch : 16;\n+#elif RTE_BYTE_ORDER == RTE_BIG_ENDIAN\n+\t/** A counter value that is incremented on every cipher state change. */\n+\tuint64_t epoch : 16;\n+\t/** The sequence number for the DTLS record. */\n+\tuint64_t sequence_number : 48;\n+#endif\n+\t/** The length (in bytes) of the following DTLS packet. */\n+\trte_be16_t length;\n+} __rte_packed;\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif /* RTE_DTLS_H */\ndiff --git a/lib/net/rte_tls.h b/lib/net/rte_tls.h\nnew file mode 100644\nindex 0000000000..d708d06014\n--- /dev/null\n+++ b/lib/net/rte_tls.h\n@@ -0,0 +1,48 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright(C) 2023 Marvell.\n+ */\n+\n+#ifndef RTE_TLS_H\n+#define RTE_TLS_H\n+\n+/**\n+ * @file\n+ *\n+ * Transport layer security(TLS) related defines.\n+ */\n+\n+#include <rte_byteorder.h>\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+#define RTE_TLS_TYPE_INVALID\t0 /**< Invalid TLS message type. */\n+#define RTE_TLS_TYPE_CCS\t20 /**< Change cipher message. */\n+#define RTE_TLS_TYPE_ALERT\t21 /**< Alert message. */\n+#define RTE_TLS_TYPE_HANDSHAKE\t22 /**< Handshake message for TLS. */\n+#define RTE_TLS_TYPE_APPDATA\t23 /**< TLS application data message. */\n+#define RTE_TLS_TYPE_HEARTBEAT\t24 /**< TLS 1.3 heartbeat message. */\n+#define RTE_TLS_TYPE_MAX\t255 /**< Maximum value as TLS content type. */\n+\n+#define RTE_TLS_VERSION_1_2\t0x0303 /**< TLS 1.2 version. */\n+#define RTE_TLS_VERSION_1_3\t0x0304 /**< TLS 1.3 version. */\n+\n+/**\n+ * TLS Header\n+ */\n+__extension__\n+struct rte_tls_hdr {\n+\t/** Content type of TLS packet. Defined as RTE_TLS_TYPE_*. */\n+\tuint8_t type;\n+\t/** TLS Version defined as RTE_TLS_VERSION*. */\n+\trte_be16_t version;\n+\t/** The length (in bytes) of the following TLS packet. */\n+\trte_be16_t length;\n+} __rte_packed;\n+\n+#ifdef __cplusplus\n+}\n+#endif\n+\n+#endif /* RTE_TLS_H */\n",
    "prefixes": [
        "RFC",
        "1/3"
    ]
}