get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 74897,
    "url": "http://patchwork.dpdk.org/api/patches/74897/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1595916684-30135-1-git-send-email-xuemingl@mellanox.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<1595916684-30135-1-git-send-email-xuemingl@mellanox.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1595916684-30135-1-git-send-email-xuemingl@mellanox.com",
    "date": "2020-07-28T06:11:24",
    "name": "vdpa/mlx5: use master core Id for vhost thread",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "cb190d0b46cc472174010d61c47367931a1a02da",
    "submitter": {
        "id": 814,
        "url": "http://patchwork.dpdk.org/api/people/814/?format=api",
        "name": "Xueming Li",
        "email": "xuemingl@mellanox.com"
    },
    "delegate": {
        "id": 2642,
        "url": "http://patchwork.dpdk.org/api/users/2642/?format=api",
        "username": "mcoquelin",
        "first_name": "Maxime",
        "last_name": "Coquelin",
        "email": "maxime.coquelin@redhat.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1595916684-30135-1-git-send-email-xuemingl@mellanox.com/mbox/",
    "series": [
        {
            "id": 11347,
            "url": "http://patchwork.dpdk.org/api/series/11347/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=11347",
            "date": "2020-07-28T06:11:24",
            "name": "vdpa/mlx5: use master core Id for vhost thread",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/11347/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/74897/comments/",
    "check": "warning",
    "checks": "http://patchwork.dpdk.org/api/patches/74897/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 DFDC6A0521;\n\tTue, 28 Jul 2020 08:11:45 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id BD53F1C027;\n\tTue, 28 Jul 2020 08:11:44 +0200 (CEST)",
            "from git-send-mailer.rdmz.labs.mlnx (unknown [37.142.13.130])\n by dpdk.org (Postfix) with ESMTP id D63481C012\n for <dev@dpdk.org>; Tue, 28 Jul 2020 08:11:42 +0200 (CEST)"
        ],
        "From": "Xueming Li <xuemingl@mellanox.com>",
        "To": "",
        "Cc": "dev@dpdk.org,\n\tAsaf Penso <asafp@mellanox.com>",
        "Date": "Tue, 28 Jul 2020 06:11:24 +0000",
        "Message-Id": "<1595916684-30135-1-git-send-email-xuemingl@mellanox.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "Subject": "[dpdk-dev] [PATCH] vdpa/mlx5: use master core Id for vhost thread",
        "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": "With latest rte api, vdpa example failed on vq setup, the api to get\nevent queue of specified core failed.\n\nThe api to get event queue needs core id as input, but after\ncommit 67ae5936c4fc36 (\"eal: fix lcore accessors for non-EAL threads\"),\ncode of \"vhost-event\" thread to get current core returns -1, an invalid\ncore id.\n\nAs vhost thread created on same core of eal master core, this patch uses\nmaster core ID as a workaround.\n\nSigned-off-by: Xueming Li <xuemingl@mellanox.com>\nAcked-by: Matan Azrad <matan@mellanox.com>\n---\n drivers/vdpa/mlx5/mlx5_vdpa_event.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/drivers/vdpa/mlx5/mlx5_vdpa_event.c b/drivers/vdpa/mlx5/mlx5_vdpa_event.c\nindex 13ad43611e..ff6db8e345 100644\n--- a/drivers/vdpa/mlx5/mlx5_vdpa_event.c\n+++ b/drivers/vdpa/mlx5/mlx5_vdpa_event.c\n@@ -55,7 +55,7 @@ mlx5_vdpa_event_qp_global_prepare(struct mlx5_vdpa_priv *priv)\n \n \tif (priv->eventc)\n \t\treturn 0;\n-\tlcore = (uint32_t)rte_lcore_to_cpu_id(-1);\n+\tlcore = (uint32_t)rte_get_master_lcore();\n \tif (mlx5_glue->devx_query_eqn(priv->ctx, lcore, &priv->eqn)) {\n \t\trte_errno = errno;\n \t\tDRV_LOG(ERR, \"Failed to query EQ number %d.\", rte_errno);\n",
    "prefixes": []
}