Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/86223/?format=api
http://patches.dpdk.org/api/patches/86223/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210108165216.649086-1-kumar.amber@intel.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": "<20210108165216.649086-1-kumar.amber@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210108165216.649086-1-kumar.amber@intel.com", "date": "2021-01-08T16:52:16", "name": "[v9] raw/ioat: add secondary process support", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "15b58dab0862908ac12382a91cfb323a63a5e8a4", "submitter": { "id": 1516, "url": "http://patches.dpdk.org/api/people/1516/?format=api", "name": "Amber, Kumar", "email": "kumar.amber@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20210108165216.649086-1-kumar.amber@intel.com/mbox/", "series": [ { "id": 14614, "url": "http://patches.dpdk.org/api/series/14614/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14614", "date": "2021-01-08T16:52:16", "name": "[v9] raw/ioat: add secondary process support", "version": 9, "mbox": "http://patches.dpdk.org/series/14614/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/86223/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/86223/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A4CC8A0524;\n\tFri, 8 Jan 2021 18:00:29 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 68FA2140E3D;\n\tFri, 8 Jan 2021 18:00:28 +0100 (CET)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id 13BA4140E33\n for <dev@dpdk.org>; Fri, 8 Jan 2021 18:00:25 +0100 (CET)", "from orsmga007.jf.intel.com ([10.7.209.58])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Jan 2021 09:00:24 -0800", "from bmca4bf01706bbf.iind.intel.com (HELO localhost.localdomain)\n ([10.190.213.111])\n by orsmga007.jf.intel.com with ESMTP; 08 Jan 2021 09:00:24 -0800" ], "IronPort-SDR": [ "\n moKYSWVZBYN6Ysrp7hwRDFnW8Y17I7EhQXnEVxkz0hMlSfSMc+1WrTeGiFE8uCwPnC7pW74z21\n v2B9K220hWxQ==", "\n 1ZMaP91hTeWVV3Uo//QwEr1EH8Cv4+xkd30AgDqO23oBJBKUXDigvpv/0XcGy8/kSqxKxHQCYB\n DSGrAx9CdfoQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9858\"; a=\"176846398\"", "E=Sophos;i=\"5.79,331,1602572400\"; d=\"scan'208\";a=\"176846398\"", "E=Sophos;i=\"5.79,331,1602572400\"; d=\"scan'208\";a=\"388234633\"" ], "X-ExtLoop1": "1", "From": "Kumar Amber <kumar.amber@intel.com>", "To": "dev@dpdk.org", "Date": "Fri, 8 Jan 2021 22:22:16 +0530", "Message-Id": "<20210108165216.649086-1-kumar.amber@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20210108160854.639870-1-kumar.amber@intel.com>", "References": "<20210108160854.639870-1-kumar.amber@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v9] raw/ioat: add secondary process support", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add support for secondary processes in ioat devices. The update\nallocates a memzone for a primary process or returns it in a\nsecondary process.\n\nSigned-off-by: Kumar Amber <kumar.amber@intel.com>\n\n---\nv5\n* add error check for memzone lookup\nv6\n* fix compilation\nv7\n* include dev ops for secondary\nv8\n* fix wrong memzone alloaction\nv9\n* fix comments\n---\n drivers/raw/ioat/ioat_common.c | 15 +++++++++++++++\n drivers/raw/ioat/ioat_rawdev.c | 15 +++++++++++++++\n 2 files changed, 30 insertions(+)", "diff": "diff --git a/drivers/raw/ioat/ioat_common.c b/drivers/raw/ioat/ioat_common.c\nindex 142e171bc9..d055c36a2a 100644\n--- a/drivers/raw/ioat/ioat_common.c\n+++ b/drivers/raw/ioat/ioat_common.c\n@@ -215,7 +215,22 @@ idxd_rawdev_create(const char *name, struct rte_device *dev,\n \t\tgoto cleanup;\n \t}\n \n+\t/* Allocate memory for the primary process or else return the memory\n+\t * of primary memzone for the secondary process.\n+\t */\n \tsnprintf(mz_name, sizeof(mz_name), \"rawdev%u_private\", rawdev->dev_id);\n+\tif (rte_eal_process_type() == RTE_PROC_SECONDARY) {\n+\t\tmz = rte_memzone_lookup(mz_name);\n+\t\tif (mz == NULL) {\n+\t\t\tIOAT_PMD_ERR(\"Unable lookup memzone for private data\\n\");\n+\t\t\tret = -ENOMEM;\n+\t\t\tgoto cleanup;\n+\t\t}\n+\t\trawdev->dev_private = mz->addr;\n+\t\trawdev->dev_ops = ops;\n+\t\trawdev->device = dev;\n+\t\treturn 0;\n+\t}\n \tmz = rte_memzone_reserve(mz_name, sizeof(struct idxd_rawdev),\n \t\t\tdev->numa_node, RTE_MEMZONE_IOVA_CONTIG);\n \tif (mz == NULL) {\ndiff --git a/drivers/raw/ioat/ioat_rawdev.c b/drivers/raw/ioat/ioat_rawdev.c\nindex 2c88b4369f..77216f67f5 100644\n--- a/drivers/raw/ioat/ioat_rawdev.c\n+++ b/drivers/raw/ioat/ioat_rawdev.c\n@@ -165,7 +165,22 @@ ioat_rawdev_create(const char *name, struct rte_pci_device *dev)\n \t\tgoto cleanup;\n \t}\n \n+\t/* Allocate memory for the primary process or else return the memory\n+\t * of primary memzone for the secondary process.\n+\t */\n \tsnprintf(mz_name, sizeof(mz_name), \"rawdev%u_private\", rawdev->dev_id);\n+\tif (rte_eal_process_type() == RTE_PROC_SECONDARY) {\n+\t\tmz = rte_memzone_lookup(mz_name);\n+\t\tif (mz == NULL) {\n+\t\t\tIOAT_PMD_ERR(\"Unable lookup memzone for private data\\n\");\n+\t\t\tret = -ENOMEM;\n+\t\t\tgoto cleanup;\n+\t\t}\n+\t\trawdev->dev_private = mz->addr;\n+\t\trawdev->dev_ops = &ioat_rawdev_ops;\n+\t\trawdev->device = &dev->device;\n+\t\treturn 0;\n+\t}\n \tmz = rte_memzone_reserve(mz_name, sizeof(struct rte_ioat_rawdev),\n \t\t\tdev->device.numa_node, RTE_MEMZONE_IOVA_CONTIG);\n \tif (mz == NULL) {\n", "prefixes": [ "v9" ] }{ "id": 86223, "url": "