Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/53840/?format=api
http://patches.dpdk.org/api/patches/53840/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/45017ccc707ae12055f1d242e0186e6f6a74c69b.1559147228.git.anatoly.burakov@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": "<45017ccc707ae12055f1d242e0186e6f6a74c69b.1559147228.git.anatoly.burakov@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/45017ccc707ae12055f1d242e0186e6f6a74c69b.1559147228.git.anatoly.burakov@intel.com", "date": "2019-05-29T16:30:58", "name": "[12/25] efd: use new tailq locking API", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a88e46285bc514cc67da440405380b25d81ebc53", "submitter": { "id": 4, "url": "http://patches.dpdk.org/api/people/4/?format=api", "name": "Anatoly Burakov", "email": "anatoly.burakov@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/45017ccc707ae12055f1d242e0186e6f6a74c69b.1559147228.git.anatoly.burakov@intel.com/mbox/", "series": [ { "id": 4813, "url": "http://patches.dpdk.org/api/series/4813/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=4813", "date": "2019-05-29T16:30:46", "name": "Make shared memory config non-public", "version": 1, "mbox": "http://patches.dpdk.org/series/4813/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/53840/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/53840/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@dpdk.org", "Delivered-To": "patchwork@dpdk.org", "Received": [ "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id E49E51B9CC;\n\tWed, 29 May 2019 18:31:42 +0200 (CEST)", "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 1E0161B9A7\n\tfor <dev@dpdk.org>; Wed, 29 May 2019 18:31:34 +0200 (CEST)", "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t29 May 2019 09:31:34 -0700", "from silpixa00399498.ir.intel.com (HELO\n\tsilpixa00399498.ger.corp.intel.com) ([10.237.223.125])\n\tby orsmga005.jf.intel.com with ESMTP; 29 May 2019 09:31:32 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Anatoly Burakov <anatoly.burakov@intel.com>", "To": "dev@dpdk.org", "Cc": "Byron Marohn <byron.marohn@intel.com>,\n\tPablo de Lara Guarch <pablo.de.lara.guarch@intel.com>,\n\tstephen@networkplumber.org, thomas@monjalon.net,\n\tdavid.marchand@redhat.com", "Date": "Wed, 29 May 2019 17:30:58 +0100", "Message-Id": "<45017ccc707ae12055f1d242e0186e6f6a74c69b.1559147228.git.anatoly.burakov@intel.com>", "X-Mailer": "git-send-email 2.17.1", "In-Reply-To": [ "<cover.1559147228.git.anatoly.burakov@intel.com>", "<cover.1559147228.git.anatoly.burakov@intel.com>" ], "References": [ "<cover.1559147228.git.anatoly.burakov@intel.com>", "<cover.1559147228.git.anatoly.burakov@intel.com>" ], "Subject": "[dpdk-dev] [PATCH 12/25] efd: use new tailq locking API", "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\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Replace usages of direct access to shared memory config with\ncalls to the new API.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n lib/librte_efd/rte_efd.c | 14 +++++++-------\n 1 file changed, 7 insertions(+), 7 deletions(-)", "diff": "diff --git a/lib/librte_efd/rte_efd.c b/lib/librte_efd/rte_efd.c\nindex 14e493bc3..71f067df6 100644\n--- a/lib/librte_efd/rte_efd.c\n+++ b/lib/librte_efd/rte_efd.c\n@@ -532,7 +532,7 @@ rte_efd_create(const char *name, uint32_t max_num_rules, uint32_t key_len,\n \n \tnum_chunks_shift = rte_bsf32(num_chunks);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_eal_mcfg_tailq_write_lock();\n \n \t/*\n \t * Guarantee there's no existing: this is normally already checked\n@@ -685,7 +685,7 @@ rte_efd_create(const char *name, uint32_t max_num_rules, uint32_t key_len,\n \n \tte->data = (void *) table;\n \tTAILQ_INSERT_TAIL(efd_list, te, next);\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_eal_mcfg_tailq_write_unlock();\n \n \tsnprintf(ring_name, sizeof(ring_name), \"HT_%s\", table->name);\n \t/* Create ring (Dummy slot index is not enqueued) */\n@@ -705,7 +705,7 @@ rte_efd_create(const char *name, uint32_t max_num_rules, uint32_t key_len,\n \treturn table;\n \n error_unlock_exit:\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_eal_mcfg_tailq_write_unlock();\n \trte_efd_free(table);\n \n \treturn NULL;\n@@ -720,7 +720,7 @@ rte_efd_find_existing(const char *name)\n \n \tefd_list = RTE_TAILQ_CAST(rte_efd_tailq.head, rte_efd_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_eal_mcfg_tailq_read_lock();\n \n \tTAILQ_FOREACH(te, efd_list, next)\n \t{\n@@ -728,7 +728,7 @@ rte_efd_find_existing(const char *name)\n \t\tif (strncmp(name, table->name, RTE_EFD_NAMESIZE) == 0)\n \t\t\tbreak;\n \t}\n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_eal_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\n@@ -751,7 +751,7 @@ rte_efd_free(struct rte_efd_table *table)\n \t\trte_free(table->chunks[socket_id]);\n \n \tefd_list = RTE_TAILQ_CAST(rte_efd_tailq.head, rte_efd_list);\n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_eal_mcfg_tailq_write_lock();\n \n \tTAILQ_FOREACH_SAFE(te, efd_list, next, temp) {\n \t\tif (te->data == (void *) table) {\n@@ -761,7 +761,7 @@ rte_efd_free(struct rte_efd_table *table)\n \t\t}\n \t}\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_eal_mcfg_tailq_write_unlock();\n \trte_ring_free(table->free_slots);\n \trte_free(table->offline_chunks);\n \trte_free(table->keys);\n", "prefixes": [ "12/25" ] }{ "id": 53840, "url": "