Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/26003/?format=api
https://patches.dpdk.org/api/patches/26003/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20170629182206.1072-5-jblunck@infradead.org/", "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": "<20170629182206.1072-5-jblunck@infradead.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20170629182206.1072-5-jblunck@infradead.org", "date": "2017-06-29T18:21:55", "name": "[dpdk-dev,v7,04/15] pci: implement find_device bus operation", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a183e0de19f0a9ac4c9a74af916749d3622a7f53", "submitter": { "id": 249, "url": "https://patches.dpdk.org/api/people/249/?format=api", "name": "Jan Blunck", "email": "jblunck@infradead.org" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20170629182206.1072-5-jblunck@infradead.org/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/26003/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/26003/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 A0EEB7CA3;\n\tThu, 29 Jun 2017 20:22:38 +0200 (CEST)", "from mail-wm0-f65.google.com (mail-wm0-f65.google.com\n\t[74.125.82.65]) by dpdk.org (Postfix) with ESMTP id 92B9C378E\n\tfor <dev@dpdk.org>; Thu, 29 Jun 2017 20:22:31 +0200 (CEST)", "by mail-wm0-f65.google.com with SMTP id p204so4072409wmg.1\n\tfor <dev@dpdk.org>; Thu, 29 Jun 2017 11:22:31 -0700 (PDT)", "from weierstrass.local ([91.200.110.13])\n\tby smtp.gmail.com with ESMTPSA id\n\te28sm1446366ede.14.2017.06.29.11.22.29\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tThu, 29 Jun 2017 11:22:30 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=sender:from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=YKtz0KBh2CRzNew9WesZ5M5Z+lUfOZyvrqzmSJ32r2g=;\n\tb=OfuhVrD3LWjkTK76FGotec4+ZD1nZn4xKClZCAoPS6D5qaTAIIRIG64sznbaJ7ckgj\n\tphWMCYuRGWPxa4cH9QRY0/cOza/qRyG/ipjfJQ55a3vHUkmdWnsh+yYcnxxawPEY5/zs\n\tfa0VMFjvBijApDQ7w8rB+HTiTt/K1HPh1YqO8sGHawJIPy8KHq5UdCKn4yHUbQ3QdX2b\n\tqldSrOrMdeofoSBHloiE5x5DCkwLD/HyyQJxnc2Ne1MKClgmt9nbmXgwAu3heLUinZbP\n\tvBALqkWtfGHyanmwtVt3+lE6kMf86wYATJdEVkECJClsQO2yp3HNTJcMNZE/lBXcVQhU\n\tUu2g==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id\n\t:in-reply-to:references;\n\tbh=YKtz0KBh2CRzNew9WesZ5M5Z+lUfOZyvrqzmSJ32r2g=;\n\tb=X5Swspa0pu4/8fK76ITHlpImONYR1YBjL7QYljkwFNy5SSRGV1TnzhTl7aiE4hNl+W\n\tWfBIgo/FJaROI6QKCD3YsVMYGu62hniI6eLpKynW68S4EThCqKRrC8DEmit/GSYGxfaD\n\tAp8JRmrnFUjgKA8jaCGQ52Ws7ifL4dqAO5UNH9HzyXzulvSGEeoWcw96zys4YGfbeM5U\n\tJdCe2jKeeAHN9RYt3/T8gvX4MdNHETDJbQLUN0Dq8L1Kf99GJuEi9CIm4tHOsRqN895C\n\tlkbIrp7namnU6CzVWbpBntb+g0Z9C0Uo7sFn/d2UT5mnGgHM7LV9IY+84Nqug9gvEvmo\n\tmqGw==", "X-Gm-Message-State": "AKS2vOzqW+fja8Ie4pw/HTzUg0C/O39mC3D+gOD/tDDVk4Mg2zQZNepK\n\tHoyWt+eTVUyOLmur", "X-Received": "by 10.80.135.175 with SMTP id a44mr2675923eda.90.1498760551022; \n\tThu, 29 Jun 2017 11:22:31 -0700 (PDT)", "From": "Jan Blunck <jblunck@infradead.org>", "To": "dev@dpdk.org", "Cc": "gaetan.rivet@6wind.com,\n\tshreyansh.jain@nxp.com", "Date": "Thu, 29 Jun 2017 20:21:55 +0200", "Message-Id": "<20170629182206.1072-5-jblunck@infradead.org>", "X-Mailer": "git-send-email 2.9.4", "In-Reply-To": "<20170629182206.1072-1-jblunck@infradead.org>", "References": "<cover.1498577192.git.gaetan.rivet@6wind.com>\n\t<20170629182206.1072-1-jblunck@infradead.org>", "Subject": "[dpdk-dev] [PATCH v7 04/15] pci: implement find_device bus operation", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <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": "Signed-off-by: Jan Blunck <jblunck@infradead.org>\n---\n lib/librte_eal/common/eal_common_pci.c | 21 +++++++++++++++++++++\n 1 file changed, 21 insertions(+)", "diff": "diff --git a/lib/librte_eal/common/eal_common_pci.c b/lib/librte_eal/common/eal_common_pci.c\nindex 479c62d..e449758 100644\n--- a/lib/librte_eal/common/eal_common_pci.c\n+++ b/lib/librte_eal/common/eal_common_pci.c\n@@ -485,10 +485,31 @@ rte_pci_remove_device(struct rte_pci_device *pci_dev)\n \tTAILQ_REMOVE(&rte_pci_bus.device_list, pci_dev, next);\n }\n \n+static struct rte_device *\n+pci_find_device(const struct rte_device *start, rte_dev_cmp_t cmp,\n+\t\tconst void *data)\n+{\n+\tstruct rte_pci_device *dev;\n+\tbool start_found = !start;\n+\n+\tFOREACH_DEVICE_ON_PCIBUS(dev) {\n+\t\tif (!start_found) {\n+\t\t\tif (&dev->device == start)\n+\t\t\t\tstart_found = 1;\n+\t\t\tcontinue;\n+\t\t}\n+\t\tif (cmp(&dev->device, data) == 0)\n+\t\t\treturn &dev->device;\n+\t}\n+\n+\treturn NULL;\n+}\n+\n struct rte_pci_bus rte_pci_bus = {\n \t.bus = {\n \t\t.scan = rte_pci_scan,\n \t\t.probe = rte_pci_probe,\n+\t\t.find_device = pci_find_device,\n \t},\n \t.device_list = TAILQ_HEAD_INITIALIZER(rte_pci_bus.device_list),\n \t.driver_list = TAILQ_HEAD_INITIALIZER(rte_pci_bus.driver_list),\n", "prefixes": [ "dpdk-dev", "v7", "04/15" ] }{ "id": 26003, "url": "