get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 65219,
    "url": "http://patches.dpdk.org/api/patches/65219/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1580205965-21492-18-git-send-email-matan@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": "<1580205965-21492-18-git-send-email-matan@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1580205965-21492-18-git-send-email-matan@mellanox.com",
    "date": "2020-01-28T10:05:57",
    "name": "[v2,17/25] common/mlx5: allow type configuration for DevX RQT",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "48f8ad41cb26802bf81a1e98abaedfb3c5ff2045",
    "submitter": {
        "id": 796,
        "url": "http://patches.dpdk.org/api/people/796/?format=api",
        "name": "Matan Azrad",
        "email": "matan@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/1580205965-21492-18-git-send-email-matan@mellanox.com/mbox/",
    "series": [
        {
            "id": 8319,
            "url": "http://patches.dpdk.org/api/series/8319/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8319",
            "date": "2020-01-28T10:05:40",
            "name": "Introduce mlx5 common library",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/8319/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/65219/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/65219/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 2DFBAA04B3;\n\tTue, 28 Jan 2020 11:09:52 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C8C401C205;\n\tTue, 28 Jan 2020 11:09:24 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 9E5D01C1A6\n for <dev@dpdk.org>; Tue, 28 Jan 2020 11:09:23 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n asafp@mellanox.com)\n with ESMTPS (AES256-SHA encrypted); 28 Jan 2020 12:09:23 +0200",
            "from pegasus07.mtr.labs.mlnx (pegasus07.mtr.labs.mlnx\n [10.210.16.112])\n by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id 00SA6FpK016102;\n Tue, 28 Jan 2020 12:09:23 +0200"
        ],
        "From": "Matan Azrad <matan@mellanox.com>",
        "To": "dev@dpdk.org, Viacheslav Ovsiienko <viacheslavo@mellanox.com>",
        "Cc": "Raslan Darawsheh <rasland@mellanox.com>",
        "Date": "Tue, 28 Jan 2020 10:05:57 +0000",
        "Message-Id": "<1580205965-21492-18-git-send-email-matan@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1580205965-21492-1-git-send-email-matan@mellanox.com>",
        "References": "<1579539790-3882-1-git-send-email-matan@mellanox.com>\n <1580205965-21492-1-git-send-email-matan@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v2 17/25] common/mlx5: allow type configuration\n\tfor DevX RQT",
        "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": "Allow virtio queue type configuration in the RQ table.\nThe needed fields and configuration was added.\n\nSigned-off-by: Matan Azrad <matan@mellanox.com>\nAcked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>\n---\n drivers/common/mlx5/mlx5_devx_cmds.c | 1 +\n drivers/common/mlx5/mlx5_devx_cmds.h | 1 +\n drivers/common/mlx5/mlx5_prm.h       | 5 +++--\n 3 files changed, 5 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c\nindex e7288c8..e372df6 100644\n--- a/drivers/common/mlx5/mlx5_devx_cmds.c\n+++ b/drivers/common/mlx5/mlx5_devx_cmds.c\n@@ -846,6 +846,7 @@ struct mlx5_devx_obj *\n \t}\n \tMLX5_SET(create_rqt_in, in, opcode, MLX5_CMD_OP_CREATE_RQT);\n \trqt_ctx = MLX5_ADDR_OF(create_rqt_in, in, rqt_context);\n+\tMLX5_SET(rqtc, rqt_ctx, list_q_type, rqt_attr->rq_type);\n \tMLX5_SET(rqtc, rqt_ctx, rqt_max_size, rqt_attr->rqt_max_size);\n \tMLX5_SET(rqtc, rqt_ctx, rqt_actual_size, rqt_attr->rqt_actual_size);\n \tfor (i = 0; i < rqt_attr->rqt_actual_size; i++)\ndiff --git a/drivers/common/mlx5/mlx5_devx_cmds.h b/drivers/common/mlx5/mlx5_devx_cmds.h\nindex d1a21b8..9ef3ce2 100644\n--- a/drivers/common/mlx5/mlx5_devx_cmds.h\n+++ b/drivers/common/mlx5/mlx5_devx_cmds.h\n@@ -188,6 +188,7 @@ struct mlx5_devx_tir_attr {\n \n /* RQT attributes structure, used by RQT operations. */\n struct mlx5_devx_rqt_attr {\n+\tuint8_t rq_type;\n \tuint32_t rqt_max_size:16;\n \tuint32_t rqt_actual_size:16;\n \tuint32_t rq_list[];\ndiff --git a/drivers/common/mlx5/mlx5_prm.h b/drivers/common/mlx5/mlx5_prm.h\nindex e53dd61..000ba1f 100644\n--- a/drivers/common/mlx5/mlx5_prm.h\n+++ b/drivers/common/mlx5/mlx5_prm.h\n@@ -1734,8 +1734,9 @@ struct mlx5_ifc_rq_num_bits {\n };\n \n struct mlx5_ifc_rqtc_bits {\n-\tu8 reserved_at_0[0xa0];\n-\tu8 reserved_at_a0[0x10];\n+\tu8 reserved_at_0[0xa5];\n+\tu8 list_q_type[0x3];\n+\tu8 reserved_at_a8[0x8];\n \tu8 rqt_max_size[0x10];\n \tu8 reserved_at_c0[0x10];\n \tu8 rqt_actual_size[0x10];\n",
    "prefixes": [
        "v2",
        "17/25"
    ]
}