Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/125336/?format=api
http://patches.dpdk.org/api/patches/125336/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1679338836-21321-7-git-send-email-roretzla@linux.microsoft.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": "<1679338836-21321-7-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1679338836-21321-7-git-send-email-roretzla@linux.microsoft.com", "date": "2023-03-20T19:00:26", "name": "[v3,06/16] net/cnxk: use previous value atomic fetch operations", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "9dbd21c691fb043c4ef22d007daeddfba8a2b03a", "submitter": { "id": 2077, "url": "http://patches.dpdk.org/api/people/2077/?format=api", "name": "Tyler Retzlaff", "email": "roretzla@linux.microsoft.com" }, "delegate": { "id": 24651, "url": "http://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1679338836-21321-7-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 27471, "url": "http://patches.dpdk.org/api/series/27471/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27471", "date": "2023-03-20T19:00:21", "name": "replace __atomic operations returning new value", "version": 3, "mbox": "http://patches.dpdk.org/series/27471/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/125336/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/125336/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 2EE54427E5;\n\tMon, 20 Mar 2023 20:01:48 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 80A5342D2C;\n\tMon, 20 Mar 2023 20:01:13 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id 45E28410EF\n for <dev@dpdk.org>; Mon, 20 Mar 2023 20:01:03 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 12C2820FB405; Mon, 20 Mar 2023 12:01:01 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 12C2820FB405", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1679338862;\n bh=p3kSYY434iotxhxJBRK1kyamDWjPGKcQpRcSQ82xaeY=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=la7SY5MSuXrBef+5PkMOkYPk6TksAQdUU+ItQD5vuiGluA8DFodF2q0zTTcZDdlua\n dwh0tQ7isYNdlzcc5S5NTQ8G9c96Zb/DHozZZL9kO1UNA2BevMRsDRbmcsQJ2oClGe\n A3KtQiTkD9+lBitvQ14GEp+y5vTQ4Q3fcyDAbJ28=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "Honnappa.Nagarahalli@arm.com, Ruifeng.Wang@arm.com, thomas@monjalon.net,\n pbhagavatula@marvell.com, ndabilpuram@marvell.com,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH v3 06/16] net/cnxk: use previous value atomic fetch operations", "Date": "Mon, 20 Mar 2023 12:00:26 -0700", "Message-Id": "<1679338836-21321-7-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1679338836-21321-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1678486530-20688-1-git-send-email-roretzla@linux.microsoft.com>\n <1679338836-21321-1-git-send-email-roretzla@linux.microsoft.com>", "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": "Use __atomic_fetch_{add,and,or,sub,xor} instead of\n__atomic_{add,and,or,sub,xor}_fetch adding the necessary code to\nallow consumption of the resulting value.\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\nAcked-by: Nithin Dabilpuram <ndabilpuram@marvell.com>\nReviewed-by: Ruifeng Wang <ruifeng.wang@arm.com>\n---\n drivers/net/cnxk/cn10k_tx.h | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/net/cnxk/cn10k_tx.h b/drivers/net/cnxk/cn10k_tx.h\nindex a72a803..c9ec01c 100644\n--- a/drivers/net/cnxk/cn10k_tx.h\n+++ b/drivers/net/cnxk/cn10k_tx.h\n@@ -108,7 +108,7 @@\n retry:\n \twhile (__atomic_load_n(&txq->fc_cache_pkts, __ATOMIC_RELAXED) < 0)\n \t\t;\n-\tcached = __atomic_sub_fetch(&txq->fc_cache_pkts, req, __ATOMIC_ACQUIRE);\n+\tcached = __atomic_fetch_sub(&txq->fc_cache_pkts, req, __ATOMIC_ACQUIRE) - req;\n \t/* Check if there is enough space, else update and retry. */\n \tif (cached < 0) {\n \t\t/* Check if we have space else retry. */\n@@ -302,7 +302,7 @@\n \n again:\n \tfc_sw = txq->cpt_fc_sw;\n-\tval = __atomic_sub_fetch(fc_sw, nb_pkts, __ATOMIC_RELAXED);\n+\tval = __atomic_fetch_sub(fc_sw, nb_pkts, __ATOMIC_RELAXED) - nb_pkts;\n \tif (likely(val >= 0))\n \t\treturn;\n \n", "prefixes": [ "v3", "06/16" ] }{ "id": 125336, "url": "