get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 81883,
    "url": "http://patches.dpdk.org/api/patches/81883/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1603437295-119083-15-git-send-email-suanmingm@nvidia.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": "<1603437295-119083-15-git-send-email-suanmingm@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1603437295-119083-15-git-send-email-suanmingm@nvidia.com",
    "date": "2020-10-23T07:14:44",
    "name": "[v2,14/25] net/mlx5: fix redundant Direct Verbs resources allocate",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "e7d5ada281cb1ed47ad88668fc53ba348a0078df",
    "submitter": {
        "id": 1887,
        "url": "http://patches.dpdk.org/api/people/1887/?format=api",
        "name": "Suanming Mou",
        "email": "suanmingm@nvidia.com"
    },
    "delegate": {
        "id": 3268,
        "url": "http://patches.dpdk.org/api/users/3268/?format=api",
        "username": "rasland",
        "first_name": "Raslan",
        "last_name": "Darawsheh",
        "email": "rasland@nvidia.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1603437295-119083-15-git-send-email-suanmingm@nvidia.com/mbox/",
    "series": [
        {
            "id": 13250,
            "url": "http://patches.dpdk.org/api/series/13250/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13250",
            "date": "2020-10-23T07:14:30",
            "name": "*net/mlx5: support multiple-thread flow operations",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/13250/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/81883/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/81883/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5F0D0A04DE;\n\tFri, 23 Oct 2020 09:21:05 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5A2EBA92D;\n\tFri, 23 Oct 2020 09:16:01 +0200 (CEST)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 7E9F972E3\n for <dev@dpdk.org>; Fri, 23 Oct 2020 09:15:34 +0200 (CEST)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n suanmingm@nvidia.com) with SMTP; 23 Oct 2020 10:15:29 +0300",
            "from nvidia.com (mtbc-r640-04.mtbc.labs.mlnx [10.75.70.9])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 09N7F2LX026736;\n Fri, 23 Oct 2020 10:15:28 +0300"
        ],
        "From": "Suanming Mou <suanmingm@nvidia.com>",
        "To": "Matan Azrad <matan@nvidia.com>, Shahaf Shuler <shahafs@nvidia.com>,\n Viacheslav Ovsiienko <viacheslavo@nvidia.com>",
        "Cc": "dev@dpdk.org, stable@dpdk.org",
        "Date": "Fri, 23 Oct 2020 15:14:44 +0800",
        "Message-Id": "<1603437295-119083-15-git-send-email-suanmingm@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1603437295-119083-1-git-send-email-suanmingm@nvidia.com>",
        "References": "<1601984948-313027-1-git-send-email-suanmingm@nvidia.com>\n <1603437295-119083-1-git-send-email-suanmingm@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH v2 14/25] net/mlx5: fix redundant Direct Verbs\n\tresources allocate",
        "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 <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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "All table, tag, header modify, header reformat are supported only on DV\nmode. For the OFED version doesn't support these, create the related\nredundant DV resources waste the memory.\n\nAdd the code section in the HAVE_IBV_FLOW_DV_SUPPORT macro to avoid the\nredundant resources allocation.\n\nFixes: 2eb4d0107acc (\"net/mlx5: refactor PCI probing on Linux\")\nCc: stable@dpdk.org\nSigned-off-by: Suanming Mou <suanmingm@nvidia.com>\nAcked-by: Matan Azrad <matan@nvidia.com>\n---\n drivers/net/mlx5/linux/mlx5_os.c | 7 +++++--\n 1 file changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/mlx5/linux/mlx5_os.c b/drivers/net/mlx5/linux/mlx5_os.c\nindex 929fed2..6b60d56 100644\n--- a/drivers/net/mlx5/linux/mlx5_os.c\n+++ b/drivers/net/mlx5/linux/mlx5_os.c\n@@ -225,7 +225,7 @@\n mlx5_alloc_shared_dr(struct mlx5_priv *priv)\n {\n \tstruct mlx5_dev_ctx_shared *sh = priv->sh;\n-\tchar s[MLX5_HLIST_NAMESIZE];\n+\tchar s[MLX5_HLIST_NAMESIZE] __rte_unused;\n \tint err;\n \n \tMLX5_ASSERT(sh && sh->refcnt);\n@@ -233,7 +233,9 @@\n \t\treturn 0;\n \terr = mlx5_alloc_table_hash_list(priv);\n \tif (err)\n-\t\treturn err;\n+\t\tgoto error;\n+\t/* The resources below are only valid with DV support. */\n+#ifdef HAVE_IBV_FLOW_DV_SUPPORT\n \t/* Create tags hash list table. */\n \tsnprintf(s, sizeof(s), \"%s_tags\", sh->ibdev_name);\n \tsh->tag_table = mlx5_hlist_create(s, MLX5_TAGS_HLIST_ARRAY_SIZE, 0,\n@@ -260,6 +262,7 @@\n \t\terr = ENOMEM;\n \t\tgoto error;\n \t}\n+#endif\n #ifdef HAVE_MLX5DV_DR\n \tvoid *domain;\n \n",
    "prefixes": [
        "v2",
        "14/25"
    ]
}