Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/12318/?format=api
http://patches.dpdk.org/api/patches/12318/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1461937456-22943-16-git-send-email-viktorin@rehivetech.com/", "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": "<1461937456-22943-16-git-send-email-viktorin@rehivetech.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1461937456-22943-16-git-send-email-viktorin@rehivetech.com", "date": "2016-04-29T13:44:16", "name": "[dpdk-dev,15/15] vfio: change VFIO init to be extendable", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "1b459a5d1ea0770806c20583eea391cacf608dca", "submitter": { "id": 292, "url": "http://patches.dpdk.org/api/people/292/?format=api", "name": "Jan Viktorin", "email": "viktorin@rehivetech.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1461937456-22943-16-git-send-email-viktorin@rehivetech.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/12318/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/12318/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 80CAB5961;\n\tFri, 29 Apr 2016 15:46:35 +0200 (CEST)", "from wes1-so2.wedos.net (wes1-so2.wedos.net [46.28.106.16])\n\tby dpdk.org (Postfix) with ESMTP id ACF015597\n\tfor <dev@dpdk.org>; Fri, 29 Apr 2016 15:46:20 +0200 (CEST)", "from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz\n\t[147.229.13.147])\n\tby wes1-so2.wedos.net (Postfix) with ESMTPSA id 3qxFND3yDlz7RT;\n\tFri, 29 Apr 2016 15:46:20 +0200 (CEST)" ], "From": "Jan Viktorin <viktorin@rehivetech.com>", "To": "dev@dpdk.org", "Cc": "Jan Viktorin <viktorin@rehivetech.com>,\n\tAnatoly Burakov <anatoly.burakov@intel.com>,\n\tDavid Marchand <david.marchand@6wind.com>,\n\tKeith Wiles <keith.wiles@intel.com>,\n\tSantosh Shukla <sshukla@mvista.com>, \n\tStephen Hemminger <stephen@networkplumber.org>", "Date": "Fri, 29 Apr 2016 15:44:16 +0200", "Message-Id": "<1461937456-22943-16-git-send-email-viktorin@rehivetech.com>", "X-Mailer": "git-send-email 2.8.0", "In-Reply-To": "<1461937456-22943-1-git-send-email-viktorin@rehivetech.com>", "References": "<1461937456-22943-1-git-send-email-viktorin@rehivetech.com>", "Subject": "[dpdk-dev] [PATCH 15/15] vfio: change VFIO init to be extendable", "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": "We can now just OR the vfio_enabled sequentially and so adding new VFIO\nsubsystems (vfio_platform) is possible.\n\nSigned-off-by: Jan Viktorin <viktorin@rehivetech.com>\n---\n lib/librte_eal/linuxapp/eal/eal.c | 10 ++++++----\n 1 file changed, 6 insertions(+), 4 deletions(-)", "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c\nindex 92225cf..1549fe5 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -727,12 +727,14 @@ rte_eal_iopl_init(void)\n #ifdef VFIO_PRESENT\n static int rte_eal_vfio_setup(void)\n {\n-\tif (internal_config.no_pci)\n-\t\treturn 0;\n+\tint vfio_enabled = 0;\n \n-\tpci_vfio_enable();\n+\tif (!internal_config.no_pci) {\n+\t\tpci_vfio_enable();\n+\t\tvfio_enabled |= pci_vfio_is_enabled();\n+\t}\n \n-\tif (pci_vfio_is_enabled()) {\n+\tif (vfio_enabled) {\n \n \t\t/* if we are primary process, create a thread to communicate with\n \t\t * secondary processes. the thread will use a socket to wait for\n", "prefixes": [ "dpdk-dev", "15/15" ] }{ "id": 12318, "url": "