Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/106004/?format=api
http://patches.dpdk.org/api/patches/106004/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220118073739.2652-3-wei.huang@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": "<20220118073739.2652-3-wei.huang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220118073739.2652-3-wei.huang@intel.com", "date": "2022-01-18T07:37:37", "name": "[v2,2/4] raw/ifpga: fix pthread cannot join", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": true, "hash": "32737ac42928b2e18dd1cbda3b3f1dd81f7f4080", "submitter": { "id": 2033, "url": "http://patches.dpdk.org/api/people/2033/?format=api", "name": "Wei Huang", "email": "wei.huang@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220118073739.2652-3-wei.huang@intel.com/mbox/", "series": [ { "id": 21224, "url": "http://patches.dpdk.org/api/series/21224/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=21224", "date": "2022-01-18T07:37:35", "name": "Fix bugs found in raw/ifpga development for arrow creek", "version": 2, "mbox": "http://patches.dpdk.org/series/21224/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/106004/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/106004/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 (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id A56E3A00C3;\n\tTue, 18 Jan 2022 08:41:00 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4F72F426F6;\n\tTue, 18 Jan 2022 08:40:49 +0100 (CET)", "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 67F2C426F4;\n Tue, 18 Jan 2022 08:40:47 +0100 (CET)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Jan 2022 23:40:46 -0800", "from unknown (HELO localhost.localdomain.sh.intel.com)\n ([10.238.175.107])\n by orsmga004.jf.intel.com with ESMTP; 17 Jan 2022 23:40:45 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1642491647; x=1674027647;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=QfZtFfcQkK07EZZ7M7FrQ0FxZuMH5UyZmpwyrvNe7I8=;\n b=ExcBj/LF7IdLqoH3/s+gem1cZQn7G/XsfJbtPeHXkWvzKZ8QzG7N300G\n JXeHUHup0pu4wn3cxO+In8VYrPQ1vmNtm4Q7V17BAuvnbf14GUICcTodV\n dg5OO9cNbdjmBB+v4jrXjoHFxgu7+87nIVwSVIBDFCgm3bkrXM3hG5BP1\n q3Gj3kOmk33mWS7ewwHY412Cny9eSoSGMC+SDsS0mKutNXL+ttu6H+uW8\n HdmU0GbjPVSQdDe62FpJrmHT2ff+DZlbOc3e6zSzzoHGSTMErLD3fWiN6\n ka2OZGDJ24Cg66/hHCyIVEGLW+CJse6bmiA2FvIWpATklPGkbQb6Um2+a w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10230\"; a=\"225436389\"", "E=Sophos;i=\"5.88,296,1635231600\"; d=\"scan'208\";a=\"225436389\"", "E=Sophos;i=\"5.88,296,1635231600\"; d=\"scan'208\";a=\"625422772\"" ], "X-ExtLoop1": "1", "From": "Wei Huang <wei.huang@intel.com>", "To": "dev@dpdk.org,\n\trosen.xu@intel.com,\n\tqi.z.zhang@intel.com", "Cc": "stable@dpdk.org,\n\ttianfei.zhang@intel.com,\n\tferruh.yigit@intel.com", "Subject": "[PATCH v2 2/4] raw/ifpga: fix pthread cannot join", "Date": "Tue, 18 Jan 2022 02:37:37 -0500", "Message-Id": "<20220118073739.2652-3-wei.huang@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20220118073739.2652-1-wei.huang@intel.com>", "References": "<20220118031738.2059-1-wei.huang@intel.com>\n <20220118073739.2652-1-wei.huang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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" }, "content": "From: Tianfei Zhang <tianfei.zhang@intel.com>\n\nWhen we want to close a thread, we should set a flag to\nthread handler function.\n\nFixes: 9c006c45 (\"raw/ifpga: scan PCIe BDF device tree\")\nCc: stable@dpdk.org\n\nSigned-off-by: Tianfei Zhang <tianfei.zhang@intel.com>\n---\n drivers/raw/ifpga/ifpga_rawdev.c | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)", "diff": "diff --git a/drivers/raw/ifpga/ifpga_rawdev.c b/drivers/raw/ifpga/ifpga_rawdev.c\nindex 8d9db58..9663b67 100644\n--- a/drivers/raw/ifpga/ifpga_rawdev.c\n+++ b/drivers/raw/ifpga/ifpga_rawdev.c\n@@ -497,7 +497,7 @@ static int set_surprise_link_check_aer(\n \tint gsd_enable, ret;\n #define MS 1000\n \n-\twhile (1) {\n+\twhile (ifpga_monitor_start) {\n \t\tgsd_enable = 0;\n \t\tfor (i = 0; i < IFPGA_RAWDEV_NUM; i++) {\n \t\t\tifpga_rdev = &ifpga_rawdevices[i];\n@@ -544,7 +544,9 @@ static int set_surprise_link_check_aer(\n {\n \tint ret;\n \n-\tif (ifpga_monitor_start == 1) {\n+\tif (ifpga_monitor_start == 1 && ifpga_monitor_start_thread) {\n+\t\tifpga_monitor_start = 0;\n+\n \t\tret = pthread_cancel(ifpga_monitor_start_thread);\n \t\tif (ret)\n \t\t\tIFPGA_RAWDEV_PMD_ERR(\"Can't cancel the thread\");\n@@ -553,8 +555,6 @@ static int set_surprise_link_check_aer(\n \t\tif (ret)\n \t\t\tIFPGA_RAWDEV_PMD_ERR(\"Can't join the thread\");\n \n-\t\tifpga_monitor_start = 0;\n-\n \t\treturn ret;\n \t}\n \n", "prefixes": [ "v2", "2/4" ] }{ "id": 106004, "url": "