get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 114613,
    "url": "https://patches.dpdk.org/api/patches/114613/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220804134055.1816993-1-amitprakashs@marvell.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": "<20220804134055.1816993-1-amitprakashs@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220804134055.1816993-1-amitprakashs@marvell.com",
    "date": "2022-08-04T13:40:53",
    "name": "[1/3] test/test_ipsec: compilation fix for GCC-12",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ca67a7d3b778ec4c920a760a8a20e222aa3274f3",
    "submitter": {
        "id": 2699,
        "url": "https://patches.dpdk.org/api/people/2699/?format=api",
        "name": "Amit Prakash Shukla",
        "email": "amitprakashs@marvell.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/20220804134055.1816993-1-amitprakashs@marvell.com/mbox/",
    "series": [
        {
            "id": 24203,
            "url": "https://patches.dpdk.org/api/series/24203/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24203",
            "date": "2022-08-04T13:40:53",
            "name": "[1/3] test/test_ipsec: compilation fix for GCC-12",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/24203/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/114613/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/114613/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 97181A00C4;\n\tThu,  4 Aug 2022 15:41:08 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8672142BCA;\n\tThu,  4 Aug 2022 15:41:08 +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 270174282B\n for <dev@dpdk.org>; Thu,  4 Aug 2022 15:41:07 +0200 (CEST)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 2747fx7t012701;\n Thu, 4 Aug 2022 06:41:06 -0700",
            "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3hqp04nsyu-2\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 04 Aug 2022 06:41:06 -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.18;\n Thu, 4 Aug 2022 06:41:05 -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, 4 Aug 2022 06:41:05 -0700",
            "from localhost.localdomain (unknown [10.28.36.157])\n by maili.marvell.com (Postfix) with ESMTP id 273305B694F;\n Thu,  4 Aug 2022 06:41:02 -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 : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=0yfQJnKzpNn82gViBDo8+GLW2aBz0DbpXSVEgpPTjWQ=;\n b=ijAYZ4qZTQfvzTyHgtEoIAqNegv/OrTHK3jUIkDd/A7QuTkgCq6ZwhDb1380or0ZI9RL\n gymZKqTp8wwH4jI2YERxy/hxftjLHkvVb5Cbpl7ciDmpg/Ad6hxHnM1F1sOOkPGXpg8s\n bT1Kar5PPm6sScofoqAsvuhI0k5hg6JdOnqz9oTKYTigYixV9DXQ2JuRkwyuifs1c9dh\n hFoEYQ7Og+RFe/reZuuWV/9FcyIQdyAPm3DR9SdhttYGoyH8ve9cIAN/pg6ug+qaFa3d\n Gu8muza8erqaAdOsua50H7sb3zHzp4OXmPat3geSJTHGZDsPLx6+ZnRJmHXyViVzu4H+ vg==",
        "From": "Amit Prakash Shukla <amitprakashs@marvell.com>",
        "To": "Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>, Bernard Iremonger\n <bernard.iremonger@intel.com>, Vladimir Medvedkin\n <vladimir.medvedkin@intel.com>",
        "CC": "<dev@dpdk.org>, <jerinj@marvell.com>, Amit Prakash Shukla\n <amitprakashs@marvell.com>",
        "Subject": "[PATCH 1/3] test/test_ipsec: compilation fix for GCC-12",
        "Date": "Thu, 4 Aug 2022 19:10:53 +0530",
        "Message-ID": "<20220804134055.1816993-1-amitprakashs@marvell.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "Tj83wwjFPKc-yy-81p8xPFCGewS6PImF",
        "X-Proofpoint-ORIG-GUID": "Tj83wwjFPKc-yy-81p8xPFCGewS6PImF",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1\n definitions=2022-08-04_03,2022-08-04_02,2022-06-22_01",
        "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": "GCC-12 raises following warning:\n\np/test/dpdk-test.p/test_ipsec.c.o -c ../app/test/test_ipsec.c\nIn file included from ../lib/eal/x86/include/rte_atomic.h:15,\n                 from ../lib/eal/include/generic/rte_pause.h:19,\n                 from ../lib/eal/x86/include/rte_pause.h:12,\n                 from ../lib/eal/include/generic/rte_spinlock.h:25,\n                 from ../lib/eal/x86/include/rte_spinlock.h:12,\n                 from ../lib/mempool/rte_mempool.h:43,\n                 from ../lib/mbuf/rte_mbuf.h:38,\n                 from ../app/test/test_ipsec.c:9:\nIn function '_mm_loadu_si128',\n    inlined from 'rte_mov16' at\n\t../lib/eal/x86/include/rte_memcpy.h:507:9,\n    inlined from 'rte_mov128' at\n\t../lib/eal/x86/include/rte_memcpy.h:549:2,\n    inlined from 'rte_memcpy_generic' at\n\t../lib/eal/x86/include/rte_memcpy.h:732:4,\n    inlined from 'rte_memcpy' at\n\t../lib/eal/x86/include/rte_memcpy.h:882:10,\n    inlined from 'setup_test_string_tunneled' at\n\t../app/test/test_ipsec.c:617:3:\n/usr/lib/gcc/x86_64-pc-linux-gnu/12.1.1/include/emmintrin.h:703:10: error:\n    array subscript '__m128i_u[15]' is partly outside array bounds of\n    'const uint8_t[255]' {aka 'const unsigned char[255]'}\n    [-Werror=array-bounds]\n  703 |   return *__P;\n      |          ^~~~\n../app/test/test_ipsec.c: In function 'setup_test_string_tunneled':\n../app/test/test_ipsec.c:491:22: note: at offset 240 into object\n     'esp_pad_bytes' of size 255\n  491 | static const uint8_t esp_pad_bytes[IPSEC_MAX_PAD_SIZE] = {\n\nRestrict copy to minimum size.\n\nSigned-off-by: Amit Prakash Shukla <amitprakashs@marvell.com>\n---\n app/test/test_ipsec.c | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/app/test/test_ipsec.c b/app/test/test_ipsec.c\nindex bc2a3dbc2e..8fad093dee 100644\n--- a/app/test/test_ipsec.c\n+++ b/app/test/test_ipsec.c\n@@ -614,7 +614,8 @@ setup_test_string_tunneled(struct rte_mempool *mpool, const char *string,\n \t\trte_memcpy(dst, string, len);\n \t\tdst += len;\n \t\t/* copy pad bytes */\n-\t\trte_memcpy(dst, esp_pad_bytes, padlen);\n+\t\trte_memcpy(dst, esp_pad_bytes, RTE_MIN(padlen,\n+\t\t\tsizeof(esp_pad_bytes)));\n \t\tdst += padlen;\n \t\t/* copy ESP tail header */\n \t\trte_memcpy(dst, &espt, sizeof(espt));\n",
    "prefixes": [
        "1/3"
    ]
}