Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1382/?format=api
https://patches.dpdk.org/api/patches/1382/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1416474399-16851-20-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-20-git-send-email-mukawa@igel.co.jp>", "list_archive_url": "https://inbox.dpdk.org/dev/1416474399-16851-20-git-send-email-mukawa@igel.co.jp", "date": "2014-11-20T09:06:33", "name": "[dpdk-dev,19/25] eal/pci: Change scope of rte_eal_pci_scan to global", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "6e89388520d06a416a0c10f8b75ce9a59ef14861", "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-20-git-send-email-mukawa@igel.co.jp/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/1382/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/1382/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 F0CC28042;\n\tThu, 20 Nov 2014 09:57:42 +0100 (CET)", "from mail-pd0-f180.google.com (mail-pd0-f180.google.com\n\t[209.85.192.180]) by dpdk.org (Postfix) with ESMTP id 340678011\n\tfor <dev@dpdk.org>; Thu, 20 Nov 2014 09:57:36 +0100 (CET)", "by mail-pd0-f180.google.com with SMTP id p10so2703566pdj.39\n\tfor <dev@dpdk.org>; Thu, 20 Nov 2014 01:08:05 -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.08.02 for <multiple recipients>\n\t(version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tThu, 20 Nov 2014 01:08:04 -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=3pNCy/G2deQfFk3BpGlqO6MUbxu2cADTOkaLNAPDktc=;\n\tb=LpsNyzLj686H6aJwe6Ta9+Aw0qruh2cw8PZEMIa2vvc0UWpGy2h1FzvbDtwo4mU6AS\n\tMZ9bYBd4A66Dkoa6/r7MNqDUcDVuhS+UrV1llXox4K/d+Ce6ZoW4FxYv85U6TkLQo3nz\n\tC3/i8c8z/rvUL07BISoQ6PDn8nTN7LFYXy5xMkvUqjDXnpPO/Kj0+XLiMvTqYyenaSc3\n\t4OkqIt1nPCBY1TkW8MA/6c96TqE942UhmnKZkMPoy+yiVyOYMVxbnL4SnXAbiSu5bZNV\n\touJAENl1jxTXYW8lS7gbq4drZCbvX6/7wQCd/EKYmk6gPsMNKt/64seXNhwv1CZ4ElGp\n\tGJWw==", "X-Gm-Message-State": "ALoCoQmrgMau8U5MytbnxLdHdWiYcmShcWZfXFC+32v7Qa6eccxUkb2tbI1KCSyV4SEPZw2rCqlP", "X-Received": "by 10.66.161.3 with SMTP id xo3mr27674339pab.131.1416474485003; \n\tThu, 20 Nov 2014 01:08:05 -0800 (PST)", "From": "Tetsuya Mukawa <mukawa@igel.co.jp>", "To": "dev@dpdk.org", "Date": "Thu, 20 Nov 2014 18:06:33 +0900", "Message-Id": "<1416474399-16851-20-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 19/25] eal/pci: Change scope of rte_eal_pci_scan\n\tto global", "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 is called by port hotplug framework, so change scope of the\nfunction to global.\n\nSigned-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>\n---\n lib/librte_eal/common/include/eal_private.h | 11 +++++++++++\n lib/librte_eal/linuxapp/eal/eal_pci.c | 6 +++---\n 2 files changed, 14 insertions(+), 3 deletions(-)", "diff": "diff --git a/lib/librte_eal/common/include/eal_private.h b/lib/librte_eal/common/include/eal_private.h\nindex 232fcec..a1127ab 100644\n--- a/lib/librte_eal/common/include/eal_private.h\n+++ b/lib/librte_eal/common/include/eal_private.h\n@@ -154,6 +154,17 @@ struct rte_pci_driver;\n struct rte_pci_device;\n \n /**\n+ * Scan the content of the PCI bus, and the devices in the devices\n+ * list\n+ *\n+ * This function is private to EAL.\n+ *\n+ * @return\n+ * 0 on success, negative on error\n+ */\n+int rte_eal_pci_scan(void);\n+\n+/**\n * Mmap memory for single PCI device\n *\n * This function is private to EAL.\ndiff --git a/lib/librte_eal/linuxapp/eal/eal_pci.c b/lib/librte_eal/linuxapp/eal/eal_pci.c\nindex 85cdd27..0317366 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_pci.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_pci.c\n@@ -361,8 +361,8 @@ error:\n * Scan the content of the PCI bus, and the devices in the devices\n * list\n */\n-static int\n-pci_scan(void)\n+int\n+rte_eal_pci_scan(void)\n {\n \tstruct dirent *e;\n \tDIR *dir;\n@@ -612,7 +612,7 @@ rte_eal_pci_init(void)\n \tif (internal_config.no_pci)\n \t\treturn 0;\n \n-\tif (pci_scan() < 0) {\n+\tif (rte_eal_pci_scan() < 0) {\n \t\tRTE_LOG(ERR, EAL, \"%s(): Cannot scan PCI bus\\n\", __func__);\n \t\treturn -1;\n \t}\n", "prefixes": [ "dpdk-dev", "19/25" ] }{ "id": 1382, "url": "