Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/131387/?format=api
http://patchwork.dpdk.org/api/patches/131387/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20230913114351.1940459-2-thomas@monjalon.net/", "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": "<20230913114351.1940459-2-thomas@monjalon.net>", "list_archive_url": "https://inbox.dpdk.org/dev/20230913114351.1940459-2-thomas@monjalon.net", "date": "2023-09-13T11:28:14", "name": "[v3,01/11] devtools: warn when adding some pthread calls", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "a4bef7d8d69b91d1d8b92a646718cac5bb06bfd6", "submitter": { "id": 685, "url": "http://patchwork.dpdk.org/api/people/685/?format=api", "name": "Thomas Monjalon", "email": "thomas@monjalon.net" }, "delegate": { "id": 24651, "url": "http://patchwork.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20230913114351.1940459-2-thomas@monjalon.net/mbox/", "series": [ { "id": 29494, "url": "http://patchwork.dpdk.org/api/series/29494/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=29494", "date": "2023-09-13T11:28:13", "name": "rework thread management", "version": 3, "mbox": "http://patchwork.dpdk.org/series/29494/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/131387/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/131387/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 0ECE042588;\n\tWed, 13 Sep 2023 13:45:07 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 510AC4069F;\n\tWed, 13 Sep 2023 13:45:05 +0200 (CEST)", "from wout5-smtp.messagingengine.com (wout5-smtp.messagingengine.com\n [64.147.123.21]) by mails.dpdk.org (Postfix) with ESMTP id DCAF84069F\n for <dev@dpdk.org>; Wed, 13 Sep 2023 13:45:03 +0200 (CEST)", "from compute1.internal (compute1.nyi.internal [10.202.2.41])\n by mailout.west.internal (Postfix) with ESMTP id 9D18E3200974;\n Wed, 13 Sep 2023 07:45:02 -0400 (EDT)", "from mailfrontend1 ([10.202.2.162])\n by compute1.internal (MEProxy); Wed, 13 Sep 2023 07:45:03 -0400", "by mail.messagingengine.com (Postfix) with ESMTPA; Wed,\n 13 Sep 2023 07:45:00 -0400 (EDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h=\n cc:cc:content-transfer-encoding:content-type:content-type:date\n :date:from:from:in-reply-to:in-reply-to:message-id:mime-version\n :references:reply-to:sender:subject:subject:to:to; s=fm2; t=\n 1694605502; x=1694691902; bh=9KmtH2xdcVmEydycKsOW5EgSK9TiWdCDs/c\n RCnJvKQE=; b=u4YMEtAOVaRcSpensk7sLSa9yVHABgq1UJWhZkeYWboTGvA9iIK\n D1hoBflDiSqdKXQzUJkkGH2nNNzUTdGMVx5vqueToLdZk7x+4Hiq8Iluj58Qeobs\n tjFd6NSq2n5U9U7+tPUmHbg3Lfablou0dM1fz9lIOM07a2736JGLrakk90JIZPsW\n RTRJ9ZcAzltdZUskWVJjzZlc1vRzJPurmPJ0juuvjpRYtuJLssiV2O8yUf6/iFjR\n fmVHYRL13DpTg624RSlmyfZHmxX8tthjkcUJDIHoYaBUQ3wR9SrEZbHomZeFVyJi\n Z49J1Xi6+XwqHRvNKrl7718U3stc5nYgXDA==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n messagingengine.com; h=cc:cc:content-transfer-encoding\n :content-type:content-type:date:date:feedback-id:feedback-id\n :from:from:in-reply-to:in-reply-to:message-id:mime-version\n :references:reply-to:sender:subject:subject:to:to:x-me-proxy\n :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=\n 1694605502; x=1694691902; bh=9KmtH2xdcVmEydycKsOW5EgSK9TiWdCDs/c\n RCnJvKQE=; b=L9fNaSDfUKhS2lEckSnYJE+kG+qMkr4hBTD5XAWYsSZw2c7XTt3\n jIoZdTEwg3oCuR4BlzsSsS6oXWsBEfh6ABhhR5UXtxxLky0/x7KwWoLqeTGYYJaV\n ATUA1EyjlxW9Ve60Tv3E1LrAn433kP5QTO/qdtXcUdTgEK9ZSgvE0Kvt6VvuaYAg\n ap7CDta/kc6N95crGpy9Z0nwADTu2r2/lp8BponJjeI8ACdYO/pxvAQ1rxHt3jpf\n O5qgPv/SHkaigXYu+08rx6fqQzbxVPqHdaFxkQqAy/kLXCD6wqrY5t8CoawpCO+Y\n hn7cUA9ye3bkvaCQuB95KtQE4qVTcWNqTAg==" ], "X-ME-Sender": "<xms:vaABZVP3fF1AeGkq1bCeq3HYs3pu5rE5jcRYHqQ8UmMZ7BLJaNg9bw>\n <xme:vaABZX_841Y4rafhvwaTm-NN1yeRIrFSPX68qVIVGjRWHGC2M3uWXftkHimMJ6zhM\n fgHee0rO0WVr7XLsQ>", "X-ME-Received": "\n <xmr:vaABZUT0YLKfJNWXgaoewuEiHFng_m0_kcvPyEjU94R_TeDEkQ7WMaO7UswWRXuZBqhL9w>", "X-ME-Proxy-Cause": "\n gggruggvucftvghtrhhoucdtuddrgedviedrudeikedggeegucetufdoteggodetrfdotf\n fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen\n uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne\n cujfgurhephffvvefufffkofgjfhggtgfgsehtkeertdertdejnecuhfhrohhmpefvhhho\n mhgrshcuofhonhhjrghlohhnuceothhhohhmrghssehmohhnjhgrlhhonhdrnhgvtheqne\n cuggftrfgrthhtvghrnheptdeiffffgeefteelhfekueetueduffejgfelvedtieejudek\n gfevheetheehgeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh\n hfrhhomhepthhhohhmrghssehmohhnjhgrlhhonhdrnhgvth", "X-ME-Proxy": "<xmx:vaABZRuFUHrfOS-3lW8CRSzb-Hvccp3OJL3EHW_sKEZDufb-UbMzZg>\n <xmx:vaABZdeyBscLmuoD0DqHvb8RaIMctdBmFdTTwbmpFgcwcCEx_9xeyg>\n <xmx:vaABZd3roZPg-lOHMy9CZyb4-_QoTDhlmwUTCGptIp0kJkgqeyrhFg>\n <xmx:vqABZR4Q99jyTMEoc5Oxs29RPUKQW4s73a2tbXHLpYmgW-aWRqCYUQ>", "Feedback-ID": "i47234305:Fastmail", "From": "Thomas Monjalon <thomas@monjalon.net>", "To": "dev@dpdk.org", "Cc": "Tyler Retzlaff <roretzla@linux.microsoft.com>,\n David Marchand <david.marchand@redhat.com>,\n Ferruh Yigit <ferruh.yigit@amd.com>,\n =?utf-8?q?Morten_Br=C3=B8rup?= <mb@smartsharesystems.com>", "Subject": "[PATCH v3 01/11] devtools: warn when adding some pthread calls", "Date": "Wed, 13 Sep 2023 13:28:14 +0200", "Message-ID": "<20230913114351.1940459-2-thomas@monjalon.net>", "X-Mailer": "git-send-email 2.42.0", "In-Reply-To": "<20230913114351.1940459-1-thomas@monjalon.net>", "References": "<20230906162226.1618088-1-thomas@monjalon.net>\n <20230913114351.1940459-1-thomas@monjalon.net>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "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": "All pthread functions below have an equivalent in rte_thread API:\n\t- pthread_create\n\t- pthread_join\n\t- pthread_detach\n\t- pthread_setname_np\n\t- pthread_set_name_np\n\t- pthread_setaffinity_np\n\t- pthread_attr_setinheritsched\n\t- pthread_attr_setschedpolicy\nUsage of these functions will be raised to encourage rte_thread adoption.\n\nThe pthread functions for locks and cancel are still allowed.\n\nSigned-off-by: Thomas Monjalon <thomas@monjalon.net>\nAcked-by: Morten Brørup <mb@smartsharesystems.com>\nAcked-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n\n---\nv2: replace (|_) with _?\n---\n devtools/checkpatches.sh | 8 ++++++++\n 1 file changed, 8 insertions(+)", "diff": "diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh\nindex 55fabc5458..ec9d232393 100755\n--- a/devtools/checkpatches.sh\n+++ b/devtools/checkpatches.sh\n@@ -119,6 +119,14 @@ check_forbidden_additions() { # <patch>\n \t\t-f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \\\n \t\t\"$1\" || res=1\n \n+\t# refrain from using some pthread functions\n+\tawk -v FOLDERS=\"lib drivers app examples\" \\\n+\t\t-v EXPRESSIONS=\"pthread_(create|join|detach|set(_?name_np|affinity_np)|attr_set(inheritsched|schedpolicy))\\\\\\(\" \\\n+\t\t-v RET_ON_FAIL=1 \\\n+\t\t-v MESSAGE='Using pthread functions, prefer rte_thread' \\\n+\t\t-f $(dirname $(readlink -f $0))/check-forbidden-tokens.awk \\\n+\t\t\"$1\" || res=1\n+\n \t# forbid use of __reserved which is a reserved keyword in Windows system headers\n \tawk -v FOLDERS=\"lib drivers app examples\" \\\n \t\t-v EXPRESSIONS='\\\\<__reserved\\\\>' \\\n", "prefixes": [ "v3", "01/11" ] }{ "id": 131387, "url": "