get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64950,
    "url": "http://patches.dpdk.org/api/patches/64950/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1579539790-3882-13-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": "<1579539790-3882-13-git-send-email-matan@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1579539790-3882-13-git-send-email-matan@mellanox.com",
    "date": "2020-01-20T17:02:44",
    "name": "[v1,12/38] common/mlx5: glue event queue query",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "4cb8110cda4592fa36551a41176d0d48c42ae745",
    "submitter": {
        "id": 796,
        "url": "http://patches.dpdk.org/api/people/796/?format=api",
        "name": "Matan Azrad",
        "email": "matan@mellanox.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patches.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1579539790-3882-13-git-send-email-matan@mellanox.com/mbox/",
    "series": [
        {
            "id": 8223,
            "url": "http://patches.dpdk.org/api/series/8223/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8223",
            "date": "2020-01-20T17:02:37",
            "name": "Introduce mlx5 vDPA driver",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/8223/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/64950/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/64950/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 93DA9A0526;\n\tMon, 20 Jan 2020 18:05:23 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BC7081BFE2;\n\tMon, 20 Jan 2020 18:03:40 +0100 (CET)",
            "from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129])\n by dpdk.org (Postfix) with ESMTP id 2FC0A1BF9B\n for <dev@dpdk.org>; Mon, 20 Jan 2020 18:03:14 +0100 (CET)",
            "from Internal Mail-Server by MTLPINE1 (envelope-from\n asafp@mellanox.com)\n with ESMTPS (AES256-SHA encrypted); 20 Jan 2020 19:03:12 +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 00KH3BGV024424;\n Mon, 20 Jan 2020 19:03:12 +0200"
        ],
        "From": "Matan Azrad <matan@mellanox.com>",
        "To": "dev@dpdk.org",
        "Cc": "Maxime Coquelin <maxime.coquelin@redhat.com>,\n Thomas Monjalon <thomas@monjalon.net>",
        "Date": "Mon, 20 Jan 2020 17:02:44 +0000",
        "Message-Id": "<1579539790-3882-13-git-send-email-matan@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1579539790-3882-1-git-send-email-matan@mellanox.com>",
        "References": "<1579539790-3882-1-git-send-email-matan@mellanox.com>",
        "Subject": "[dpdk-dev] [PATCH v1 12/38] common/mlx5: glue event queue query",
        "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": "The event queue is managed only by the kernel.\n\nAdd the rdma-core command in glue to query the kernel event queue\ndetails.\n\nSigned-off-by: Matan Azrad <matan@mellanox.com>\n---\n drivers/common/mlx5/mlx5_glue.c | 15 +++++++++++++++\n drivers/common/mlx5/mlx5_glue.h |  2 ++\n 2 files changed, 17 insertions(+)",
    "diff": "diff --git a/drivers/common/mlx5/mlx5_glue.c b/drivers/common/mlx5/mlx5_glue.c\nindex e75e6bc..ac51e65 100644\n--- a/drivers/common/mlx5/mlx5_glue.c\n+++ b/drivers/common/mlx5/mlx5_glue.c\n@@ -1045,6 +1045,20 @@\n #else\n \tRTE_SET_USED(file);\n \tRTE_SET_USED(domain);\n+        return -ENOTSUP;\n+#endif\n+}\n+\n+static int\n+mlx5_glue_devx_query_eqn(struct ibv_context *ctx, uint32_t cpus,\n+\t\t\t uint32_t *eqn)\n+{\n+#ifdef HAVE_IBV_DEVX_OBJ\n+\treturn mlx5dv_devx_query_eqn(ctx, cpus, eqn);\n+#else\n+\t(void)ctx;\n+\t(void)cpus;\n+\t(void)eqn;\n \treturn -ENOTSUP;\n #endif\n }\n@@ -1148,4 +1162,5 @@\n \t.devx_qp_query = mlx5_glue_devx_qp_query,\n \t.devx_port_query = mlx5_glue_devx_port_query,\n \t.dr_dump_domain = mlx5_glue_dr_dump_domain,\n+\t.devx_query_eqn = mlx5_glue_devx_query_eqn,\n };\ndiff --git a/drivers/common/mlx5/mlx5_glue.h b/drivers/common/mlx5/mlx5_glue.h\nindex 33afaf4..fe51f97 100644\n--- a/drivers/common/mlx5/mlx5_glue.h\n+++ b/drivers/common/mlx5/mlx5_glue.h\n@@ -259,6 +259,8 @@ struct mlx5_glue {\n \t\t\t       uint32_t port_num,\n \t\t\t       struct mlx5dv_devx_port *mlx5_devx_port);\n \tint (*dr_dump_domain)(FILE *file, void *domain);\n+\tint (*devx_query_eqn)(struct ibv_context *context, uint32_t cpus,\n+\t\t\t      uint32_t *eqn);\n };\n \n const struct mlx5_glue *mlx5_glue;\n",
    "prefixes": [
        "v1",
        "12/38"
    ]
}