get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92082,
    "url": "http://patches.dpdk.org/api/patches/92082/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210423122515.31078-1-thierry.herbelot@6wind.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": "<20210423122515.31078-1-thierry.herbelot@6wind.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210423122515.31078-1-thierry.herbelot@6wind.com",
    "date": "2021-04-23T12:25:15",
    "name": "net/virtio: fix kernel set memory table for multi-queue devices",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "ef474392517efeade3175bac19621ea8cbb1906a",
    "submitter": {
        "id": 897,
        "url": "http://patches.dpdk.org/api/people/897/?format=api",
        "name": "Thierry Herbelot",
        "email": "thierry.herbelot@6wind.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/20210423122515.31078-1-thierry.herbelot@6wind.com/mbox/",
    "series": [
        {
            "id": 16635,
            "url": "http://patches.dpdk.org/api/series/16635/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16635",
            "date": "2021-04-23T12:25:15",
            "name": "net/virtio: fix kernel set memory table for multi-queue devices",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/16635/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/92082/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/92082/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 6ABADA0548;\n\tFri, 23 Apr 2021 14:25:53 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4D27E410EB;\n\tFri, 23 Apr 2021 14:25:53 +0200 (CEST)",
            "from proxy.6wind.com (host.78.145.23.62.rev.coltfrance.com\n [62.23.145.78]) by mails.dpdk.org (Postfix) with ESMTP id A683B410D8;\n Fri, 23 Apr 2021 14:25:51 +0200 (CEST)",
            "from localhost (unknown [10.16.0.39])\n by proxy.6wind.com (Postfix) with ESMTP id 8AF8593FF51;\n Fri, 23 Apr 2021 14:25:51 +0200 (CEST)"
        ],
        "From": "Thierry Herbelot <thierry.herbelot@6wind.com>",
        "To": "dev@dpdk.org",
        "Cc": "Thierry Herbelot <thierry.herbelot@6wind.com>,\n Thomas Monjalon <thomas@monjalon.net>,\n Maxime Coquelin <maxime.coquelin@redhat.com>,\n Chenbo Xia <chenbo.xia@intel.com>, stable@dpdk.org",
        "Date": "Fri, 23 Apr 2021 14:25:15 +0200",
        "Message-Id": "<20210423122515.31078-1-thierry.herbelot@6wind.com>",
        "X-Mailer": "git-send-email 2.29.2",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH] net/virtio: fix kernel set memory table for\n multi-queue devices",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "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": "Restore the original code, where VHOST_SET_MEM_TABLE is applied to\nall vhostfds of the device.\n\nFixes: 539d910c9c768 (\"net/virtio: add virtio-user memory tables ops\")\nCc: stable@dpdk.org\n\nSigned-off-by: Thierry Herbelot <thierry.herbelot@6wind.com>\n---\n drivers/net/virtio/virtio_user/vhost_kernel.c | 12 +++++++++---\n 1 file changed, 9 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/drivers/net/virtio/virtio_user/vhost_kernel.c b/drivers/net/virtio/virtio_user/vhost_kernel.c\nindex 58e66bb7b4ae..ad46f10a9300 100644\n--- a/drivers/net/virtio/virtio_user/vhost_kernel.c\n+++ b/drivers/net/virtio/virtio_user/vhost_kernel.c\n@@ -206,6 +206,7 @@ add_memseg_list(const struct rte_memseg_list *msl, void *arg)\n static int\n vhost_kernel_set_memory_table(struct virtio_user_dev *dev)\n {\n+\tuint32_t i;\n \tstruct vhost_kernel_data *data = dev->backend_data;\n \tstruct vhost_memory_kernel *vm;\n \tint ret;\n@@ -227,9 +228,14 @@ vhost_kernel_set_memory_table(struct virtio_user_dev *dev)\n \tif (ret < 0)\n \t\tgoto err_free;\n \n-\tret = vhost_kernel_ioctl(data->vhostfds[0], VHOST_SET_MEM_TABLE, vm);\n-\tif (ret < 0)\n-\t\tgoto err_free;\n+\tfor (i = 0; i < dev->max_queue_pairs; ++i) {\n+\t\tif (data->vhostfds[i] < 0)\n+\t\t\tcontinue;\n+\n+\t\tret = vhost_kernel_ioctl(data->vhostfds[i], VHOST_SET_MEM_TABLE, vm);\n+\t\tif (ret < 0)\n+\t\t\tgoto err_free;\n+\t}\n \n \tfree(vm);\n \n",
    "prefixes": []
}