get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 128373,
    "url": "http://patches.dpdk.org/api/patches/128373/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230608065458.333670-3-gakhil@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": "<20230608065458.333670-3-gakhil@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20230608065458.333670-3-gakhil@marvell.com",
    "date": "2023-06-08T06:54:47",
    "name": "[v3,02/13] security: add MACsec packet number threshold",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "90058b7ef7dc2cc1bca8c394b57b50ff4494c9e4",
    "submitter": {
        "id": 2094,
        "url": "http://patches.dpdk.org/api/people/2094/?format=api",
        "name": "Akhil Goyal",
        "email": "gakhil@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/20230608065458.333670-3-gakhil@marvell.com/mbox/",
    "series": [
        {
            "id": 28406,
            "url": "http://patches.dpdk.org/api/series/28406/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28406",
            "date": "2023-06-08T06:54:50",
            "name": "Add MACsec unit test cases",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/28406/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/128373/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/128373/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 41C8542C5A;\n\tThu,  8 Jun 2023 08:55:42 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B88E742C76;\n\tThu,  8 Jun 2023 08:55:32 +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 5E7EC40A84\n for <dev@dpdk.org>; Thu,  8 Jun 2023 08:55:29 +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 357LwAdZ023531; Wed, 7 Jun 2023 23:55:26 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3r329c1jsf-3\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Wed, 07 Jun 2023 23:55:26 -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 Wed, 7 Jun 2023 23:55:11 -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; Wed, 7 Jun 2023 23:55:11 -0700",
            "from localhost.localdomain (unknown [10.28.36.102])\n by maili.marvell.com (Postfix) with ESMTP id 507BD3F703F;\n Wed,  7 Jun 2023 23:55:08 -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=/te6SjN+49DdP6sPClyO7QlARO0aWlJ/UKPWoUWMVa0=;\n b=WazSsqy+HnHx5+WoZ6VCGyhHcpRtfGk2So/wMiJ5mBL2+i1FPb0n8THubmf4lY1zRvcO\n A+WFOb+Gdmo1To8QcHkXqVfVZtvYKQm9PiC5Cm+yCjDbjFli/Ntf8C1Hvf6CM+/6lsns\n e6CG2GVB0RviKdOGv/HtrlaCSsMTwIsPTfuyukdKulGMVuCTd1R2gBjXXBXdmSDFQ5W+\n 0As3VqnkCkTu0aRPFdNDE6pHZ6iYuamAvj5OywVfXXMfgbZe8jW1xQ3Xf79Kv+UbDgnf\n wygQmNMtQj8l57M719lImnZljQWCaKaY7tDZxEl55eb+Uhj2/EIHwmwjINBao/UYEf/l yA==",
        "From": "Akhil Goyal <gakhil@marvell.com>",
        "To": "<dev@dpdk.org>",
        "CC": "<thomas@monjalon.net>, <olivier.matz@6wind.com>, <orika@nvidia.com>,\n <david.marchand@redhat.com>, <hemant.agrawal@nxp.com>,\n <vattunuru@marvell.com>, <ferruh.yigit@amd.com>,\n <andrew.rybchenko@oktetlabs.ru>, <jerinj@marvell.com>,\n <adwivedi@marvell.com>, Akhil Goyal <gakhil@marvell.com>",
        "Subject": "[PATCH v3 02/13] security: add MACsec packet number threshold",
        "Date": "Thu, 8 Jun 2023 12:24:47 +0530",
        "Message-ID": "<20230608065458.333670-3-gakhil@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230608065458.333670-1-gakhil@marvell.com>",
        "References": "<20230607151940.223417-1-gakhil@marvell.com>\n <20230608065458.333670-1-gakhil@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "ixhs8e4hJHoqfFihC5YsMHZ4wu4QNkN2",
        "X-Proofpoint-ORIG-GUID": "ixhs8e4hJHoqfFihC5YsMHZ4wu4QNkN2",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.176.26\n definitions=2023-06-08_04,2023-06-07_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": "Added Packet number threshold parameter in MACsec SC\nconfiguration to identify the maximum allowed threshold\nfor packet number field in the packet.\nA field is_xpn is also added to identify if the SAs are\nconfigured for extended packet number or not so that\npacket number threshold can be configured accordingly.\n\nSigned-off-by: Akhil Goyal <gakhil@marvell.com>\n---\n lib/security/rte_security.h | 10 ++++++++--\n 1 file changed, 8 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/lib/security/rte_security.h b/lib/security/rte_security.h\nindex c7a523b6d6..30bac4e25a 100644\n--- a/lib/security/rte_security.h\n+++ b/lib/security/rte_security.h\n@@ -399,6 +399,8 @@ struct rte_security_macsec_sa {\n struct rte_security_macsec_sc {\n \t/** Direction of SC */\n \tenum rte_security_macsec_direction dir;\n+\t/** Packet number threshold */\n+\tuint64_t pn_threshold;\n \tunion {\n \t\tstruct {\n \t\t\t/** SAs for each association number */\n@@ -407,8 +409,10 @@ struct rte_security_macsec_sc {\n \t\t\tuint8_t sa_in_use[RTE_SECURITY_MACSEC_NUM_AN];\n \t\t\t/** Channel is active */\n \t\t\tuint8_t active : 1;\n+\t\t\t/** Extended packet number is enabled for SAs */\n+\t\t\tuint8_t is_xpn : 1;\n \t\t\t/** Reserved bitfields for future */\n-\t\t\tuint8_t reserved : 7;\n+\t\t\tuint8_t reserved : 6;\n \t\t} sc_rx;\n \t\tstruct {\n \t\t\tuint16_t sa_id; /**< SA ID to be used for encryption */\n@@ -416,8 +420,10 @@ struct rte_security_macsec_sc {\n \t\t\tuint64_t sci; /**< SCI value to be used if send_sci is set */\n \t\t\tuint8_t active : 1; /**< Channel is active */\n \t\t\tuint8_t re_key_en : 1; /**< Enable Rekeying */\n+\t\t\t/** Extended packet number is enabled for SAs */\n+\t\t\tuint8_t is_xpn : 1;\n \t\t\t/** Reserved bitfields for future */\n-\t\t\tuint8_t reserved : 6;\n+\t\t\tuint8_t reserved : 5;\n \t\t} sc_tx;\n \t};\n };\n",
    "prefixes": [
        "v3",
        "02/13"
    ]
}