Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/7739/?format=api
https://patches.dpdk.org/api/patches/7739/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1445247869-713-5-git-send-email-jerome.jutteau@outscale.com/", "project": { "id": 1, "url": "https://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": "<1445247869-713-5-git-send-email-jerome.jutteau@outscale.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1445247869-713-5-git-send-email-jerome.jutteau@outscale.com", "date": "2015-10-19T09:44:29", "name": "[dpdk-dev,v2,4/4] vhost: change method to get device in reset_owner", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "ce65045043162c069cd2014f445695762f9532f6", "submitter": { "id": 354, "url": "https://patches.dpdk.org/api/people/354/?format=api", "name": "Jerome Jutteau", "email": "jerome.jutteau@outscale.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1445247869-713-5-git-send-email-jerome.jutteau@outscale.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/7739/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/7739/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 78CCF8EA0;\n\tMon, 19 Oct 2015 11:45:32 +0200 (CEST)", "from mail-lf0-f49.google.com (mail-lf0-f49.google.com\n\t[209.85.215.49]) by dpdk.org (Postfix) with ESMTP id 41A428E9E\n\tfor <dev@dpdk.org>; Mon, 19 Oct 2015 11:45:31 +0200 (CEST)", "by lffz202 with SMTP id z202so23410319lff.3\n\tfor <dev@dpdk.org>; Mon, 19 Oct 2015 02:45:31 -0700 (PDT)", "from localhost.localdomain\n\t(ows-185-21-195-233.eu-west-1.compute.outscale.com. [185.21.195.233])\n\tby smtp.gmail.com with ESMTPSA id\n\txt1sm39011197wjb.32.2015.10.19.02.45.30\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 19 Oct 2015 02:45:30 -0700 (PDT)" ], "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=RqUE35lyIgEoFFuKWVKdP0T+dD8ENuXDswCxrbXrofA=;\n\tb=bGi01xNJvnFjV4o2v6wPcgCInXosTTi0kQhQZpqio2338aObPdM6Kehk6EVS9JvIjw\n\tZhqnSurzSZi4JXRxmlgyC5WwA3f2x9k/n7Hxq1LMoS+boXGj2IbzJkE+2uqGUzQ7Ohj9\n\t/DUX+y/UlHmRzjrZecXQbGnN/6FKmMAw9CBBHrH+tl2xHYjw9qgCROP6B2D0leMIDZlJ\n\tBgMv188b/lxCXB59DyOSYI2Nj5cQddkrK8KlSLuWwc2zmWtsUcJRpdg8BrS1lByZupGi\n\tXLQp+XNw0mNTQ9YnmM4DJshtheXC7+76cTRlbHxwbbNDJBWnFLaHVfTTfaVfQZ34pQiB\n\tZZuQ==", "X-Gm-Message-State": "ALoCoQkkNRfuzhwwNlD1C/tQ3QD6UR4db1SFe6JQW2dHw9VG+RhiO5asGEvEkJOLMN1RmXBfWW2l", "X-Received": "by 10.180.93.133 with SMTP id cu5mr18418004wib.49.1445247930959; \n\tMon, 19 Oct 2015 02:45:30 -0700 (PDT)", "From": "Jerome Jutteau <jerome.jutteau@outscale.com>", "To": "dev@dpdk.org", "Date": "Mon, 19 Oct 2015 11:44:29 +0200", "Message-Id": "<1445247869-713-5-git-send-email-jerome.jutteau@outscale.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1445247869-713-1-git-send-email-jerome.jutteau@outscale.com>", "References": "<1445247869-713-1-git-send-email-jerome.jutteau@outscale.com>", "Subject": "[dpdk-dev] [PATCH v2 4/4] vhost: change method to get device in\n\treset_owner", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <dev.dpdk.org>", "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://dpdk.org/ml/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Using get_config_ll_entry in reset_owner don't show any error when the\ndevice is not found. This patch fix this by using get_device instead\ninstead of get_config_ll_entry.\n\nSigned-off-by: Jerome Jutteau <jerome.jutteau@outscale.com>\n---\n lib/librte_vhost/virtio-net.c | 15 +++++++--------\n 1 file changed, 7 insertions(+), 8 deletions(-)", "diff": "diff --git a/lib/librte_vhost/virtio-net.c b/lib/librte_vhost/virtio-net.c\nindex ec6a575..a6ab245 100644\n--- a/lib/librte_vhost/virtio-net.c\n+++ b/lib/librte_vhost/virtio-net.c\n@@ -398,18 +398,17 @@ set_owner(struct vhost_device_ctx ctx)\n static int\n reset_owner(struct vhost_device_ctx ctx)\n {\n-\tstruct virtio_net_config_ll *ll_dev;\n+\tstruct virtio_net *dev;\n \tuint64_t device_fh;\n \n-\tll_dev = get_config_ll_entry(ctx);\n-\tif (ll_dev == NULL)\n+\tdev = get_device(ctx);\n+\tif (dev == NULL)\n \t\treturn -1;\n-\tdevice_fh = ll_dev->dev.device_fh;\n-\n-\tcleanup_device(&ll_dev->dev);\n-\tinit_device(&ll_dev->dev);\n-\tll_dev->dev.device_fh = device_fh;\n \n+\tdevice_fh = dev->device_fh;\n+\tcleanup_device(dev);\n+\tinit_device(dev);\n+\tdev->device_fh = device_fh;\n \treturn 0;\n }\n \n", "prefixes": [ "dpdk-dev", "v2", "4/4" ] }{ "id": 7739, "url": "