get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 55597,
    "url": "http://patches.dpdk.org/api/patches/55597/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1561728562-11213-2-git-send-email-bernard.iremonger@intel.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": "<1561728562-11213-2-git-send-email-bernard.iremonger@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1561728562-11213-2-git-send-email-bernard.iremonger@intel.com",
    "date": "2019-06-28T13:29:21",
    "name": "[1/2] test/ipsec: fix teardown function",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "a385e631b7859c54c2709533050dca4b0858ca3f",
    "submitter": {
        "id": 91,
        "url": "http://patches.dpdk.org/api/people/91/?format=api",
        "name": "Iremonger, Bernard",
        "email": "bernard.iremonger@intel.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/1561728562-11213-2-git-send-email-bernard.iremonger@intel.com/mbox/",
    "series": [
        {
            "id": 5223,
            "url": "http://patches.dpdk.org/api/series/5223/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5223",
            "date": "2019-06-28T13:29:20",
            "name": "test/ipsec: fixes",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/5223/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/55597/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/55597/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3CE48559A;\n\tFri, 28 Jun 2019 15:29:34 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id 6E6EB4CA6;\n\tFri, 28 Jun 2019 15:29:32 +0200 (CEST)",
            "from orsmga007.jf.intel.com ([10.7.209.58])\n\tby fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t28 Jun 2019 06:29:31 -0700",
            "from sivswdev08.ir.intel.com (HELO localhost.localdomain)\n\t([10.237.217.47])\n\tby orsmga007.jf.intel.com with ESMTP; 28 Jun 2019 06:29:30 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.63,427,1557212400\"; d=\"scan'208\";a=\"153371711\"",
        "From": "Bernard Iremonger <bernard.iremonger@intel.com>",
        "To": "dev@dpdk.org,\n\tkonstantin.ananyev@intel.com,\n\takhil.goyal@nxp.com",
        "Cc": "Bernard Iremonger <bernard.iremonger@intel.com>,\n\tstable@dpdk.org",
        "Date": "Fri, 28 Jun 2019 14:29:21 +0100",
        "Message-Id": "<1561728562-11213-2-git-send-email-bernard.iremonger@intel.com>",
        "X-Mailer": "git-send-email 1.7.0.7",
        "In-Reply-To": "<1561728562-11213-1-git-send-email-bernard.iremonger@intel.com>",
        "References": "<1561728562-11213-1-git-send-email-bernard.iremonger@intel.com>",
        "Subject": "[dpdk-dev] [PATCH 1/2] test/ipsec: fix teardown function",
        "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Set freed cop pointers to NULL\nSet other freed pointers to NULL instead of 0\n\nFixes: 05fe65eb66b2 (\"test/ipsec: introduce functional test\")\nCc: stable@dpdk.org\nSigned-off-by: Bernard Iremonger <bernard.iremonger@intel.com>\n---\n app/test/test_ipsec.c | 12 +++++++-----\n 1 file changed, 7 insertions(+), 5 deletions(-)",
    "diff": "diff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c\nindex 5389a59..2328342 100644\n--- a/app/test/test_ipsec.c\n+++ b/app/test/test_ipsec.c\n@@ -451,8 +451,10 @@ ut_teardown(void)\n \n \tfor (i = 0; i < BURST_SIZE; i++) {\n \t\t/* free crypto operation structure */\n-\t\tif (ut_params->cop[i])\n+\t\tif (ut_params->cop[i]) {\n \t\t\trte_crypto_op_free(ut_params->cop[i]);\n+\t\t\tut_params->cop[i] = NULL;\n+\t\t}\n \n \t\t/*\n \t\t * free mbuf - both obuf and ibuf are usually the same,\n@@ -462,17 +464,17 @@ ut_teardown(void)\n \t\tif (ut_params->obuf[i]) {\n \t\t\trte_pktmbuf_free(ut_params->obuf[i]);\n \t\t\tif (ut_params->ibuf[i] == ut_params->obuf[i])\n-\t\t\t\tut_params->ibuf[i] = 0;\n-\t\t\tut_params->obuf[i] = 0;\n+\t\t\t\tut_params->ibuf[i] = NULL;\n+\t\t\tut_params->obuf[i] = NULL;\n \t\t}\n \t\tif (ut_params->ibuf[i]) {\n \t\t\trte_pktmbuf_free(ut_params->ibuf[i]);\n-\t\t\tut_params->ibuf[i] = 0;\n+\t\t\tut_params->ibuf[i] = NULL;\n \t\t}\n \n \t\tif (ut_params->testbuf[i]) {\n \t\t\trte_pktmbuf_free(ut_params->testbuf[i]);\n-\t\t\tut_params->testbuf[i] = 0;\n+\t\t\tut_params->testbuf[i] = NULL;\n \t\t}\n \t}\n \n",
    "prefixes": [
        "1/2"
    ]
}