Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/46302/?format=api
https://patches.dpdk.org/api/patches/46302/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20181009001616.10497-2-thomas@monjalon.net/", "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": "<20181009001616.10497-2-thomas@monjalon.net>", "list_archive_url": "https://inbox.dpdk.org/dev/20181009001616.10497-2-thomas@monjalon.net", "date": "2018-10-09T00:16:11", "name": "[v2,1/6] bus/vdev: add iteration filter on name", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "004a18fcccae321e992561d2a6f3ae1a7fa2ab66", "submitter": { "id": 685, "url": "https://patches.dpdk.org/api/people/685/?format=api", "name": "Thomas Monjalon", "email": "thomas@monjalon.net" }, "delegate": { "id": 319, "url": "https://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20181009001616.10497-2-thomas@monjalon.net/mbox/", "series": [ { "id": 1766, "url": "https://patches.dpdk.org/api/series/1766/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=1766", "date": "2018-10-09T00:16:11", "name": "replace attach/detach functions", "version": 2, "mbox": "https://patches.dpdk.org/series/1766/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/46302/comments/", "check": "fail", "checks": "https://patches.dpdk.org/api/patches/46302/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id A3F6E1B3BC;\n\tTue, 9 Oct 2018 02:16:25 +0200 (CEST)", "from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com\n\t[66.111.4.27]) by dpdk.org (Postfix) with ESMTP id D31441B3B6\n\tfor <dev@dpdk.org>; Tue, 9 Oct 2018 02:16:23 +0200 (CEST)", "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n\tby mailout.nyi.internal (Postfix) with ESMTP id 515CA21FF3;\n\tMon, 8 Oct 2018 20:16:23 -0400 (EDT)", "from mailfrontend2 ([10.202.2.163])\n\tby compute1.internal (MEProxy); Mon, 08 Oct 2018 20:16:23 -0400", "from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184])\n\tby mail.messagingengine.com (Postfix) with ESMTPA id 4BA86102E2;\n\tMon, 8 Oct 2018 20:16:22 -0400 (EDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n\tfrom:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-type:content-transfer-encoding; s=mesmtp;\n\tbh=7b3+5RaIiVMKnCv8hGqxXKa1Xbx8e/hyVUGhIfIeryY=; b=gqNJrlSqJZW3\n\tte1QgzFfHwF/3si7TaRqQ+Cg1yBmc3UI+iuXXbMlxU849BfxNmusFyMByxt5/rT+\n\tuKfZskgMPiY0E20xSzJ0Rcfv/eMxBubAlVIkXY7hrQZZziYw0T4hifnA9YNebmCS\n\tSOSHS7W774Ll8Umm2KwZUkVEqAIB+Fc=", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:content-transfer-encoding:content-type\n\t:date:from:in-reply-to:message-id:mime-version:references\n\t:subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender\n\t:x-sasl-enc; s=fm3; bh=7b3+5RaIiVMKnCv8hGqxXKa1Xbx8e/hyVUGhIfIer\n\tyY=; b=UUKuJRY4C+nzYqhV7R5oIRZAFg63Cky/gtggSMs+8Y4hsMcyyQ6etFTK5\n\t9Ft5BccEIvXlos71EiTeiH4pFRmXsQRC0GH1DVmqXu79Y+PtfhoVmdK0u5E1cnN3\n\t5rLjvzAX5+INXSjRgZ0ro3I8pOXvoYyF0fltnm6yET29NK/GgxjmfHTxBBY/WxSo\n\tcPObAnYh1dIWyKFzZ4Q0JMBmkzsHK90QWSH0bcCdnVM9Rua1GSjIRzCkIj1eea3e\n\tUQlOCc0fYXerQdF+stXFlVUKiUzaTZgGL0qYhJbtTTGjY6diATVTWYuCpCqLLqAi\n\t7oPgD/E0y2jYmHerEcT+Q5r4rDmdg==" ], "X-ME-Sender": "<xms:V_O7W8nttdt9fdc8TE1TzHVQ66fMSBmEVvpwAYKH2xG93J6w328wNw>", "X-ME-Proxy": "<xmx:V_O7W_GQAY50rAAZst_f4eTzUIVHomKNru0cmZeslJyyS_Jwn3X-TA>\n\t<xmx:V_O7W4OLEle3ZoGjY9qcwzhmF8Pkf7QsGrMtKfhKB7acnRsuBCj7ew>\n\t<xmx:V_O7W8r_FPwaU-CClaggy7Jln6IZPHwIsVTz8uVDHq6Cmce9CYVCGQ>\n\t<xmx:V_O7WxBPa4BhEnJqBVDGV7ujq63kPOjQSZY21IJkFlHrkQ8h6emC_A>\n\t<xmx:V_O7W9PC5FRetQ0nHbQJvemDA1Mpiegix1pGgEuwNfURKchsGe2EKA>\n\t<xmx:V_O7WwUEUTlsj0SNkD8ZUxwFdLXUIiiylP_EJujbssJQP7yIUp3gSw>", "From": "Thomas Monjalon <thomas@monjalon.net>", "To": "dev@dpdk.org", "Cc": "gaetan.rivet@6wind.com, ophirmu@mellanox.com, ferruh.yigit@intel.com,\n\tarybchenko@solarflare.com", "Date": "Tue, 9 Oct 2018 02:16:11 +0200", "Message-Id": "<20181009001616.10497-2-thomas@monjalon.net>", "X-Mailer": "git-send-email 2.19.0", "In-Reply-To": "<20181009001616.10497-1-thomas@monjalon.net>", "References": "<20181007222554.4886-1-thomas@monjalon.net>\n\t<20181009001616.10497-1-thomas@monjalon.net>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v2 1/6] bus/vdev: add iteration filter on name", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "A virtual device can be matched with following syntax:\n\tbus=vdev,name=X\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\n---\n drivers/bus/vdev/vdev_params.c | 19 +++++++++++++++++--\n 1 file changed, 17 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/bus/vdev/vdev_params.c b/drivers/bus/vdev/vdev_params.c\nindex da270f2ec..6f74704d1 100644\n--- a/drivers/bus/vdev/vdev_params.c\n+++ b/drivers/bus/vdev/vdev_params.c\n@@ -2,6 +2,8 @@\n * Copyright 2018 Gaëtan Rivet\n */\n \n+#include <string.h>\n+\n #include <rte_dev.h>\n #include <rte_bus.h>\n #include <rte_kvargs.h>\n@@ -11,10 +13,12 @@\n #include \"vdev_private.h\"\n \n enum vdev_params {\n+\tRTE_VDEV_PARAM_NAME,\n \tRTE_VDEV_PARAM_MAX,\n };\n \n static const char * const vdev_params_keys[] = {\n+\t[RTE_VDEV_PARAM_NAME] = \"name\",\n \t[RTE_VDEV_PARAM_MAX] = NULL,\n };\n \n@@ -22,10 +26,21 @@ static int\n vdev_dev_match(const struct rte_device *dev,\n \t const void *_kvlist)\n {\n+\tint ret;\n \tconst struct rte_kvargs *kvlist = _kvlist;\n+\tchar *name;\n+\n+\t/* cannot pass const dev->name to rte_kvargs_process() */\n+\tname = strdup(dev->name);\n+\tif (name == NULL)\n+\t\treturn -1;\n+\tret = rte_kvargs_process(kvlist,\n+\t\tvdev_params_keys[RTE_VDEV_PARAM_NAME],\n+\t\trte_kvargs_strcmp, name);\n+\tfree(name);\n+\tif (ret != 0)\n+\t\treturn -1;\n \n-\t(void) kvlist;\n-\t(void) dev;\n \treturn 0;\n }\n \n", "prefixes": [ "v2", "1/6" ] }{ "id": 46302, "url": "