Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/5974/?format=api
http://patchwork.dpdk.org/api/patches/5974/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1435656489-27986-7-git-send-email-adrien.mazarguil@6wind.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1435656489-27986-7-git-send-email-adrien.mazarguil@6wind.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1435656489-27986-7-git-send-email-adrien.mazarguil@6wind.com", "date": "2015-06-30T09:27:52", "name": "[dpdk-dev,v2,06/23] mlx4: allow applications to partially use fork()", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "5fcbca31c2a2757cd9b229fcafdcb250bb05bfad", "submitter": { "id": 165, "url": "http://patchwork.dpdk.org/api/people/165/?format=api", "name": "Adrien Mazarguil", "email": "adrien.mazarguil@6wind.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1435656489-27986-7-git-send-email-adrien.mazarguil@6wind.com/mbox/", "series": [], "comments": "http://patchwork.dpdk.org/api/patches/5974/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/5974/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 385D6C460;\n\tTue, 30 Jun 2015 11:28:42 +0200 (CEST)", "from mail-wg0-f50.google.com (mail-wg0-f50.google.com\n\t[74.125.82.50]) by dpdk.org (Postfix) with ESMTP id B326CC364\n\tfor <dev@dpdk.org>; Tue, 30 Jun 2015 11:28:36 +0200 (CEST)", "by wgjx7 with SMTP id x7so4209426wgj.2\n\tfor <dev@dpdk.org>; Tue, 30 Jun 2015 02:28:36 -0700 (PDT)", "from 6wind.com (6wind.net2.nerim.net. [213.41.151.210])\n\tby mx.google.com with ESMTPSA id\n\tq4sm67905716wju.14.2015.06.30.02.28.35\n\t(version=TLSv1.2 cipher=RC4-SHA bits=128/128);\n\tTue, 30 Jun 2015 02:28:35 -0700 (PDT)" ], "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=qcll7noLkF385UYYa6aF0bhLN06yR9J5Urhaqzysvpo=;\n\tb=Kh9ht8ylLit1+U9lYqo90aNcnkQd05EpDBCdOSG8R6inUrTcjdjLHTCyLwex+EMLSJ\n\tZDYD1Gw20gIZA7OL0TPXHB3q9T9JsNDZMiLkIDRUvMuCINBpxhdtwloIXVM/P8mhdY13\n\tvhf1vFakGTJuC77hIkGmY4Yxad67l1vtBrfQBio2g2eg7ah+oI1lUf1Hckn25RR86uPG\n\tpe+w+5C8aapgSx5Tt3Ou1rYBn7ZibP9IBipEA7WefiA1ao/1JR/TfPy2ZLv0fME1KAvt\n\tU2/pCLvkYWprwn5PlDaOO4P28SeKCAz1xEpl8iSozE2F/Irx+bYEC5JhmpbVhpuWABf1\n\t+0yA==", "X-Gm-Message-State": "ALoCoQkIQ0+h0iOO6kPPUk9TBr9BtgRiyjr9ClgBB/d1MwsZmt5G8fSUwVYLSZtMZKvI5Msp/XRd", "X-Received": "by 10.180.84.202 with SMTP id b10mr31770346wiz.23.1435656516636; \n\tTue, 30 Jun 2015 02:28:36 -0700 (PDT)", "From": "Adrien Mazarguil <adrien.mazarguil@6wind.com>", "To": "dev@dpdk.org", "Date": "Tue, 30 Jun 2015 11:27:52 +0200", "Message-Id": "<1435656489-27986-7-git-send-email-adrien.mazarguil@6wind.com>", "X-Mailer": "git-send-email 2.1.0", "In-Reply-To": "<1435656489-27986-1-git-send-email-adrien.mazarguil@6wind.com>", "References": "<1433546120-2254-1-git-send-email-adrien.mazarguil@6wind.com>\n\t<1435656489-27986-1-git-send-email-adrien.mazarguil@6wind.com>", "Subject": "[dpdk-dev] [PATCH v2 06/23] mlx4: allow applications to partially\n\tuse fork()", "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": "From: Olga Shern <olgas@mellanox.com>\n\nAlthough using the PMD from a forked process is still unsupported, this\ncommit makes Verbs safe enough for applications to call fork() for other\npurposes.\n\nSigned-off-by: Olga Shern <olgas@mellanox.com>\nSigned-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>\n---\n drivers/net/mlx4/mlx4.c | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/drivers/net/mlx4/mlx4.c b/drivers/net/mlx4/mlx4.c\nindex 8be1574..ed68beb 100644\n--- a/drivers/net/mlx4/mlx4.c\n+++ b/drivers/net/mlx4/mlx4.c\n@@ -4686,6 +4686,14 @@ rte_mlx4_pmd_init(const char *name, const char *args)\n {\n \t(void)name;\n \t(void)args;\n+\t/*\n+\t * RDMAV_HUGEPAGES_SAFE tells ibv_fork_init() we intend to use\n+\t * huge pages. Calling ibv_fork_init() during init allows\n+\t * applications to use fork() safely for purposes other than\n+\t * using this PMD, which is not supported in forked processes.\n+\t */\n+\tsetenv(\"RDMAV_HUGEPAGES_SAFE\", \"1\", 1);\n+\tibv_fork_init();\n \trte_eal_pci_register(&mlx4_driver.pci_drv);\n \treturn 0;\n }\n", "prefixes": [ "dpdk-dev", "v2", "06/23" ] }{ "id": 5974, "url": "