get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 82591,
    "url": "http://patches.dpdk.org/api/patches/82591/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1603877633-293405-16-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": "<1603877633-293405-16-git-send-email-suanmingm@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1603877633-293405-16-git-send-email-suanmingm@nvidia.com",
    "date": "2020-10-28T09:33:34",
    "name": "[v5,15/34] net/mlx5: fix redundant Direct Verbs resources allocate",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "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/1603877633-293405-16-git-send-email-suanmingm@nvidia.com/mbox/",
    "series": [
        {
            "id": 13413,
            "url": "http://patches.dpdk.org/api/series/13413/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13413",
            "date": "2020-10-28T09:33:20",
            "name": "[v5,01/34] net/mlx5: use thread safe index pool for flow objects",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/13413/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/82591/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/82591/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 DCD92A04DD;\n\tWed, 28 Oct 2020 10:39:37 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id ED4E5C9EC;\n\tWed, 28 Oct 2020 10:35:11 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 0A366C8E0\n for <dev@dpdk.org>; Wed, 28 Oct 2020 10:34:38 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n suanmingm@nvidia.com) with SMTP; 28 Oct 2020 11:34:32 +0200",
            "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 09S9Y0Rv014036;\n Wed, 28 Oct 2020 11:34:31 +0200"
        ],
        "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, rasland@nvidia.com, stable@dpdk.org",
        "Date": "Wed, 28 Oct 2020 17:33:34 +0800",
        "Message-Id": "<1603877633-293405-16-git-send-email-suanmingm@nvidia.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1603877633-293405-1-git-send-email-suanmingm@nvidia.com>",
        "References": "<1601984948-313027-1-git-send-email-suanmingm@nvidia.com>\n <1603877633-293405-1-git-send-email-suanmingm@nvidia.com>",
        "Subject": "[dpdk-dev] [PATCH v5 15/34] 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 4db5d33..db32b39 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": [
        "v5",
        "15/34"
    ]
}