get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 74288,
    "url": "http://patches.dpdk.org/api/patches/74288/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1594969911-105341-7-git-send-email-bingz@mellanox.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": "<1594969911-105341-7-git-send-email-bingz@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1594969911-105341-7-git-send-email-bingz@mellanox.com",
    "date": "2020-07-17T07:11:50",
    "name": "[v4,6/7] net/mlx5: add eCPRI flex parser capacity check",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "68af3425b0ba1d7d8c61c44d1f1f845d7e2e7b33",
    "submitter": {
        "id": 1357,
        "url": "http://patches.dpdk.org/api/people/1357/?format=api",
        "name": "Bing Zhao",
        "email": "bingz@mellanox.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/1594969911-105341-7-git-send-email-bingz@mellanox.com/mbox/",
    "series": [
        {
            "id": 11119,
            "url": "http://patches.dpdk.org/api/series/11119/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11119",
            "date": "2020-07-17T07:11:44",
            "name": "add eCPRI support in mlx5 driver",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/11119/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/74288/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/74288/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 A4059A0528;\n\tFri, 17 Jul 2020 09:13:02 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 5B8B01BF83;\n\tFri, 17 Jul 2020 09:12:16 +0200 (CEST)",
            "from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130])\n by dpdk.org (Postfix) with ESMTP id 071131BF7F\n for <dev@dpdk.org>; Fri, 17 Jul 2020 09:12:11 +0200 (CEST)"
        ],
        "From": "Bing Zhao <bingz@mellanox.com>",
        "To": "orika@mellanox.com,\n\tviacheslavo@mellanox.com",
        "Cc": "rasland@mellanox.com, matan@mellanox.com, dev@dpdk.org,\n netanelg@mellanox.com",
        "Date": "Fri, 17 Jul 2020 15:11:50 +0800",
        "Message-Id": "<1594969911-105341-7-git-send-email-bingz@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1594969911-105341-1-git-send-email-bingz@mellanox.com>",
        "References": "<1594909426-64843-1-git-send-email-bingz@mellanox.com>\n <1594969911-105341-1-git-send-email-bingz@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v4 6/7] net/mlx5: add eCPRI flex parser capacity\n\tcheck",
        "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": "If the NIC or the FW does not support the dynamic flex parser,\nit will return error when trying to create the parser for eCRPI.\nThen it is hard to know the detail error reason of the failure.\nBefore creating the parser node and the following usage of the\nparser, the capacity bit saved in the HCA_CAP could be used to\nconfirm if the dynamic flex parser is supported.\nIf no, an error will be returned directly with ENOTSUP to prevent\nthe following steps to be executed.\n\nSigned-off-by: Bing Zhao <bingz@mellanox.com>\nAcked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\n---\nv3: fix the wrong member name in the private structure.\n---\n drivers/net/mlx5/mlx5.c | 5 +++++\n 1 file changed, 5 insertions(+)",
    "diff": "diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c\nindex 8fcb78a..723c1dd 100644\n--- a/drivers/net/mlx5/mlx5.c\n+++ b/drivers/net/mlx5/mlx5.c\n@@ -649,6 +649,11 @@ struct mlx5_flow_id_pool *\n \tuint32_t ids[8];\n \tint ret;\n \n+\tif (!priv->config.hca_attr.parse_graph_flex_node) {\n+\t\tDRV_LOG(ERR, \"Dynamic flex parser is not supported \"\n+\t\t\t\"for device %s.\", priv->dev_data->name);\n+\t\treturn -ENOTSUP;\n+\t}\n \tnode.header_length_mode = MLX5_GRAPH_NODE_LEN_FIXED;\n \t/* 8 bytes now: 4B common header + 4B message body header. */\n \tnode.header_length_base_value = 0x8;\n",
    "prefixes": [
        "v4",
        "6/7"
    ]
}