Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1377/?format=api
https://patches.dpdk.org/api/patches/1377/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1416474399-16851-15-git-send-email-mukawa@igel.co.jp/", "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": "<1416474399-16851-15-git-send-email-mukawa@igel.co.jp>", "list_archive_url": "https://inbox.dpdk.org/dev/1416474399-16851-15-git-send-email-mukawa@igel.co.jp", "date": "2014-11-20T09:06:28", "name": "[dpdk-dev,14/25] eal/pci: Add rte_eal_devargs_remove", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "d773aa8e6acf68d7bb7e295290ca416644b94698", "submitter": { "id": 64, "url": "https://patches.dpdk.org/api/people/64/?format=api", "name": "Tetsuya Mukawa", "email": "mukawa@igel.co.jp" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1416474399-16851-15-git-send-email-mukawa@igel.co.jp/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/1377/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/1377/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 AD4228012;\n\tThu, 20 Nov 2014 09:57:25 +0100 (CET)", "from mail-pd0-f169.google.com (mail-pd0-f169.google.com\n\t[209.85.192.169]) by dpdk.org (Postfix) with ESMTP id 9DD718002\n\tfor <dev@dpdk.org>; Thu, 20 Nov 2014 09:57:22 +0100 (CET)", "by mail-pd0-f169.google.com with SMTP id fp1so2674829pdb.28\n\tfor <dev@dpdk.org>; Thu, 20 Nov 2014 01:07:51 -0800 (PST)", "from localhost.localdomain (napt.igel.co.jp. [219.106.231.132])\n\tby mx.google.com with ESMTPSA id\n\ta6sm1432407pbu.64.2014.11.20.01.07.48 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 20 Nov 2014 01:07:50 -0800 (PST)" ], "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=r4z9Vnkr4vJnwZP/5m3tk3QqdrkBXc+DN1doHzQpOaI=;\n\tb=bJ1LPE3kx+Aztm7rj+j/2ifdU3cPYu3XnDfflguoRpl5B8hXBTyQu7pU2YyUbYI1ed\n\tBenNHmCpYfzmsyRny+IexZ2EsxfNQrkqYGKs/qwLdZa/FDv9L2xZKqa0YodCbW7L715g\n\tolpqmBfAw7HKn51wXycPEFPSwpml8zKDzUFZ2cJ39uu/Zl4M+SVkvYVwghR3WFdiFdlg\n\tbExl29c1cWQgBx/hi9IfklTHPK0cdEAbasHTroXoQEADYN8ov5mAN9g5i7M2Z/HhpnX9\n\tKvVonig23ylc9B6mzHkdVuEZP1aD2NUsrjRCbKnf0jeIIHgLJzollEGckQsQBCMdjElb\n\tEQ4Q==", "X-Gm-Message-State": "ALoCoQlqxiJG9M8oanar+gc9vdo1a8S4bamf47g8iz9Jz3ojT7jPz3qlDZojRCKaFPQcIJGkLcrc", "X-Received": "by 10.67.6.1 with SMTP id cq1mr25439356pad.23.1416474471471;\n\tThu, 20 Nov 2014 01:07:51 -0800 (PST)", "From": "Tetsuya Mukawa <mukawa@igel.co.jp>", "To": "dev@dpdk.org", "Date": "Thu, 20 Nov 2014 18:06:28 +0900", "Message-Id": "<1416474399-16851-15-git-send-email-mukawa@igel.co.jp>", "X-Mailer": "git-send-email 1.9.1", "In-Reply-To": "<1416474399-16851-1-git-send-email-mukawa@igel.co.jp>", "References": "<1414572576-21371-1-git-send-email-mukawa@igel.co.jp>\n\t<1416474399-16851-1-git-send-email-mukawa@igel.co.jp>", "Cc": "nakajima.yoshihiro@lab.ntt.co.jp, menrigh@brocade.com,\n\tmasutani.hitoshi@lab.ntt.co.jp", "Subject": "[dpdk-dev] [PATCH 14/25] eal/pci: Add rte_eal_devargs_remove", "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": "The function removes a specified devargs from devargs_list.\n\nSigned-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>\n---\n lib/librte_eal/common/eal_common_devargs.c | 13 +++++++++++++\n lib/librte_eal/common/include/rte_devargs.h | 18 ++++++++++++++++++\n 2 files changed, 31 insertions(+)", "diff": "diff --git a/lib/librte_eal/common/eal_common_devargs.c b/lib/librte_eal/common/eal_common_devargs.c\nindex aaa6901..0916cf8 100644\n--- a/lib/librte_eal/common/eal_common_devargs.c\n+++ b/lib/librte_eal/common/eal_common_devargs.c\n@@ -137,6 +137,19 @@ rte_eal_devargs_add(enum rte_devtype devtype, const char *devargs_str)\n \treturn 0;\n }\n \n+/* remove it from the devargs_list */\n+void\n+rte_eal_devargs_remove(enum rte_devtype devtype, void *args)\n+{\n+\tstruct rte_devargs *devargs;\n+\n+\tdevargs = rte_eal_devargs_find(devtype, args);\n+\tif (devargs == NULL)\n+\t\treturn;\n+\n+\tTAILQ_REMOVE(&devargs_list, devargs, next);\n+}\n+\n /* count the number of devices of a specified type */\n unsigned int\n rte_eal_devargs_type_count(enum rte_devtype devtype)\ndiff --git a/lib/librte_eal/common/include/rte_devargs.h b/lib/librte_eal/common/include/rte_devargs.h\nindex 9f9c98f..57842b3 100644\n--- a/lib/librte_eal/common/include/rte_devargs.h\n+++ b/lib/librte_eal/common/include/rte_devargs.h\n@@ -123,6 +123,24 @@ extern struct rte_devargs_list devargs_list;\n int rte_eal_devargs_add(enum rte_devtype devtype, const char *devargs_str);\n \n /**\n+ * Remove a device form the user device list\n+ *\n+ * For PCI devices, the format of arguments string is \"PCI_ADDR\". It shouldn't\n+ * involves parameters for the device. Example: \"08:00.1\".\n+ *\n+ * For virtual devices, the format of arguments string is \"DRIVER_NAME*\". It\n+ * shouldn't involves parameters for the device. Example: \"eth_ring\". The\n+ * validity of the driver name is not checked by this function, it is done\n+ * when closing the drivers.\n+ *\n+ * @param devtype\n+ * The type of the device.\n+ * @param name\n+ * The name of the device.\n+ */\n+void rte_eal_devargs_remove(enum rte_devtype devtype, void *args);\n+\n+/**\n * Count the number of user devices of a specified type\n *\n * @param devtype\n", "prefixes": [ "dpdk-dev", "14/25" ] }{ "id": 1377, "url": "