Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/64282/?format=api
http://patches.dpdk.org/api/patches/64282/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200108062510.3478-2-oda@valinux.co.jp/", "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": "<20200108062510.3478-2-oda@valinux.co.jp>", "list_archive_url": "https://inbox.dpdk.org/dev/20200108062510.3478-2-oda@valinux.co.jp", "date": "2020-01-08T06:25:07", "name": "[1/4] net/vhost: remove an unused member", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "08796456f971971ea2b7ce6d9dafd618c4823ab0", "submitter": { "id": 1558, "url": "http://patches.dpdk.org/api/people/1558/?format=api", "name": "Itsuro Oda", "email": "oda@valinux.co.jp" }, "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/20200108062510.3478-2-oda@valinux.co.jp/mbox/", "series": [ { "id": 8013, "url": "http://patches.dpdk.org/api/series/8013/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8013", "date": "2020-01-08T06:25:07", "name": "make vhost PMD available for secondary processes", "version": 1, "mbox": "http://patches.dpdk.org/series/8013/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/64282/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/64282/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 BECBFA04FA;\n\tWed, 8 Jan 2020 07:25:14 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 24C9E1D6F8;\n\tWed, 8 Jan 2020 07:25:14 +0100 (CET)", "from valinux.co.jp (vagw.valinux.co.jp [210.128.90.14])\n by dpdk.org (Postfix) with ESMTP id 6991E1D6F8\n for <dev@dpdk.org>; Wed, 8 Jan 2020 07:25:12 +0100 (CET)", "by valinux.co.jp (Postfix, from userid 1000)\n id 25D66240984; Wed, 8 Jan 2020 15:25:11 +0900 (JST)" ], "From": "oda@valinux.co.jp", "To": "dev@dpdk.org", "Date": "Wed, 8 Jan 2020 15:25:07 +0900", "Message-Id": "<20200108062510.3478-2-oda@valinux.co.jp>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": "<20200108062510.3478-1-oda@valinux.co.jp>", "References": "<20200108062510.3478-1-oda@valinux.co.jp>", "Subject": "[dpdk-dev] [PATCH 1/4] net/vhost: remove an unused member", "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": "From: Itsuro Oda <oda@valinux.co.jp>\n\nremove an unused member from pmd_internal.\n---\n drivers/net/vhost/rte_eth_vhost.c | 9 +--------\n 1 file changed, 1 insertion(+), 8 deletions(-)", "diff": "diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c\nindex 46f01a7f4..d4e3485ce 100644\n--- a/drivers/net/vhost/rte_eth_vhost.c\n+++ b/drivers/net/vhost/rte_eth_vhost.c\n@@ -95,7 +95,6 @@ struct vhost_queue {\n \n struct pmd_internal {\n \trte_atomic32_t dev_attached;\n-\tchar *dev_name;\n \tchar *iface_name;\n \tuint16_t max_queues;\n \tint vid;\n@@ -1008,7 +1007,6 @@ eth_dev_close(struct rte_eth_dev *dev)\n \t\tfor (i = 0; i < dev->data->nb_tx_queues; i++)\n \t\t\trte_free(dev->data->tx_queues[i]);\n \n-\tfree(internal->dev_name);\n \tfree(internal->iface_name);\n \trte_free(internal);\n \n@@ -1253,9 +1251,6 @@ eth_dev_vhost_create(struct rte_vdev_device *dev, char *iface_name,\n \t * - and point eth_dev structure to new eth_dev_data structure\n \t */\n \tinternal = eth_dev->data->dev_private;\n-\tinternal->dev_name = strdup(name);\n-\tif (internal->dev_name == NULL)\n-\t\tgoto error;\n \tinternal->iface_name = strdup(iface_name);\n \tif (internal->iface_name == NULL)\n \t\tgoto error;\n@@ -1305,10 +1300,8 @@ eth_dev_vhost_create(struct rte_vdev_device *dev, char *iface_name,\n \treturn data->port_id;\n \n error:\n-\tif (internal) {\n+\tif (internal)\n \t\tfree(internal->iface_name);\n-\t\tfree(internal->dev_name);\n-\t}\n \trte_free(vring_state);\n \trte_eth_dev_release_port(eth_dev);\n \trte_free(list);\n", "prefixes": [ "1/4" ] }{ "id": 64282, "url": "