Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/133759/?format=api
http://patches.dpdk.org/api/patches/133759/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1698894265-22963-4-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": "<1698894265-22963-4-git-send-email-roretzla@linux.microsoft.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1698894265-22963-4-git-send-email-roretzla@linux.microsoft.com", "date": "2023-11-02T03:04:23", "name": "[3/5] hash: use rte atomic thread fence", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "056ce827d2e41b28e943b4dd7e4606b6b97412dd", "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/1698894265-22963-4-git-send-email-roretzla@linux.microsoft.com/mbox/", "series": [ { "id": 30107, "url": "http://patches.dpdk.org/api/series/30107/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=30107", "date": "2023-11-02T03:04:23", "name": "use rte atomic thread fence", "version": 1, "mbox": "http://patches.dpdk.org/series/30107/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/133759/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/133759/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 7FB6543268;\n\tThu, 2 Nov 2023 04:04:33 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6A0ED402C4;\n\tThu, 2 Nov 2023 04:04:33 +0100 (CET)", "from linux.microsoft.com (linux.microsoft.com [13.77.154.182])\n by mails.dpdk.org (Postfix) with ESMTP id BF1F840284\n for <dev@dpdk.org>; Thu, 2 Nov 2023 04:04:31 +0100 (CET)", "by linux.microsoft.com (Postfix, from userid 1086)\n id 09DA320B74C3; Wed, 1 Nov 2023 20:04:30 -0700 (PDT)" ], "DKIM-Filter": "OpenDKIM Filter v2.11.0 linux.microsoft.com 09DA320B74C3", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com;\n s=default; t=1698894271;\n bh=lavQ2zNV2kAJsaK2MwR09naFlG2mmCAk2MzoljoaY0I=;\n h=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n b=AmBGpWjlVoHyA3t8lcmPdNxv2e++c3Udq/TPJGP/KTzKOVPNovuvFUNpIdcOPM8x4\n 8EbEDsM49HZSFIG9v/wOv33uID2ipMHFPTmAoCVL5JBGiXlLWiWNITNADCTOY9N+m1\n ZhnkGHDYNsOFXRyn0+TWIp3hDRoXphLartOXReeg=", "From": "Tyler Retzlaff <roretzla@linux.microsoft.com>", "To": "dev@dpdk.org", "Cc": "Bruce Richardson <bruce.richardson@intel.com>,\n David Hunt <david.hunt@intel.com>,\n Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>,\n Jerin Jacob <jerinj@marvell.com>,\n Konstantin Ananyev <konstantin.v.ananyev@yandex.ru>,\n Sameh Gobriel <sameh.gobriel@intel.com>,\n Sunil Kumar Kori <skori@marvell.com>,\n Vladimir Medvedkin <vladimir.medvedkin@intel.com>,\n Yipeng Wang <yipeng1.wang@intel.com>,\n Tyler Retzlaff <roretzla@linux.microsoft.com>", "Subject": "[PATCH 3/5] hash: use rte atomic thread fence", "Date": "Wed, 1 Nov 2023 20:04:23 -0700", "Message-Id": "<1698894265-22963-4-git-send-email-roretzla@linux.microsoft.com>", "X-Mailer": "git-send-email 1.8.3.1", "In-Reply-To": "<1698894265-22963-1-git-send-email-roretzla@linux.microsoft.com>", "References": "<1698894265-22963-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 __rte_atomic_thread_fence instead of directly using\n__atomic_thread_fence builtin gcc intrinsic\n\nSigned-off-by: Tyler Retzlaff <roretzla@linux.microsoft.com>\n---\n lib/hash/rte_cuckoo_hash.c | 10 +++++-----\n 1 file changed, 5 insertions(+), 5 deletions(-)", "diff": "diff --git a/lib/hash/rte_cuckoo_hash.c b/lib/hash/rte_cuckoo_hash.c\nindex b2cf60d..ca350ed 100644\n--- a/lib/hash/rte_cuckoo_hash.c\n+++ b/lib/hash/rte_cuckoo_hash.c\n@@ -871,7 +871,7 @@ struct rte_hash *\n \t\t\t/* The store to sig_current should not\n \t\t\t * move above the store to tbl_chng_cnt.\n \t\t\t */\n-\t\t\t__atomic_thread_fence(rte_memory_order_release);\n+\t\t\t__rte_atomic_thread_fence(rte_memory_order_release);\n \t\t}\n \n \t\t/* Need to swap current/alt sig to allow later\n@@ -903,7 +903,7 @@ struct rte_hash *\n \t\t/* The store to sig_current should not\n \t\t * move above the store to tbl_chng_cnt.\n \t\t */\n-\t\t__atomic_thread_fence(rte_memory_order_release);\n+\t\t__rte_atomic_thread_fence(rte_memory_order_release);\n \t}\n \n \tcurr_bkt->sig_current[curr_slot] = sig;\n@@ -1396,7 +1396,7 @@ struct rte_hash *\n \t\t/* The loads of sig_current in search_one_bucket\n \t\t * should not move below the load from tbl_chng_cnt.\n \t\t */\n-\t\t__atomic_thread_fence(rte_memory_order_acquire);\n+\t\t__rte_atomic_thread_fence(rte_memory_order_acquire);\n \t\t/* Re-read the table change counter to check if the\n \t\t * table has changed during search. If yes, re-do\n \t\t * the search.\n@@ -1625,7 +1625,7 @@ struct rte_hash *\n \t\t\t\t/* The store to sig_current should\n \t\t\t\t * not move above the store to tbl_chng_cnt.\n \t\t\t\t */\n-\t\t\t\t__atomic_thread_fence(rte_memory_order_release);\n+\t\t\t\t__rte_atomic_thread_fence(rte_memory_order_release);\n \t\t\t}\n \t\t\tlast_bkt->sig_current[i] = NULL_SIGNATURE;\n \t\t\trte_atomic_store_explicit(&last_bkt->key_idx[i],\n@@ -2216,7 +2216,7 @@ struct rte_hash *\n \t\t/* The loads of sig_current in compare_signatures\n \t\t * should not move below the load from tbl_chng_cnt.\n \t\t */\n-\t\t__atomic_thread_fence(rte_memory_order_acquire);\n+\t\t__rte_atomic_thread_fence(rte_memory_order_acquire);\n \t\t/* Re-read the table change counter to check if the\n \t\t * table has changed during search. If yes, re-do\n \t\t * the search.\n", "prefixes": [ "3/5" ] }{ "id": 133759, "url": "