get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 132264,
    "url": "http://patches.dpdk.org/api/patches/132264/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20231002124852.76374-1-shibin.koikkara.reeny@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": "<20231002124852.76374-1-shibin.koikkara.reeny@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231002124852.76374-1-shibin.koikkara.reeny@intel.com",
    "date": "2023-10-02T12:48:52",
    "name": "[v4] net/af_xdp: fix missing UMEM feature",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "a90d3ce6c170c571be20624a3e5ef985d443064a",
    "submitter": {
        "id": 2540,
        "url": "http://patches.dpdk.org/api/people/2540/?format=api",
        "name": "Koikkara Reeny, Shibin",
        "email": "shibin.koikkara.reeny@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20231002124852.76374-1-shibin.koikkara.reeny@intel.com/mbox/",
    "series": [
        {
            "id": 29714,
            "url": "http://patches.dpdk.org/api/series/29714/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=29714",
            "date": "2023-10-02T12:48:52",
            "name": "[v4] net/af_xdp: fix missing UMEM feature",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/29714/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/132264/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/132264/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 2B530426A2;\n\tMon,  2 Oct 2023 14:49:01 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id EDA4C40294;\n\tMon,  2 Oct 2023 14:49:00 +0200 (CEST)",
            "from mgamail.intel.com (mgamail.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id ACBC44003C\n for <dev@dpdk.org>; Mon,  2 Oct 2023 14:48:59 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 02 Oct 2023 05:48:58 -0700",
            "from silpixa00401350.ir.intel.com ([10.55.128.166])\n by FMSMGA003.fm.intel.com with ESMTP; 02 Oct 2023 05:48:56 -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=1696250939; x=1727786939;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=9xN+hiNu6qmvuzLzPXw0u/dsQkg6oF7ZpYbKg8QV2k4=;\n b=LVC6YOWcKbUZOB2dKWVTrPIJDNAGYBfZ9fgwgkaZgrekrGgyB33J+8tC\n QDlJTZt/pts6UmrWAA80Nc1KO4FCWjIFMS3gVjLFCcsjn2IqTl/T93fCL\n x9BXD7bJRhK9SI9lrfGdkjAKEUqHwWvWzMrmusVDNXcYeoaQ4hoh0ioO+\n XxGuFk4WMJgWX0h+0ztExzI4gPoeuxXptJhAAw+En048aLbRKlvJH+QKe\n PgKrqszAajp4GJTkNTEz4UJ17+5rErQLiYTjvSZWugd8A2JF4PKJfZbSX\n FLEy83nS3PzrpaV0/Us7pXSLQblW3dvJp40IOBpjavCp+yVLkhiuh65BM A==;",
        "X-IronPort-AV": [
            "E=McAfee;i=\"6600,9927,10851\"; a=\"362901214\"",
            "E=Sophos;i=\"6.03,194,1694761200\"; d=\"scan'208\";a=\"362901214\"",
            "E=McAfee;i=\"6600,9927,10851\"; a=\"840970483\"",
            "E=Sophos;i=\"6.03,194,1694761200\"; d=\"scan'208\";a=\"840970483\""
        ],
        "X-ExtLoop1": "1",
        "From": "Shibin Koikkara Reeny <shibin.koikkara.reeny@intel.com>",
        "To": "dev@dpdk.org,\n\tciara.loftus@intel.com,\n\tbruce.richardson@intel.com",
        "Cc": "qi.z.zhang@intel.com, john.mcnamara@intel.com,\n Shibin Koikkara Reeny <shibin.koikkara.reeny@intel.com>",
        "Subject": "[PATCH v4] net/af_xdp: fix missing UMEM feature",
        "Date": "Mon,  2 Oct 2023 12:48:52 +0000",
        "Message-Id": "<20231002124852.76374-1-shibin.koikkara.reeny@intel.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20230928092553.339452-1-shibin.koikkara.reeny@intel.com>",
        "References": "<20230928092553.339452-1-shibin.koikkara.reeny@intel.com>",
        "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": "Shared UMEM feature is missing in the af_xdp driver build\nafter the commit 33d66940e9ba (\"build: use C11 standard\").\n\nRuntime Error log while using Shared UMEM feature:\nrte_pmd_af_xdp_probe(): Initializing pmd_af_xdp for net_af_xdp0\ninit_internals(): Shared UMEM feature not available. Check kernel\nand libbpf version\nrte_pmd_af_xdp_probe(): Failed to init internals\nvdev_probe(): failed to initialize net_af_xdp0 device\nEAL: Bus (vdev) probe failed.\n\nReason for the missing UMEM feature is because the C11 standard\ndoesn't include the GNU compiler extensions typeof and asm, used\nby the libbpf and libxdp header files.\n\nMeson error log:\n In file included from\ndpdk/build/meson-private/tmpf74nkhqd/testfile.c:5:\n/usr/local/include/bpf/xsk.h: In function 'xsk_prod_nb_free':\n/usr/local/include/bpf/xsk.h:165:26: error: expected ';' before '___p1'\n  165 |         r->cached_cons = libbpf_smp_load_acquire(r->consumer);\n      |                          ^~~~~~~~~~~~~~~~~~~~~~~\n/usr/local/include/bpf/xsk.h:165:26: error: 'asm' undeclared (first use\nin this function)\n...\n/usr/local/include/bpf/xsk.h:199:9: error: unknown type name 'typeof'\n  199 |         libbpf_smp_store_release(prod->producer, *prod->producer\n      + nb);\n      |         ^~~~~~~~~~~~~~~~~~~~~~~~\n\nFix is to provide alternative keywords by using macros [1].\n\nFixes: 33d66940e9ba (\"build: use C11 standard\")\n\n[1] https://gcc.gnu.org/onlinedocs/gcc/C-Dialect-Options.html\n\nv4: Updated the commit message.\nv3: Used alternative keywords fix.\nv2: Added original commit causing the issue.\n\nSigned-off-by: Shibin Koikkara Reeny <shibin.koikkara.reeny@intel.com>\n---\n drivers/net/af_xdp/meson.build | 14 +++++++++++---\n 1 file changed, 11 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/af_xdp/meson.build b/drivers/net/af_xdp/meson.build\nindex 9a8dbb4d49..9f33e57fa2 100644\n--- a/drivers/net/af_xdp/meson.build\n+++ b/drivers/net/af_xdp/meson.build\n@@ -48,6 +48,14 @@ endif\n \n if build\n   xsk_check_prefix = '''\n+#ifndef typeof\n+#define typeof __typeof__\n+#endif\n+\n+#ifndef asm\n+#define asm __asm__\n+#endif\n+\n #ifdef RTE_NET_AF_XDP_LIBXDP\n #include <xdp/xsk.h>\n #else\n@@ -56,17 +64,17 @@ if build\n   '''\n \n   if cc.has_function('xsk_socket__create_shared', prefix : xsk_check_prefix,\n-                     dependencies : ext_deps)\n+                     dependencies : ext_deps, args: cflags)\n       cflags += ['-DRTE_NET_AF_XDP_SHARED_UMEM']\n   endif\n   if cc.has_function('bpf_object__next_program',\n                      prefix : '#include <bpf/libbpf.h>',\n-                     dependencies : bpf_dep)\n+                     dependencies : bpf_dep, args: cflags)\n       cflags += ['-DRTE_NET_AF_XDP_LIBBPF_OBJ_OPEN']\n   endif\n   if cc.has_function('bpf_xdp_attach',\n                      prefix : '#include <bpf/libbpf.h>',\n-                     dependencies : bpf_dep)\n+                     dependencies : bpf_dep, args: cflags)\n       cflags += ['-DRTE_NET_AF_XDP_LIBBPF_XDP_ATTACH']\n   endif\n endif\n",
    "prefixes": [
        "v4"
    ]
}