get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 52368,
    "url": "https://patches.dpdk.org/api/patches/52368/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20190406142737.20091-1-jerinj@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": "<20190406142737.20091-1-jerinj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20190406142737.20091-1-jerinj@marvell.com",
    "date": "2019-04-06T14:27:34",
    "name": "[v7,1/4] mk: introduce helper to check valid compiler argument",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1982f87e8f2d14a58871b21f9753fa803545059c",
    "submitter": {
        "id": 1270,
        "url": "https://patches.dpdk.org/api/people/1270/?format=api",
        "name": "Jerin Jacob",
        "email": "jerinjacobk@gmail.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20190406142737.20091-1-jerinj@marvell.com/mbox/",
    "series": [
        {
            "id": 4152,
            "url": "https://patches.dpdk.org/api/series/4152/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=4152",
            "date": "2019-04-06T14:27:34",
            "name": "[v7,1/4] mk: introduce helper to check valid compiler argument",
            "version": 7,
            "mbox": "https://patches.dpdk.org/series/4152/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/52368/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/52368/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 9DAFA3576;\n\tSat,  6 Apr 2019 16:28:25 +0200 (CEST)",
            "from mail-pf1-f195.google.com (mail-pf1-f195.google.com\n\t[209.85.210.195]) by dpdk.org (Postfix) with ESMTP id 392BD34F3\n\tfor <dev@dpdk.org>; Sat,  6 Apr 2019 16:28:24 +0200 (CEST)",
            "by mail-pf1-f195.google.com with SMTP id w25so3454008pfi.9\n\tfor <dev@dpdk.org>; Sat, 06 Apr 2019 07:28:24 -0700 (PDT)",
            "from jerin.caveonetworks.com ([223.226.40.87])\n\tby smtp.gmail.com with ESMTPSA id\n\to5sm84199008pfa.135.2019.04.06.07.28.20\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSat, 06 Apr 2019 07:28:22 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=5+XZ9MpJ57nnOoZqvrcM9a7WTriq2hN1jRkmPvgLpd0=;\n\tb=BjnuTRMIN318k+8c6YJnHIbpITZUqbC8v2S7+VpqeCgqQ2kAA/PFqbFjtEa6z6BIny\n\ttCXDnjIo2o0yQ7JDUO9AOKMwu2EauCzMpMYxlr4Bszbm6PRenpPEn0Sy4jG2m8OupMiu\n\tRYjlc6TNDtMTfwCdw9G59kWXDVYDojDtuQnWlFCERQoYyji012QanttSlzp4LKwliDnc\n\tOe4LpjMAQk99dHlc5MFErei28TfX9Edy6QZuBLOROLSahTV9dyQlB+jkrZr7ut6pkpor\n\tYrdpAKwMcaxDqcguE4BpIfivs9W1Ee8FB4D2Yr1JLm+63rIWlmhjg2x/vW6pf7qD9FH+\n\t38Zg==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=5+XZ9MpJ57nnOoZqvrcM9a7WTriq2hN1jRkmPvgLpd0=;\n\tb=mdqsUgfQG1Xt33uZZnpqUXCfV0p9R/0Z2RC+z6T2x7KIml1Pzv3oEKe3rXEkEiu9Rw\n\tV+fi2OoMTwhgPDCLXpO4IOTfuTNFvriv9YVANWp1uEegDQ1l0OYT3tEfyYRFPSGQp3tn\n\tGrZrFhqMtVf5JUAWGgWgGS9nXhOrSeaLnnfPS+70jIz/aRrqr5Da+fO3uqeiPeCIwDzo\n\tvoltgsNaljXx4M5ln3qc/iHUldRB9PMx3Z9er0x7he/MdCHzeaZTcfz00mAaFZvCU+eZ\n\tPxJy44dXbTdXe/tKKEyCzjjTL+rQbodmLNPErfQlRub5qif7tOjShZd5TF5lSLAtyFGi\n\tULbw==",
        "X-Gm-Message-State": "APjAAAXWg9PmMs/+/ItHArtRb10XWU6FiBKtLJgnCiO0dKrlHyCU/0Ye\n\toEsykek9YGGzniXP2gHCDOHBgR3BND8=",
        "X-Google-Smtp-Source": "APXvYqxxY/cFZL5LvxKEAhJ43Oj937Llhpg8xdvzohS0uFITUa3jYvmeIvd9+/LjN7PPlQuw3cPbTg==",
        "X-Received": "by 2002:aa7:9a89:: with SMTP id\n\tw9mr11546360pfi.213.1554560903178; \n\tSat, 06 Apr 2019 07:28:23 -0700 (PDT)",
        "From": "jerinjacobk@gmail.com",
        "X-Google-Original-From": "jerinj@marvell.com",
        "To": "Thomas Monjalon <thomas@monjalon.net>",
        "Cc": "dev@dpdk.org, Jerin Jacob <jerinj@marvell.com>,\n\tPavan Nikhilesh <pbhagavatula@marvell.com>",
        "Date": "Sat,  6 Apr 2019 19:57:34 +0530",
        "Message-Id": "<20190406142737.20091-1-jerinj@marvell.com>",
        "X-Mailer": "git-send-email 2.21.0",
        "In-Reply-To": "<20190318164949.2357-1-jerinj@marvell.com>",
        "References": "<20190318164949.2357-1-jerinj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v7 1/4] mk: introduce helper to check valid\n\tcompiler argument",
        "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": "From: Jerin Jacob <jerinj@marvell.com>\n\nIntroduce rte_cc_has_argument() Makefile helper to\ncheck a given argument is support by the compiler.\n\nExample Usage:\n\ninclude $(RTE_SDK)/mk/rte.helper.mk\nMACHINE_CFLAGS += $(call rte_cc_has_argument, -mcpu=octeontx2)\n\nThis would allow adding -mcpu=octeontx2 in MACHINE_CFLAGS\nif it is only supported by the compiler. The use case for such\nscheme is to enable the mcpu optimization if the compiler\nsupports else it needs to compile the source code without\nany errors.\n\nThis patch also moves inclusion of toolchain's rte.vars.mk\nto before the machine's rte.vars.mk inclusion to make\ncorrect CC available for the cross compile case.\n\nSigned-off-by: Jerin Jacob <jerinj@marvell.com>\nSigned-off-by: Pavan Nikhilesh <pbhagavatula@marvell.com>\n---\n\nChange history of this series:\n\nv7 Changes:\n - Updated cross compile config files align with \n\"build: improve pcap dependency handling\" changeset to fix build issue with meson\n\n - Some compiler needs the following depended patch to compile with meson\n   http://patches.dpdk.org/patch/52367/\n\nv6 Changes:\n - Rework to change the config files to sync with \"mk: use linux and freebsd in config names\"\n - Fix the following error with latest gcc by fixing the mcpu type\n   cc1: error: switch -mcpu=armv8.2-a conflicts with -march=armv8-a switch \n\nv5 Changes:\n - Fix incorrect meson flag parsing(Phil Yang)\n - Squash meson cross build patch(5/5) into configuration update patches for\n thunderx2(3/5) and octeontx2(4/5)(Thomas)\n - Changed octeontx2's march as armv8-a and added the extension required\n   instead of armv8-2a(Phil Yang)\n - Improved rte_cc_has_argument() implementaion by removing the temp\n   file(Thomas)\n\nv4 Changes:\n - Fix incorrect signoff marrvell -> marvell.\n\nv3 Changes:\n - Squash meson build support into config support for thunderx2/octeontx2.\n\nv2 Changes:\n - Add meson build support.\n\n---\n mk/rte.helper.mk              | 10 ++++++++++\n mk/target/generic/rte.vars.mk | 22 +++++++++++-----------\n 2 files changed, 21 insertions(+), 11 deletions(-)\n create mode 100644 mk/rte.helper.mk",
    "diff": "diff --git a/mk/rte.helper.mk b/mk/rte.helper.mk\nnew file mode 100644\nindex 000000000..6e7fd03d7\n--- /dev/null\n+++ b/mk/rte.helper.mk\n@@ -0,0 +1,10 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright(c) 2018 Marvell International Ltd\n+\n+# rte_cc_has_argument\n+# Usage: MACHINE_CFLAGS += $(call rte_cc_has_argument, -mno-avx512f)\n+# Return the argument if the argument is supported by the compiler.\n+#\n+define rte_cc_has_argument\n+\t$(shell $(CC) -E $(1) -xc /dev/null 1>/dev/null 2>/dev/null && echo $(1))\n+endef\ndiff --git a/mk/target/generic/rte.vars.mk b/mk/target/generic/rte.vars.mk\nindex dd149acc9..25a578ad7 100644\n--- a/mk/target/generic/rte.vars.mk\n+++ b/mk/target/generic/rte.vars.mk\n@@ -7,6 +7,17 @@\n # executive environment.\n #\n \n+#\n+# toolchain:\n+#\n+#   - define CC, LD, AR, AS, ...\n+#   - define TOOLCHAIN_CFLAGS variable (overridden by cmdline value)\n+#   - define TOOLCHAIN_LDFLAGS variable (overridden by cmdline value)\n+#   - define TOOLCHAIN_ASFLAGS variable (overridden by cmdline value)\n+#   - may override any previously defined variable\n+#\n+include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.vars.mk\n+\n #\n # machine:\n #\n@@ -45,17 +56,6 @@ endif\n #\n include $(RTE_SDK)/mk/arch/$(RTE_ARCH)/rte.vars.mk\n \n-#\n-# toolchain:\n-#\n-#   - define CC, LD, AR, AS, ...\n-#   - define TOOLCHAIN_CFLAGS variable (overridden by cmdline value)\n-#   - define TOOLCHAIN_LDFLAGS variable (overridden by cmdline value)\n-#   - define TOOLCHAIN_ASFLAGS variable (overridden by cmdline value)\n-#   - may override any previously defined variable\n-#\n-include $(RTE_SDK)/mk/toolchain/$(RTE_TOOLCHAIN)/rte.vars.mk\n-\n #\n # exec-env:\n #\n",
    "prefixes": [
        "v7",
        "1/4"
    ]
}