Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/64284/?format=api
http://patches.dpdk.org/api/patches/64284/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200108062510.3478-3-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-3-oda@valinux.co.jp>", "list_archive_url": "https://inbox.dpdk.org/dev/20200108062510.3478-3-oda@valinux.co.jp", "date": "2020-01-08T06:25:08", "name": "[2/4] net/vhost: allocate iface_name from heap", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "93feb7ba80f1b8b46a77a13e747845163554e144", "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-3-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/64284/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/64284/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 9583FA04FA;\n\tWed, 8 Jan 2020 07:25:30 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 8A2E61D947;\n\tWed, 8 Jan 2020 07:25:17 +0100 (CET)", "from valinux.co.jp (vagw.valinux.co.jp [210.128.90.14])\n by dpdk.org (Postfix) with ESMTP id 9F3591D6FF\n for <dev@dpdk.org>; Wed, 8 Jan 2020 07:25:12 +0100 (CET)", "by valinux.co.jp (Postfix, from userid 1000)\n id 8581324099E; 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:08 +0900", "Message-Id": "<20200108062510.3478-3-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 2/4] net/vhost: allocate iface_name from heap", "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\nallocate iface_name of pmd_internal from heap in order to\nbe able to refer from secondary processes.\n---\n drivers/net/vhost/rte_eth_vhost.c | 8 +++++---\n 1 file changed, 5 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c\nindex d4e3485ce..1b07aad24 100644\n--- a/drivers/net/vhost/rte_eth_vhost.c\n+++ b/drivers/net/vhost/rte_eth_vhost.c\n@@ -1007,7 +1007,7 @@ 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->iface_name);\n+\trte_free(internal->iface_name);\n \trte_free(internal);\n \n \tdev->data->dev_private = NULL;\n@@ -1251,9 +1251,11 @@ 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->iface_name = strdup(iface_name);\n+\tinternal->iface_name = rte_malloc_socket(name, strlen(iface_name) + 1,\n+\t\t\t\t\t\t 0, numa_node);\n \tif (internal->iface_name == NULL)\n \t\tgoto error;\n+\tstrcpy(internal->iface_name, iface_name);\n \n \tlist->eth_dev = eth_dev;\n \tpthread_mutex_lock(&internal_list_lock);\n@@ -1301,7 +1303,7 @@ eth_dev_vhost_create(struct rte_vdev_device *dev, char *iface_name,\n \n error:\n \tif (internal)\n-\t\tfree(internal->iface_name);\n+\t\trte_free(internal->iface_name);\n \trte_free(vring_state);\n \trte_eth_dev_release_port(eth_dev);\n \trte_free(list);\n", "prefixes": [ "2/4" ] }{ "id": 64284, "url": "