Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/73522/?format=api
https://patches.dpdk.org/api/patches/73522/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200708094401.16564-1-arkadiuszx.kusztal@intel.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": "<20200708094401.16564-1-arkadiuszx.kusztal@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200708094401.16564-1-arkadiuszx.kusztal@intel.com", "date": "2020-07-08T09:44:01", "name": "drivers/qat: fix lacking memzone lookup in compression pmd", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "fc89e38f6bc6f9de516b50d71c8ae1aa591ea1c4", "submitter": { "id": 452, "url": "https://patches.dpdk.org/api/people/452/?format=api", "name": "Arkadiusz Kusztal", "email": "arkadiuszx.kusztal@intel.com" }, "delegate": { "id": 6690, "url": "https://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200708094401.16564-1-arkadiuszx.kusztal@intel.com/mbox/", "series": [ { "id": 10887, "url": "https://patches.dpdk.org/api/series/10887/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=10887", "date": "2020-07-08T09:44:01", "name": "drivers/qat: fix lacking memzone lookup in compression pmd", "version": 1, "mbox": "https://patches.dpdk.org/series/10887/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/73522/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/73522/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id EB333A00BE;\n\tWed, 8 Jul 2020 11:46:32 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id C13161DA9A;\n\tWed, 8 Jul 2020 11:46:32 +0200 (CEST)", "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by dpdk.org (Postfix) with ESMTP id E85F51D502\n for <dev@dpdk.org>; Wed, 8 Jul 2020 11:46:30 +0200 (CEST)", "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Jul 2020 02:46:30 -0700", "from akusztax-mobl.ger.corp.intel.com ([10.104.125.99])\n by fmsmga002.fm.intel.com with ESMTP; 08 Jul 2020 02:46:28 -0700" ], "IronPort-SDR": [ "\n 9+C9YLLG8JALkuPgzUKt2i/g/dn2w5UH1jM3soe8w2e9IVEZdiZVJK5ES+P6twq7wuZsIkcgqp\n +pCnZo/iGj7Q==", "\n 8dd9uWF+Yagbdwl7+Y/M2YoD9szzftBk9gvAAZ4danNLhoGTASpyYJ7AfBRDBfAN+wbm7c8rJp\n ech2SoDbMuaQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9675\"; a=\"127847269\"", "E=Sophos;i=\"5.75,327,1589266800\"; d=\"scan'208\";a=\"127847269\"", "E=Sophos;i=\"5.75,327,1589266800\"; d=\"scan'208\";a=\"315817961\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Arek Kusztal <arkadiuszx.kusztal@intel.com>", "To": "dev@dpdk.org", "Cc": "akhil.goyal@nxp.com, fiona.trahe@intel.com,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>", "Date": "Wed, 8 Jul 2020 11:44:01 +0200", "Message-Id": "<20200708094401.16564-1-arkadiuszx.kusztal@intel.com>", "X-Mailer": "git-send-email 2.19.1.windows.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH] drivers/qat: fix lacking memzone lookup in\n\tcompression pmd", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "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": "Because capability memzone of compression does not have lookup\ncall, second and subsequent devices cannot be created.\n\nFixes: 0e6fff16a7a2 (\"drivers: add multi process handling of capabilities in QAT\")\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n drivers/compress/qat/qat_comp_pmd.c | 9 ++++++---\n 1 file changed, 6 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/compress/qat/qat_comp_pmd.c b/drivers/compress/qat/qat_comp_pmd.c\nindex ecf972a..034abad 100644\n--- a/drivers/compress/qat/qat_comp_pmd.c\n+++ b/drivers/compress/qat/qat_comp_pmd.c\n@@ -726,9 +726,12 @@ qat_comp_dev_create(struct qat_pci_device *qat_pci_dev,\n \t\tbreak;\n \t}\n \n-\tcomp_dev->capa_mz = rte_memzone_reserve(capa_memz_name,\n-\t\tcapa_size,\n-\t\trte_socket_id(), 0);\n+\tcomp_dev->capa_mz = rte_memzone_lookup(capa_memz_name);\n+\tif (comp_dev->capa_mz == NULL) {\n+\t\tcomp_dev->capa_mz = rte_memzone_reserve(capa_memz_name,\n+\t\t\tcapa_size,\n+\t\t\trte_socket_id(), 0);\n+\t}\n \tif (comp_dev->capa_mz == NULL) {\n \t\tQAT_LOG(DEBUG,\n \t\t\t\"Error allocating memzone for capabilities, destroying PMD for %s\",\n", "prefixes": [] }{ "id": 73522, "url": "