get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 112725,
    "url": "https://patches.dpdk.org/api/patches/112725/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220614124313.1562369-1-radu.nicolau@intel.com/",
    "project": {
        "id": 1,
        "url": "https://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": "<20220614124313.1562369-1-radu.nicolau@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220614124313.1562369-1-radu.nicolau@intel.com",
    "date": "2022-06-14T12:43:13",
    "name": "examples/ipsec-secgw: fix ESN setting",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "f320394c658213873202cedd0689aed28407ac87",
    "submitter": {
        "id": 743,
        "url": "https://patches.dpdk.org/api/people/743/?format=api",
        "name": "Radu Nicolau",
        "email": "radu.nicolau@intel.com"
    },
    "delegate": {
        "id": 6690,
        "url": "https://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220614124313.1562369-1-radu.nicolau@intel.com/mbox/",
    "series": [
        {
            "id": 23519,
            "url": "https://patches.dpdk.org/api/series/23519/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=23519",
            "date": "2022-06-14T12:43:13",
            "name": "examples/ipsec-secgw: fix ESN setting",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/23519/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/112725/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/112725/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 C0644A0093;\n\tTue, 14 Jun 2022 14:43:22 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5F2B840A81;\n\tTue, 14 Jun 2022 14:43:22 +0200 (CEST)",
            "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 17DBA4069C;\n Tue, 14 Jun 2022 14:43:18 +0200 (CEST)",
            "from fmsmga006.fm.intel.com ([10.253.24.20])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Jun 2022 05:43:17 -0700",
            "from silpixa00400884.ir.intel.com ([10.243.22.82])\n by fmsmga006.fm.intel.com with ESMTP; 14 Jun 2022 05:43:16 -0700"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1655210600; x=1686746600;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=WCre41A1HKxamu/1ETPx0MLUDzPb9INtN2ENXQZ6nPY=;\n b=fGIdh40uolky1N8Cjd4zjexA5UJKqQ9n0QyZxpG2esh4VRPPitPyz0eq\n uAwxrJNRhfdZSf10zpUa32Ahw2+4Bp/QrQst/fVXp0vNufjN4ZrGaPTQQ\n dx2RyiuTM2LF8A8MjEFc8HDYqaY8jaPwMI7Zr8v8xd7wOcl/O4MAOHjyw\n FKkdNhP7B4++HmNI5H5+9LwPyZEC/Z4TM8hlcLtNX0YUq4bWinjFRuxwo\n GOMaJcGjLUIkQ5LEBYCY9I8ma34X6lQ4sk9hHaxmoOrUIz2NQVUS5UGwi\n nNpYNZf7MOrmErvO0H6y8/qcfJ8XccuCsmR+37mq1pUVzNlke9VPzGWwW g==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6400,9594,10377\"; a=\"258441571\"",
            "E=Sophos;i=\"5.91,300,1647327600\"; d=\"scan'208\";a=\"258441571\"",
            "E=Sophos;i=\"5.91,300,1647327600\"; d=\"scan'208\";a=\"830403677\""
        ],
        "X-ExtLoop1": "1",
        "From": "Radu Nicolau <radu.nicolau@intel.com>",
        "To": "Radu Nicolau <radu.nicolau@intel.com>,\n\tAkhil Goyal <gakhil@marvell.com>",
        "Cc": "dev@dpdk.org,\n\tstable@dpdk.org",
        "Subject": "[PATCH] examples/ipsec-secgw: fix ESN setting",
        "Date": "Tue, 14 Jun 2022 13:43:13 +0100",
        "Message-Id": "<20220614124313.1562369-1-radu.nicolau@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "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": "Fix ESN option flag and initial value for the rte_ipsec library path.\n\nFixes: 560029d5cfc9 (\"examples/ipsec-secgw: define initial ESN value\")\nCc: stable@dpdk.org\n\nSigned-off-by: Radu Nicolau <radu.nicolau@intel.com>\n---\n examples/ipsec-secgw/sa.c | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/examples/ipsec-secgw/sa.c b/examples/ipsec-secgw/sa.c\nindex 0b27f11fc0..8505a676ef 100644\n--- a/examples/ipsec-secgw/sa.c\n+++ b/examples/ipsec-secgw/sa.c\n@@ -1488,6 +1488,11 @@ fill_ipsec_sa_prm(struct rte_ipsec_sa_prm *prm, const struct ipsec_sa *ss,\n \tprm->ipsec_xform.options.ecn = 1;\n \tprm->ipsec_xform.options.copy_dscp = 1;\n \n+\tif (ss->esn > 0) {\n+\t\tprm->ipsec_xform.options.esn = 1;\n+\t\tprm->ipsec_xform.esn.value = ss->esn;\n+\t}\n+\n \tif (IS_IP4_TUNNEL(ss->flags)) {\n \t\tprm->ipsec_xform.tunnel.type = RTE_SECURITY_IPSEC_TUNNEL_IPV4;\n \t\tprm->tun.hdr_len = sizeof(*v4);\n",
    "prefixes": []
}