get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 74241,
    "url": "http://patches.dpdk.org/api/patches/74241/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1594907399-63329-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": "<1594907399-63329-7-git-send-email-bingz@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1594907399-63329-7-git-send-email-bingz@mellanox.com",
    "date": "2020-07-16T13:49:58",
    "name": "[v2,6/7] net/mlx5: add eCPRI flex parser capacity check",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "888c23ec3bd585dcc4d22f952c66d59db9d8752f",
    "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/1594907399-63329-7-git-send-email-bingz@mellanox.com/mbox/",
    "series": [
        {
            "id": 11096,
            "url": "http://patches.dpdk.org/api/series/11096/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11096",
            "date": "2020-07-16T13:49:52",
            "name": "add eCPRI support in mlx5 driver",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/11096/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/74241/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/74241/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 14E4CA054B;\n\tThu, 16 Jul 2020 15:51:41 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 15D6C1D607;\n\tThu, 16 Jul 2020 15:50:30 +0200 (CEST)",
            "from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130])\n by dpdk.org (Postfix) with ESMTP id 4CDCA1D5E9\n for <dev@dpdk.org>; Thu, 16 Jul 2020 15:50:24 +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": "Thu, 16 Jul 2020 21:49:58 +0800",
        "Message-Id": "<1594907399-63329-7-git-send-email-bingz@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1594907399-63329-1-git-send-email-bingz@mellanox.com>",
        "References": "<1594219387-240274-1-git-send-email-bingz@mellanox.com>\n <1594907399-63329-1-git-send-email-bingz@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v2 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>\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 aec0173..eaa2d3e 100644\n--- a/drivers/net/mlx5/mlx5.c\n+++ b/drivers/net/mlx5/mlx5.c\n@@ -636,6 +636,11 @@ mlx5_flex_parser_ecpri_alloc(struct rte_eth_dev *dev)\n \tuint32_t ids[8];\n \tint ret;\n \n+\tif (!priv->caps.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": [
        "v2",
        "6/7"
    ]
}