Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/14541/?format=api
https://patches.dpdk.org/api/patches/14541/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1467645411-15494-17-git-send-email-viktorin@rehivetech.com/", "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": "<1467645411-15494-17-git-send-email-viktorin@rehivetech.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1467645411-15494-17-git-send-email-viktorin@rehivetech.com", "date": "2016-07-04T15:16:51", "name": "[dpdk-dev,v3,16/16] vfio: change VFIO init to be extendable", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "1b459a5d1ea0770806c20583eea391cacf608dca", "submitter": { "id": 292, "url": "https://patches.dpdk.org/api/people/292/?format=api", "name": "Jan Viktorin", "email": "viktorin@rehivetech.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1467645411-15494-17-git-send-email-viktorin@rehivetech.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/14541/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/14541/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 6CF8158C5;\n\tMon, 4 Jul 2016 17:17:07 +0200 (CEST)", "from wes1-so1.wedos.net (wes1-so1.wedos.net [46.28.106.15])\n\tby dpdk.org (Postfix) with ESMTP id C35113978\n\tfor <dev@dpdk.org>; Mon, 4 Jul 2016 17:16:55 +0200 (CEST)", "from pcviktorin.fit.vutbr.cz (pcviktorin.fit.vutbr.cz\n\t[147.229.13.147])\n\tby wes1-so1.wedos.net (Postfix) with ESMTPSA id 3rjrGH4KDrzBpj;\n\tMon, 4 Jul 2016 17:16:55 +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>,\n\tShreyansh Jain <shreyansh.jain@nxp.com>", "Date": "Mon, 4 Jul 2016 17:16:51 +0200", "Message-Id": "<1467645411-15494-17-git-send-email-viktorin@rehivetech.com>", "X-Mailer": "git-send-email 2.8.0", "In-Reply-To": "<1467645411-15494-1-git-send-email-viktorin@rehivetech.com>", "References": "<1467645411-15494-1-git-send-email-viktorin@rehivetech.com>", "Subject": "[dpdk-dev] [PATCH v3 16/16] 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 606b777..3fb2188 100644\n--- a/lib/librte_eal/linuxapp/eal/eal.c\n+++ b/lib/librte_eal/linuxapp/eal/eal.c\n@@ -705,12 +705,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", "v3", "16/16" ] }{ "id": 14541, "url": "