get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/56188/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 56188,
    "url": "http://patches.dpdk.org/api/patches/56188/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/ccfa75cbf83f5b1b48a0757d1b49f78df01b9b3d.1562347546.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": "<ccfa75cbf83f5b1b48a0757d1b49f78df01b9b3d.1562347546.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/ccfa75cbf83f5b1b48a0757d1b49f78df01b9b3d.1562347546.git.anatoly.burakov@intel.com",
    "date": "2019-07-05T17:26:20",
    "name": "[v5,2/9] eal: add EAL tailq list lock/unlock API",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "02b5895deb714208f5c30c5f1b6a2971b55dea97",
    "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/ccfa75cbf83f5b1b48a0757d1b49f78df01b9b3d.1562347546.git.anatoly.burakov@intel.com/mbox/",
    "series": [
        {
            "id": 5379,
            "url": "http://patches.dpdk.org/api/series/5379/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=5379",
            "date": "2019-07-05T17:26:18",
            "name": "Make shared memory config non-public",
            "version": 5,
            "mbox": "http://patches.dpdk.org/series/5379/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/56188/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/56188/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 B18C01BE62;\n\tFri,  5 Jul 2019 19:26:38 +0200 (CEST)",
            "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id 1E5FC1BE56\n\tfor <dev@dpdk.org>; Fri,  5 Jul 2019 19:26:36 +0200 (CEST)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t05 Jul 2019 10:26:36 -0700",
            "from silpixa00399498.ir.intel.com (HELO\n\tsilpixa00399498.ger.corp.intel.com) ([10.237.223.125])\n\tby FMSMGA003.fm.intel.com with ESMTP; 05 Jul 2019 10:26:32 -0700"
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.63,455,1557212400\"; d=\"scan'208\";a=\"172723258\"",
        "From": "Anatoly Burakov <anatoly.burakov@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "Konstantin Ananyev <konstantin.ananyev@intel.com>,\n\tDavid Hunt <david.hunt@intel.com>,\n\tByron Marohn <byron.marohn@intel.com>, \n\tPablo de Lara Guarch <pablo.de.lara.guarch@intel.com>,\n\tJerin Jacob <jerinj@marvell.com>, Yipeng Wang <yipeng1.wang@intel.com>,\n\tSameh Gobriel <sameh.gobriel@intel.com>,\n\tBruce Richardson <bruce.richardson@intel.com>,\n\tFerruh Yigit <ferruh.yigit@intel.com>,\n\tVladimir Medvedkin <vladimir.medvedkin@intel.com>,\n\tOlivier Matz <olivier.matz@6wind.com>,\n\tAndrew Rybchenko <arybchenko@solarflare.com>,\n\tReshma Pattan <reshma.pattan@intel.com>,\n\tGage Eads <gage.eads@intel.com>, \n\tthomas@monjalon.net, david.marchand@redhat.com,\n\tstephen@networkplumber.org",
        "Date": "Fri,  5 Jul 2019 18:26:20 +0100",
        "Message-Id": "<ccfa75cbf83f5b1b48a0757d1b49f78df01b9b3d.1562347546.git.anatoly.burakov@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": [
            "<cover.1562347546.git.anatoly.burakov@intel.com>",
            "<cover.1562347546.git.anatoly.burakov@intel.com>"
        ],
        "References": [
            "<cover.1562347546.git.anatoly.burakov@intel.com>",
            "<cover.1562332112.git.anatoly.burakov@intel.com>\n\t<cover.1562347546.git.anatoly.burakov@intel.com>"
        ],
        "Subject": "[dpdk-dev] [PATCH v5 2/9] eal: add EAL tailq list lock/unlock 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": "Currently, locking/unlocking the TAILQ list requires direct\naccess to the shared memory config. Add an API to do the same,\nand search-and-replace all usages.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\nAcked-by: Stephen Hemminger <stephen@networkplumber.org>\nAcked-by: David Marchand <david.marchand@redhat.com>\n---\n lib/librte_acl/rte_acl.c                      | 18 ++++++------\n lib/librte_distributor/rte_distributor.c      |  4 +--\n lib/librte_distributor/rte_distributor_v20.c  |  4 +--\n lib/librte_eal/common/eal_common_mcfg.c       | 28 +++++++++++++++++++\n lib/librte_eal/common/eal_common_tailqs.c     |  4 +--\n lib/librte_eal/common/include/rte_eal.h       |  5 ----\n .../common/include/rte_eal_memconfig.h        | 24 ++++++++++++++++\n lib/librte_eal/rte_eal_version.map            |  4 +++\n lib/librte_efd/rte_efd.c                      | 14 +++++-----\n lib/librte_eventdev/rte_event_ring.c          | 16 +++++------\n lib/librte_hash/rte_cuckoo_hash.c             | 16 +++++------\n lib/librte_hash/rte_fbk_hash.c                | 14 +++++-----\n lib/librte_kni/rte_kni.c                      | 16 +++++------\n lib/librte_lpm/rte_lpm.c                      | 24 ++++++++--------\n lib/librte_lpm/rte_lpm6.c                     | 14 +++++-----\n lib/librte_member/rte_member.c                | 16 +++++------\n lib/librte_mempool/rte_mempool.c              |  8 +++---\n lib/librte_reorder/rte_reorder.c              | 14 +++++-----\n lib/librte_ring/rte_ring.c                    | 18 ++++++------\n lib/librte_stack/rte_stack.c                  | 18 ++++++------\n 20 files changed, 165 insertions(+), 114 deletions(-)",
    "diff": "diff --git a/lib/librte_acl/rte_acl.c b/lib/librte_acl/rte_acl.c\nindex fd5bd5e4e..7ff11d25f 100644\n--- a/lib/librte_acl/rte_acl.c\n+++ b/lib/librte_acl/rte_acl.c\n@@ -156,13 +156,13 @@ rte_acl_find_existing(const char *name)\n \n \tacl_list = RTE_TAILQ_CAST(rte_acl_tailq.head, rte_acl_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \tTAILQ_FOREACH(te, acl_list, next) {\n \t\tctx = (struct rte_acl_ctx *) te->data;\n \t\tif (strncmp(name, ctx->name, sizeof(ctx->name)) == 0)\n \t\t\tbreak;\n \t}\n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\n@@ -182,7 +182,7 @@ rte_acl_free(struct rte_acl_ctx *ctx)\n \n \tacl_list = RTE_TAILQ_CAST(rte_acl_tailq.head, rte_acl_list);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* find our tailq entry */\n \tTAILQ_FOREACH(te, acl_list, next) {\n@@ -190,13 +190,13 @@ rte_acl_free(struct rte_acl_ctx *ctx)\n \t\t\tbreak;\n \t}\n \tif (te == NULL) {\n-\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\trte_mcfg_tailq_write_unlock();\n \t\treturn;\n \t}\n \n \tTAILQ_REMOVE(acl_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \trte_free(ctx->mem);\n \trte_free(ctx);\n@@ -226,7 +226,7 @@ rte_acl_create(const struct rte_acl_param *param)\n \tsz = sizeof(*ctx) + param->max_rule_num * param->rule_size;\n \n \t/* get EAL TAILQ lock. */\n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* if we already have one with that name */\n \tTAILQ_FOREACH(te, acl_list, next) {\n@@ -268,7 +268,7 @@ rte_acl_create(const struct rte_acl_param *param)\n \t}\n \n exit:\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \treturn ctx;\n }\n \n@@ -377,10 +377,10 @@ rte_acl_list_dump(void)\n \n \tacl_list = RTE_TAILQ_CAST(rte_acl_tailq.head, rte_acl_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \tTAILQ_FOREACH(te, acl_list, next) {\n \t\tctx = (struct rte_acl_ctx *) te->data;\n \t\trte_acl_dump(ctx);\n \t}\n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n }\ndiff --git a/lib/librte_distributor/rte_distributor.c b/lib/librte_distributor/rte_distributor.c\nindex 208abfb1d..9eb78b330 100644\n--- a/lib/librte_distributor/rte_distributor.c\n+++ b/lib/librte_distributor/rte_distributor.c\n@@ -645,9 +645,9 @@ rte_distributor_create_v1705(const char *name,\n \t\t\t\t\t  rte_dist_burst_list);\n \n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \tTAILQ_INSERT_TAIL(dist_burst_list, d, next);\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn d;\n }\ndiff --git a/lib/librte_distributor/rte_distributor_v20.c b/lib/librte_distributor/rte_distributor_v20.c\nindex cd5940713..1fc03b971 100644\n--- a/lib/librte_distributor/rte_distributor_v20.c\n+++ b/lib/librte_distributor/rte_distributor_v20.c\n@@ -392,9 +392,9 @@ rte_distributor_create_v20(const char *name,\n \tdistributor_list = RTE_TAILQ_CAST(rte_distributor_tailq.head,\n \t\t\t\t\t  rte_distributor_list);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \tTAILQ_INSERT_TAIL(distributor_list, d, next);\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn d;\n }\ndiff --git a/lib/librte_eal/common/eal_common_mcfg.c b/lib/librte_eal/common/eal_common_mcfg.c\nindex 985d36cc2..05167e4dc 100644\n--- a/lib/librte_eal/common/eal_common_mcfg.c\n+++ b/lib/librte_eal/common/eal_common_mcfg.c\n@@ -32,3 +32,31 @@ rte_mcfg_mem_write_unlock(void)\n \tstruct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config;\n \trte_rwlock_write_unlock(&mcfg->memory_hotplug_lock);\n }\n+\n+void\n+rte_mcfg_tailq_read_lock(void)\n+{\n+\tstruct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config;\n+\trte_rwlock_read_lock(&mcfg->qlock);\n+}\n+\n+void\n+rte_mcfg_tailq_read_unlock(void)\n+{\n+\tstruct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config;\n+\trte_rwlock_read_unlock(&mcfg->qlock);\n+}\n+\n+void\n+rte_mcfg_tailq_write_lock(void)\n+{\n+\tstruct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config;\n+\trte_rwlock_write_lock(&mcfg->qlock);\n+}\n+\n+void\n+rte_mcfg_tailq_write_unlock(void)\n+{\n+\tstruct rte_mem_config *mcfg = rte_eal_get_configuration()->mem_config;\n+\trte_rwlock_write_unlock(&mcfg->qlock);\n+}\ndiff --git a/lib/librte_eal/common/eal_common_tailqs.c b/lib/librte_eal/common/eal_common_tailqs.c\nindex ca2a7d32a..dc2c13caa 100644\n--- a/lib/librte_eal/common/eal_common_tailqs.c\n+++ b/lib/librte_eal/common/eal_common_tailqs.c\n@@ -58,7 +58,7 @@ rte_dump_tailq(FILE *f)\n \n \tmcfg = rte_eal_get_configuration()->mem_config;\n \n-\trte_rwlock_read_lock(&mcfg->qlock);\n+\trte_mcfg_tailq_read_lock();\n \tfor (i = 0; i < RTE_MAX_TAILQ; i++) {\n \t\tconst struct rte_tailq_head *tailq = &mcfg->tailq_head[i];\n \t\tconst struct rte_tailq_entry_head *head = &tailq->tailq_head;\n@@ -66,7 +66,7 @@ rte_dump_tailq(FILE *f)\n \t\tfprintf(f, \"Tailq %u: qname:<%s>, tqh_first:%p, tqh_last:%p\\n\",\n \t\t\ti, tailq->name, head->tqh_first, head->tqh_last);\n \t}\n-\trte_rwlock_read_unlock(&mcfg->qlock);\n+\trte_mcfg_tailq_read_unlock();\n }\n \n static struct rte_tailq_head *\ndiff --git a/lib/librte_eal/common/include/rte_eal.h b/lib/librte_eal/common/include/rte_eal.h\nindex bf0c74e07..28cbf2dde 100644\n--- a/lib/librte_eal/common/include/rte_eal.h\n+++ b/lib/librte_eal/common/include/rte_eal.h\n@@ -446,11 +446,6 @@ typedef void\t(*rte_usage_hook_t)(const char * prgname);\n rte_usage_hook_t\n rte_set_application_usage_hook(rte_usage_hook_t usage_func);\n \n-/**\n- * macro to get the lock of tailq in mem_config\n- */\n-#define RTE_EAL_TAILQ_RWLOCK         (&rte_eal_get_configuration()->mem_config->qlock)\n-\n /**\n  * macro to get the multiple lock of mempool shared by multiple-instance\n  */\ndiff --git a/lib/librte_eal/common/include/rte_eal_memconfig.h b/lib/librte_eal/common/include/rte_eal_memconfig.h\nindex a554518ef..240fa150b 100644\n--- a/lib/librte_eal/common/include/rte_eal_memconfig.h\n+++ b/lib/librte_eal/common/include/rte_eal_memconfig.h\n@@ -124,6 +124,30 @@ rte_mcfg_mem_write_lock(void);\n void\n rte_mcfg_mem_write_unlock(void);\n \n+/**\n+ * Lock the internal EAL TAILQ list for shared access.\n+ */\n+void\n+rte_mcfg_tailq_read_lock(void);\n+\n+/**\n+ * Unlock the internal EAL TAILQ list for shared access.\n+ */\n+void\n+rte_mcfg_tailq_read_unlock(void);\n+\n+/**\n+ * Lock the internal EAL TAILQ list for exclusive access.\n+ */\n+void\n+rte_mcfg_tailq_write_lock(void);\n+\n+/**\n+ * Unlock the internal EAL TAILQ list for exclusive access.\n+ */\n+void\n+rte_mcfg_tailq_write_unlock(void);\n+\n #ifdef __cplusplus\n }\n #endif\ndiff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal/rte_eal_version.map\nindex 754060dc9..d78a3a8b9 100644\n--- a/lib/librte_eal/rte_eal_version.map\n+++ b/lib/librte_eal/rte_eal_version.map\n@@ -296,6 +296,10 @@ DPDK_19.08 {\n \trte_mcfg_mem_read_unlock;\n \trte_mcfg_mem_write_lock;\n \trte_mcfg_mem_write_unlock;\n+\trte_mcfg_tailq_read_lock;\n+\trte_mcfg_tailq_read_unlock;\n+\trte_mcfg_tailq_write_lock;\n+\trte_mcfg_tailq_write_unlock;\n \trte_rand;\n \trte_srand;\n \ndiff --git a/lib/librte_efd/rte_efd.c b/lib/librte_efd/rte_efd.c\nindex 14e493bc3..b808ce99f 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_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_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_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_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_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_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_mcfg_tailq_write_unlock();\n \trte_ring_free(table->free_slots);\n \trte_free(table->offline_chunks);\n \trte_free(table->keys);\ndiff --git a/lib/librte_eventdev/rte_event_ring.c b/lib/librte_eventdev/rte_event_ring.c\nindex 16d02a953..50190de01 100644\n--- a/lib/librte_eventdev/rte_event_ring.c\n+++ b/lib/librte_eventdev/rte_event_ring.c\n@@ -72,7 +72,7 @@ rte_event_ring_create(const char *name, unsigned int count, int socket_id,\n \t\treturn NULL;\n \t}\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/*\n \t * reserve a memory zone for this ring. If we can't get rte_config or\n@@ -89,7 +89,7 @@ rte_event_ring_create(const char *name, unsigned int count, int socket_id,\n \t\t\tif (rte_memzone_free(mz) != 0)\n \t\t\t\tRTE_LOG(ERR, RING, \"Cannot free memzone\\n\");\n \t\t\trte_free(te);\n-\t\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\t\trte_mcfg_tailq_write_unlock();\n \t\t\treturn NULL;\n \t\t}\n \n@@ -102,7 +102,7 @@ rte_event_ring_create(const char *name, unsigned int count, int socket_id,\n \t\tRTE_LOG(ERR, RING, \"Cannot reserve memory\\n\");\n \t\trte_free(te);\n \t}\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn r;\n }\n@@ -118,7 +118,7 @@ rte_event_ring_lookup(const char *name)\n \tring_list = RTE_TAILQ_CAST(rte_event_ring_tailq.head,\n \t\t\trte_event_ring_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \n \tTAILQ_FOREACH(te, ring_list, next) {\n \t\tr = (struct rte_event_ring *) te->data;\n@@ -126,7 +126,7 @@ rte_event_ring_lookup(const char *name)\n \t\t\tbreak;\n \t}\n \n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\n@@ -163,7 +163,7 @@ rte_event_ring_free(struct rte_event_ring *r)\n \n \tring_list = RTE_TAILQ_CAST(rte_event_ring_tailq.head,\n \t\t\trte_event_ring_list);\n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* find out tailq entry */\n \tTAILQ_FOREACH(te, ring_list, next) {\n@@ -172,13 +172,13 @@ rte_event_ring_free(struct rte_event_ring *r)\n \t}\n \n \tif (te == NULL) {\n-\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\trte_mcfg_tailq_write_unlock();\n \t\treturn;\n \t}\n \n \tTAILQ_REMOVE(ring_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \trte_free(te);\n }\ndiff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c\nindex 51198b477..47cd0da5b 100644\n--- a/lib/librte_hash/rte_cuckoo_hash.c\n+++ b/lib/librte_hash/rte_cuckoo_hash.c\n@@ -52,13 +52,13 @@ rte_hash_find_existing(const char *name)\n \n \thash_list = RTE_TAILQ_CAST(rte_hash_tailq.head, rte_hash_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \tTAILQ_FOREACH(te, hash_list, next) {\n \t\th = (struct rte_hash *) te->data;\n \t\tif (strncmp(name, h->name, RTE_HASH_NAMESIZE) == 0)\n \t\t\tbreak;\n \t}\n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\n@@ -239,7 +239,7 @@ rte_hash_create(const struct rte_hash_parameters *params)\n \n \tsnprintf(hash_name, sizeof(hash_name), \"HT_%s\", params->name);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* guarantee there's no existing: this is normally already checked\n \t * by ring creation above */\n@@ -437,11 +437,11 @@ rte_hash_create(const struct rte_hash_parameters *params)\n \n \tte->data = (void *) h;\n \tTAILQ_INSERT_TAIL(hash_list, te, next);\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn h;\n err_unlock:\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n err:\n \trte_ring_free(r);\n \trte_ring_free(r_ext);\n@@ -466,7 +466,7 @@ rte_hash_free(struct rte_hash *h)\n \n \thash_list = RTE_TAILQ_CAST(rte_hash_tailq.head, rte_hash_list);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* find out tailq entry */\n \tTAILQ_FOREACH(te, hash_list, next) {\n@@ -475,13 +475,13 @@ rte_hash_free(struct rte_hash *h)\n \t}\n \n \tif (te == NULL) {\n-\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\trte_mcfg_tailq_write_unlock();\n \t\treturn;\n \t}\n \n \tTAILQ_REMOVE(hash_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \tif (h->use_local_cache)\n \t\trte_free(h->local_free_slots);\ndiff --git a/lib/librte_hash/rte_fbk_hash.c b/lib/librte_hash/rte_fbk_hash.c\nindex 9360f7981..db118c930 100644\n--- a/lib/librte_hash/rte_fbk_hash.c\n+++ b/lib/librte_hash/rte_fbk_hash.c\n@@ -50,13 +50,13 @@ rte_fbk_hash_find_existing(const char *name)\n \tfbk_hash_list = RTE_TAILQ_CAST(rte_fbk_hash_tailq.head,\n \t\t\t\t       rte_fbk_hash_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \tTAILQ_FOREACH(te, fbk_hash_list, next) {\n \t\th = (struct rte_fbk_hash_table *) te->data;\n \t\tif (strncmp(name, h->name, RTE_FBK_HASH_NAMESIZE) == 0)\n \t\t\tbreak;\n \t}\n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\n \t\treturn NULL;\n@@ -103,7 +103,7 @@ rte_fbk_hash_create(const struct rte_fbk_hash_params *params)\n \n \tsnprintf(hash_name, sizeof(hash_name), \"FBK_%s\", params->name);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* guarantee there's no existing */\n \tTAILQ_FOREACH(te, fbk_hash_list, next) {\n@@ -165,7 +165,7 @@ rte_fbk_hash_create(const struct rte_fbk_hash_params *params)\n \tTAILQ_INSERT_TAIL(fbk_hash_list, te, next);\n \n exit:\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn ht;\n }\n@@ -188,7 +188,7 @@ rte_fbk_hash_free(struct rte_fbk_hash_table *ht)\n \tfbk_hash_list = RTE_TAILQ_CAST(rte_fbk_hash_tailq.head,\n \t\t\t\t       rte_fbk_hash_list);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* find out tailq entry */\n \tTAILQ_FOREACH(te, fbk_hash_list, next) {\n@@ -197,13 +197,13 @@ rte_fbk_hash_free(struct rte_fbk_hash_table *ht)\n \t}\n \n \tif (te == NULL) {\n-\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\trte_mcfg_tailq_write_unlock();\n \t\treturn;\n \t}\n \n \tTAILQ_REMOVE(fbk_hash_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \trte_free(ht);\n \trte_free(te);\ndiff --git a/lib/librte_kni/rte_kni.c b/lib/librte_kni/rte_kni.c\nindex 00104a35d..309e45918 100644\n--- a/lib/librte_kni/rte_kni.c\n+++ b/lib/librte_kni/rte_kni.c\n@@ -214,7 +214,7 @@ rte_kni_alloc(struct rte_mempool *pktmbuf_pool,\n \t\treturn NULL;\n \t}\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \tkni = __rte_kni_get(conf->name);\n \tif (kni != NULL) {\n@@ -304,7 +304,7 @@ rte_kni_alloc(struct rte_mempool *pktmbuf_pool,\n \tkni_list = RTE_TAILQ_CAST(rte_kni_tailq.head, rte_kni_list);\n \tTAILQ_INSERT_TAIL(kni_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \t/* Allocate mbufs and then put them into alloc_q */\n \tkni_allocate_mbufs(kni);\n@@ -318,7 +318,7 @@ rte_kni_alloc(struct rte_mempool *pktmbuf_pool,\n kni_fail:\n \trte_free(te);\n unlock:\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn NULL;\n }\n@@ -381,7 +381,7 @@ rte_kni_release(struct rte_kni *kni)\n \n \tkni_list = RTE_TAILQ_CAST(rte_kni_tailq.head, rte_kni_list);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \tTAILQ_FOREACH(te, kni_list, next) {\n \t\tif (te->data == kni)\n@@ -399,7 +399,7 @@ rte_kni_release(struct rte_kni *kni)\n \n \tTAILQ_REMOVE(kni_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \t/* mbufs in all fifo should be released, except request/response */\n \n@@ -423,7 +423,7 @@ rte_kni_release(struct rte_kni *kni)\n \treturn 0;\n \n unlock:\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn -1;\n }\n@@ -640,11 +640,11 @@ rte_kni_get(const char *name)\n \tif (name == NULL || name[0] == '\\0')\n \t\treturn NULL;\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \n \tkni = __rte_kni_get(name);\n \n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \treturn kni;\n }\ndiff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c\nindex 6b7b28a2e..b91f74216 100644\n--- a/lib/librte_lpm/rte_lpm.c\n+++ b/lib/librte_lpm/rte_lpm.c\n@@ -97,13 +97,13 @@ rte_lpm_find_existing_v20(const char *name)\n \n \tlpm_list = RTE_TAILQ_CAST(rte_lpm_tailq.head, rte_lpm_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \tTAILQ_FOREACH(te, lpm_list, next) {\n \t\tl = te->data;\n \t\tif (strncmp(name, l->name, RTE_LPM_NAMESIZE) == 0)\n \t\t\tbreak;\n \t}\n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\n@@ -123,13 +123,13 @@ rte_lpm_find_existing_v1604(const char *name)\n \n \tlpm_list = RTE_TAILQ_CAST(rte_lpm_tailq.head, rte_lpm_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \tTAILQ_FOREACH(te, lpm_list, next) {\n \t\tl = te->data;\n \t\tif (strncmp(name, l->name, RTE_LPM_NAMESIZE) == 0)\n \t\t\tbreak;\n \t}\n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\n@@ -170,7 +170,7 @@ rte_lpm_create_v20(const char *name, int socket_id, int max_rules,\n \t/* Determine the amount of memory to allocate. */\n \tmem_size = sizeof(*lpm) + (sizeof(lpm->rules_tbl[0]) * max_rules);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* guarantee there's no existing */\n \tTAILQ_FOREACH(te, lpm_list, next) {\n@@ -212,7 +212,7 @@ rte_lpm_create_v20(const char *name, int socket_id, int max_rules,\n \tTAILQ_INSERT_TAIL(lpm_list, te, next);\n \n exit:\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn lpm;\n }\n@@ -247,7 +247,7 @@ rte_lpm_create_v1604(const char *name, int socket_id,\n \ttbl8s_size = (sizeof(struct rte_lpm_tbl_entry) *\n \t\t\tRTE_LPM_TBL8_GROUP_NUM_ENTRIES * config->number_tbl8s);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* guarantee there's no existing */\n \tTAILQ_FOREACH(te, lpm_list, next) {\n@@ -315,7 +315,7 @@ rte_lpm_create_v1604(const char *name, int socket_id,\n \tTAILQ_INSERT_TAIL(lpm_list, te, next);\n \n exit:\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn lpm;\n }\n@@ -339,7 +339,7 @@ rte_lpm_free_v20(struct rte_lpm_v20 *lpm)\n \n \tlpm_list = RTE_TAILQ_CAST(rte_lpm_tailq.head, rte_lpm_list);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* find our tailq entry */\n \tTAILQ_FOREACH(te, lpm_list, next) {\n@@ -349,7 +349,7 @@ rte_lpm_free_v20(struct rte_lpm_v20 *lpm)\n \tif (te != NULL)\n \t\tTAILQ_REMOVE(lpm_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \trte_free(lpm);\n \trte_free(te);\n@@ -368,7 +368,7 @@ rte_lpm_free_v1604(struct rte_lpm *lpm)\n \n \tlpm_list = RTE_TAILQ_CAST(rte_lpm_tailq.head, rte_lpm_list);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* find our tailq entry */\n \tTAILQ_FOREACH(te, lpm_list, next) {\n@@ -378,7 +378,7 @@ rte_lpm_free_v1604(struct rte_lpm *lpm)\n \tif (te != NULL)\n \t\tTAILQ_REMOVE(lpm_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \trte_free(lpm->tbl8);\n \trte_free(lpm->rules_tbl);\ndiff --git a/lib/librte_lpm/rte_lpm6.c b/lib/librte_lpm/rte_lpm6.c\nindex a91803113..5af74a539 100644\n--- a/lib/librte_lpm/rte_lpm6.c\n+++ b/lib/librte_lpm/rte_lpm6.c\n@@ -316,7 +316,7 @@ rte_lpm6_create(const char *name, int socket_id,\n \tmem_size = sizeof(*lpm) + (sizeof(lpm->tbl8[0]) *\n \t\t\tRTE_LPM6_TBL8_GROUP_NUM_ENTRIES * config->number_tbl8s);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* Guarantee there's no existing */\n \tTAILQ_FOREACH(te, lpm_list, next) {\n@@ -363,11 +363,11 @@ rte_lpm6_create(const char *name, int socket_id,\n \tte->data = (void *) lpm;\n \n \tTAILQ_INSERT_TAIL(lpm_list, te, next);\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \treturn lpm;\n \n fail:\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n fail_wo_unlock:\n \trte_free(tbl8_hdrs);\n@@ -389,13 +389,13 @@ rte_lpm6_find_existing(const char *name)\n \n \tlpm_list = RTE_TAILQ_CAST(rte_lpm6_tailq.head, rte_lpm6_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \tTAILQ_FOREACH(te, lpm_list, next) {\n \t\tl = (struct rte_lpm6 *) te->data;\n \t\tif (strncmp(name, l->name, RTE_LPM6_NAMESIZE) == 0)\n \t\t\tbreak;\n \t}\n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\n@@ -420,7 +420,7 @@ rte_lpm6_free(struct rte_lpm6 *lpm)\n \n \tlpm_list = RTE_TAILQ_CAST(rte_lpm6_tailq.head, rte_lpm6_list);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* find our tailq entry */\n \tTAILQ_FOREACH(te, lpm_list, next) {\n@@ -431,7 +431,7 @@ rte_lpm6_free(struct rte_lpm6 *lpm)\n \tif (te != NULL)\n \t\tTAILQ_REMOVE(lpm_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \trte_free(lpm->tbl8_hdrs);\n \trte_free(lpm->tbl8_pool);\ndiff --git a/lib/librte_member/rte_member.c b/lib/librte_member/rte_member.c\nindex fd228f4ba..efed28dd9 100644\n--- a/lib/librte_member/rte_member.c\n+++ b/lib/librte_member/rte_member.c\n@@ -32,13 +32,13 @@ rte_member_find_existing(const char *name)\n \n \tmember_list = RTE_TAILQ_CAST(rte_member_tailq.head, rte_member_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \tTAILQ_FOREACH(te, member_list, next) {\n \t\tsetsum = (struct rte_member_setsum *) te->data;\n \t\tif (strncmp(name, setsum->name, RTE_MEMBER_NAMESIZE) == 0)\n \t\t\tbreak;\n \t}\n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\n@@ -56,17 +56,17 @@ rte_member_free(struct rte_member_setsum *setsum)\n \tif (setsum == NULL)\n \t\treturn;\n \tmember_list = RTE_TAILQ_CAST(rte_member_tailq.head, rte_member_list);\n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \tTAILQ_FOREACH(te, member_list, next) {\n \t\tif (te->data == (void *)setsum)\n \t\t\tbreak;\n \t}\n \tif (te == NULL) {\n-\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\trte_mcfg_tailq_write_unlock();\n \t\treturn;\n \t}\n \tTAILQ_REMOVE(member_list, te, next);\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \tswitch (setsum->type) {\n \tcase RTE_MEMBER_TYPE_HT:\n@@ -105,7 +105,7 @@ rte_member_create(const struct rte_member_parameters *params)\n \n \tmember_list = RTE_TAILQ_CAST(rte_member_tailq.head, rte_member_list);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \tTAILQ_FOREACH(te, member_list, next) {\n \t\tsetsum = te->data;\n@@ -159,13 +159,13 @@ rte_member_create(const struct rte_member_parameters *params)\n \n \tte->data = (void *)setsum;\n \tTAILQ_INSERT_TAIL(member_list, te, next);\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \treturn setsum;\n \n error_unlock_exit:\n \trte_free(te);\n \trte_free(setsum);\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \treturn NULL;\n }\n \ndiff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c\nindex 69bd2a65c..238287a01 100644\n--- a/lib/librte_mempool/rte_mempool.c\n+++ b/lib/librte_mempool/rte_mempool.c\n@@ -711,7 +711,7 @@ rte_mempool_free(struct rte_mempool *mp)\n \t\treturn;\n \n \tmempool_list = RTE_TAILQ_CAST(rte_mempool_tailq.head, rte_mempool_list);\n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \t/* find out tailq entry */\n \tTAILQ_FOREACH(te, mempool_list, next) {\n \t\tif (te->data == (void *)mp)\n@@ -722,7 +722,7 @@ rte_mempool_free(struct rte_mempool *mp)\n \t\tTAILQ_REMOVE(mempool_list, te, next);\n \t\trte_free(te);\n \t}\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \trte_mempool_free_memchunks(mp);\n \trte_mempool_ops_free(mp);\n@@ -898,9 +898,9 @@ rte_mempool_create_empty(const char *name, unsigned n, unsigned elt_size,\n \n \tte->data = mp;\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \tTAILQ_INSERT_TAIL(mempool_list, te, next);\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \trte_rwlock_write_unlock(RTE_EAL_MEMPOOL_RWLOCK);\n \n \treturn mp;\ndiff --git a/lib/librte_reorder/rte_reorder.c b/lib/librte_reorder/rte_reorder.c\nindex 3a4a1b0a0..ae6e3f578 100644\n--- a/lib/librte_reorder/rte_reorder.c\n+++ b/lib/librte_reorder/rte_reorder.c\n@@ -119,7 +119,7 @@ rte_reorder_create(const char *name, unsigned socket_id, unsigned int size)\n \t\treturn NULL;\n \t}\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* guarantee there's no existing */\n \tTAILQ_FOREACH(te, reorder_list, next) {\n@@ -152,7 +152,7 @@ rte_reorder_create(const char *name, unsigned socket_id, unsigned int size)\n \t}\n \n exit:\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \treturn b;\n }\n \n@@ -193,7 +193,7 @@ rte_reorder_free(struct rte_reorder_buffer *b)\n \n \treorder_list = RTE_TAILQ_CAST(rte_reorder_tailq.head, rte_reorder_list);\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* find our tailq entry */\n \tTAILQ_FOREACH(te, reorder_list, next) {\n@@ -201,13 +201,13 @@ rte_reorder_free(struct rte_reorder_buffer *b)\n \t\t\tbreak;\n \t}\n \tif (te == NULL) {\n-\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\trte_mcfg_tailq_write_unlock();\n \t\treturn;\n \t}\n \n \tTAILQ_REMOVE(reorder_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \trte_reorder_free_mbufs(b);\n \n@@ -229,13 +229,13 @@ rte_reorder_find_existing(const char *name)\n \n \treorder_list = RTE_TAILQ_CAST(rte_reorder_tailq.head, rte_reorder_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \tTAILQ_FOREACH(te, reorder_list, next) {\n \t\tb = (struct rte_reorder_buffer *) te->data;\n \t\tif (strncmp(name, b->name, RTE_REORDER_NAMESIZE) == 0)\n \t\t\tbreak;\n \t}\n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\ndiff --git a/lib/librte_ring/rte_ring.c b/lib/librte_ring/rte_ring.c\nindex b89ecf999..9ea26a631 100644\n--- a/lib/librte_ring/rte_ring.c\n+++ b/lib/librte_ring/rte_ring.c\n@@ -147,7 +147,7 @@ rte_ring_create(const char *name, unsigned count, int socket_id,\n \t\treturn NULL;\n \t}\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* reserve a memory zone for this ring. If we can't get rte_config or\n \t * we are secondary process, the memzone_reserve function will set\n@@ -169,7 +169,7 @@ rte_ring_create(const char *name, unsigned count, int socket_id,\n \t\tRTE_LOG(ERR, RING, \"Cannot reserve memory\\n\");\n \t\trte_free(te);\n \t}\n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn r;\n }\n@@ -200,7 +200,7 @@ rte_ring_free(struct rte_ring *r)\n \t}\n \n \tring_list = RTE_TAILQ_CAST(rte_ring_tailq.head, rte_ring_list);\n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* find out tailq entry */\n \tTAILQ_FOREACH(te, ring_list, next) {\n@@ -209,13 +209,13 @@ rte_ring_free(struct rte_ring *r)\n \t}\n \n \tif (te == NULL) {\n-\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\trte_mcfg_tailq_write_unlock();\n \t\treturn;\n \t}\n \n \tTAILQ_REMOVE(ring_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \trte_free(te);\n }\n@@ -245,13 +245,13 @@ rte_ring_list_dump(FILE *f)\n \n \tring_list = RTE_TAILQ_CAST(rte_ring_tailq.head, rte_ring_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \n \tTAILQ_FOREACH(te, ring_list, next) {\n \t\trte_ring_dump(f, (struct rte_ring *) te->data);\n \t}\n \n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n }\n \n /* search a ring from its name */\n@@ -264,7 +264,7 @@ rte_ring_lookup(const char *name)\n \n \tring_list = RTE_TAILQ_CAST(rte_ring_tailq.head, rte_ring_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \n \tTAILQ_FOREACH(te, ring_list, next) {\n \t\tr = (struct rte_ring *) te->data;\n@@ -272,7 +272,7 @@ rte_ring_lookup(const char *name)\n \t\t\tbreak;\n \t}\n \n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\ndiff --git a/lib/librte_stack/rte_stack.c b/lib/librte_stack/rte_stack.c\nindex 60f63a65b..2cc7e8e16 100644\n--- a/lib/librte_stack/rte_stack.c\n+++ b/lib/librte_stack/rte_stack.c\n@@ -84,13 +84,13 @@ rte_stack_create(const char *name, unsigned int count, int socket_id,\n \t\treturn NULL;\n \t}\n \n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \tmz = rte_memzone_reserve_aligned(mz_name, sz, socket_id,\n \t\t\t\t\t 0, __alignof__(*s));\n \tif (mz == NULL) {\n \t\tSTACK_LOG_ERR(\"Cannot reserve stack memzone!\\n\");\n-\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\trte_mcfg_tailq_write_unlock();\n \t\trte_free(te);\n \t\treturn NULL;\n \t}\n@@ -102,7 +102,7 @@ rte_stack_create(const char *name, unsigned int count, int socket_id,\n \t/* Store the name for later lookups */\n \tret = strlcpy(s->name, name, sizeof(s->name));\n \tif (ret < 0 || ret >= (int)sizeof(s->name)) {\n-\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\trte_mcfg_tailq_write_unlock();\n \n \t\trte_errno = ENAMETOOLONG;\n \t\trte_free(te);\n@@ -120,7 +120,7 @@ rte_stack_create(const char *name, unsigned int count, int socket_id,\n \n \tTAILQ_INSERT_TAIL(stack_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \treturn s;\n }\n@@ -135,7 +135,7 @@ rte_stack_free(struct rte_stack *s)\n \t\treturn;\n \n \tstack_list = RTE_TAILQ_CAST(rte_stack_tailq.head, rte_stack_list);\n-\trte_rwlock_write_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_lock();\n \n \t/* find out tailq entry */\n \tTAILQ_FOREACH(te, stack_list, next) {\n@@ -144,13 +144,13 @@ rte_stack_free(struct rte_stack *s)\n \t}\n \n \tif (te == NULL) {\n-\t\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\t\trte_mcfg_tailq_write_unlock();\n \t\treturn;\n \t}\n \n \tTAILQ_REMOVE(stack_list, te, next);\n \n-\trte_rwlock_write_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_write_unlock();\n \n \trte_free(te);\n \n@@ -171,7 +171,7 @@ rte_stack_lookup(const char *name)\n \n \tstack_list = RTE_TAILQ_CAST(rte_stack_tailq.head, rte_stack_list);\n \n-\trte_rwlock_read_lock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_lock();\n \n \tTAILQ_FOREACH(te, stack_list, next) {\n \t\tr = (struct rte_stack *) te->data;\n@@ -179,7 +179,7 @@ rte_stack_lookup(const char *name)\n \t\t\tbreak;\n \t}\n \n-\trte_rwlock_read_unlock(RTE_EAL_TAILQ_RWLOCK);\n+\trte_mcfg_tailq_read_unlock();\n \n \tif (te == NULL) {\n \t\trte_errno = ENOENT;\n",
    "prefixes": [
        "v5",
        "2/9"
    ]
}