get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 53853,
    "url": "http://patches.dpdk.org/api/patches/53853/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/6551141356fbab88a06c94e54348177939be60b5.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": "<6551141356fbab88a06c94e54348177939be60b5.1559147228.git.anatoly.burakov@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/6551141356fbab88a06c94e54348177939be60b5.1559147228.git.anatoly.burakov@intel.com",
    "date": "2019-05-29T16:31:11",
    "name": "[25/25] eal: hide shared memory config",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "f6942fd7bc8b659fd091ac0a33c2a479c8596574",
    "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/6551141356fbab88a06c94e54348177939be60b5.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/53853/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/53853/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 65C441B94F;\n\tWed, 29 May 2019 18:32:05 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n\tby dpdk.org (Postfix) with ESMTP id 57D0A1BA85\n\tfor <dev@dpdk.org>; Wed, 29 May 2019 18:32:03 +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:32:02 -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:58 -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": "Konstantin Ananyev <konstantin.ananyev@intel.com>,\n\tDavid Hunt <david.hunt@intel.com>,\n\tBruce Richardson <bruce.richardson@intel.com>,\n\tByron Marohn <byron.marohn@intel.com>,\n\tPablo de Lara Guarch <pablo.de.lara.guarch@intel.com>,\n\tYipeng Wang <yipeng1.wang@intel.com>,\n\tSameh Gobriel <sameh.gobriel@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>, stephen@networkplumber.org, \n\tthomas@monjalon.net, david.marchand@redhat.com",
        "Date": "Wed, 29 May 2019 17:31:11 +0100",
        "Message-Id": "<6551141356fbab88a06c94e54348177939be60b5.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 25/25] eal: hide shared memory config",
        "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": "Now that everything that has ever accessed the shared memory\nconfig is doing so through the public API's, we can make it\ninternal. Since we're removing quite a few headers from\nrte_eal_memconfig.h, we need to add them back in places\nwhere this header is used.\n\nSigned-off-by: Anatoly Burakov <anatoly.burakov@intel.com>\n---\n app/test/test_memzone.c                       |  1 +\n app/test/test_tailq.c                         |  1 +\n drivers/bus/pci/linux/pci_vfio.c              |  1 +\n lib/librte_acl/rte_acl.c                      |  2 +\n lib/librte_distributor/rte_distributor.c      |  1 +\n lib/librte_distributor/rte_distributor_v20.c  |  1 +\n lib/librte_eal/common/eal_common_memory.c     |  1 +\n lib/librte_eal/common/eal_common_memzone.c    |  1 +\n lib/librte_eal/common/eal_common_tailqs.c     |  1 +\n lib/librte_eal/common/eal_memcfg.h            | 75 +++++++++++++++++++\n .../common/include/rte_eal_memconfig.h        | 75 ++-----------------\n lib/librte_eal/common/malloc_heap.c           |  2 +\n lib/librte_eal/common/malloc_mp.c             |  1 +\n lib/librte_eal/common/rte_malloc.c            |  1 +\n lib/librte_eal/freebsd/eal/eal_memory.c       |  1 +\n lib/librte_eal/linux/eal/eal.c                |  1 +\n lib/librte_eal/linux/eal/eal_memalloc.c       |  1 +\n lib/librte_eal/linux/eal/eal_memory.c         |  1 +\n lib/librte_eal/linux/eal/eal_vfio.c           |  1 +\n lib/librte_efd/rte_efd.c                      |  1 +\n lib/librte_hash/rte_cuckoo_hash.c             |  1 +\n lib/librte_hash/rte_fbk_hash.c                |  1 +\n lib/librte_lpm/rte_lpm.c                      |  1 +\n lib/librte_lpm/rte_lpm6.c                     |  1 +\n lib/librte_member/rte_member.c                |  1 +\n lib/librte_mempool/rte_mempool.c              |  1 +\n lib/librte_reorder/rte_reorder.c              |  1 +\n lib/librte_ring/rte_ring.c                    |  1 +\n 28 files changed, 109 insertions(+), 69 deletions(-)\n create mode 100644 lib/librte_eal/common/eal_memcfg.h",
    "diff": "diff --git a/app/test/test_memzone.c b/app/test/test_memzone.c\nindex 9fe465e62..7501b63c5 100644\n--- a/app/test/test_memzone.c\n+++ b/app/test/test_memzone.c\n@@ -19,6 +19,7 @@\n #include <rte_errno.h>\n #include <rte_malloc.h>\n #include \"../../lib/librte_eal/common/malloc_elem.h\"\n+#include \"../../lib/librte_eal/common/eal_memcfg.h\"\n \n #include \"test.h\"\n \ndiff --git a/app/test/test_tailq.c b/app/test/test_tailq.c\nindex a4ecea2d8..7c9b69fdb 100644\n--- a/app/test/test_tailq.c\n+++ b/app/test/test_tailq.c\n@@ -12,6 +12,7 @@\n #include <rte_eal.h>\n #include <rte_eal_memconfig.h>\n #include <rte_string_fns.h>\n+#include <rte_tailq.h>\n \n #include \"test.h\"\n \ndiff --git a/drivers/bus/pci/linux/pci_vfio.c b/drivers/bus/pci/linux/pci_vfio.c\nindex ebf6ccd3c..1ceb1c07b 100644\n--- a/drivers/bus/pci/linux/pci_vfio.c\n+++ b/drivers/bus/pci/linux/pci_vfio.c\n@@ -20,6 +20,7 @@\n #include <rte_eal.h>\n #include <rte_bus.h>\n #include <rte_spinlock.h>\n+#include <rte_tailq.h>\n \n #include \"eal_filesystem.h\"\n \ndiff --git a/lib/librte_acl/rte_acl.c b/lib/librte_acl/rte_acl.c\nindex 82f3376a5..3f5437c69 100644\n--- a/lib/librte_acl/rte_acl.c\n+++ b/lib/librte_acl/rte_acl.c\n@@ -4,6 +4,8 @@\n \n #include <rte_string_fns.h>\n #include <rte_acl.h>\n+#include <rte_tailq.h>\n+\n #include \"acl.h\"\n \n TAILQ_HEAD(rte_acl_list, rte_tailq_entry);\ndiff --git a/lib/librte_distributor/rte_distributor.c b/lib/librte_distributor/rte_distributor.c\nindex 7e2892554..39ac5a9f9 100644\n--- a/lib/librte_distributor/rte_distributor.c\n+++ b/lib/librte_distributor/rte_distributor.c\n@@ -14,6 +14,7 @@\n #include <rte_string_fns.h>\n #include <rte_eal_memconfig.h>\n #include <rte_pause.h>\n+#include <rte_tailq.h>\n \n #include \"rte_distributor_private.h\"\n #include \"rte_distributor.h\"\ndiff --git a/lib/librte_distributor/rte_distributor_v20.c b/lib/librte_distributor/rte_distributor_v20.c\nindex beec9c051..1c3fa8634 100644\n--- a/lib/librte_distributor/rte_distributor_v20.c\n+++ b/lib/librte_distributor/rte_distributor_v20.c\n@@ -13,6 +13,7 @@\n #include <rte_string_fns.h>\n #include <rte_eal_memconfig.h>\n #include <rte_pause.h>\n+#include <rte_tailq.h>\n \n #include \"rte_distributor_v20.h\"\n #include \"rte_distributor_private.h\"\ndiff --git a/lib/librte_eal/common/eal_common_memory.c b/lib/librte_eal/common/eal_common_memory.c\nindex c398e6f0b..209206334 100644\n--- a/lib/librte_eal/common/eal_common_memory.c\n+++ b/lib/librte_eal/common/eal_common_memory.c\n@@ -24,6 +24,7 @@\n #include \"eal_memalloc.h\"\n #include \"eal_private.h\"\n #include \"eal_internal_cfg.h\"\n+#include \"eal_memcfg.h\"\n #include \"malloc_heap.h\"\n \n /*\ndiff --git a/lib/librte_eal/common/eal_common_memzone.c b/lib/librte_eal/common/eal_common_memzone.c\nindex 521ad7ca1..ef6c909cb 100644\n--- a/lib/librte_eal/common/eal_common_memzone.c\n+++ b/lib/librte_eal/common/eal_common_memzone.c\n@@ -24,6 +24,7 @@\n #include \"malloc_heap.h\"\n #include \"malloc_elem.h\"\n #include \"eal_private.h\"\n+#include \"eal_memcfg.h\"\n \n static inline const struct rte_memzone *\n memzone_lookup_thread_unsafe(const char *name)\ndiff --git a/lib/librte_eal/common/eal_common_tailqs.c b/lib/librte_eal/common/eal_common_tailqs.c\nindex ca2a7d32a..b65819b07 100644\n--- a/lib/librte_eal/common/eal_common_tailqs.c\n+++ b/lib/librte_eal/common/eal_common_tailqs.c\n@@ -23,6 +23,7 @@\n #include <rte_debug.h>\n \n #include \"eal_private.h\"\n+#include \"eal_memcfg.h\"\n \n TAILQ_HEAD(rte_tailq_elem_head, rte_tailq_elem);\n /* local tailq list */\ndiff --git a/lib/librte_eal/common/eal_memcfg.h b/lib/librte_eal/common/eal_memcfg.h\nnew file mode 100644\nindex 000000000..75891e6cb\n--- /dev/null\n+++ b/lib/librte_eal/common/eal_memcfg.h\n@@ -0,0 +1,75 @@\n+#ifndef EAL_MEMCFG_H\n+#define EAL_MEMCFG_H\n+\n+#include <rte_config.h>\n+#include <rte_eal_memconfig.h>\n+#include <rte_malloc_heap.h>\n+#include <rte_memory.h>\n+#include <rte_memzone.h>\n+#include <rte_pause.h>\n+#include <rte_rwlock.h>\n+#include <rte_tailq.h>\n+\n+/**\n+ * the structure for the memory configuration for the RTE.\n+ * Used by the rte_config structure. It is separated out, as for multi-process\n+ * support, the memory details should be shared across instances\n+ */\n+struct rte_mem_config {\n+\tvolatile uint32_t magic;   /**< Magic number - Sanity check. */\n+\n+\t/* memory topology */\n+\tuint32_t nchannel;    /**< Number of channels (0 if unknown). */\n+\tuint32_t nrank;       /**< Number of ranks (0 if unknown). */\n+\n+\t/**\n+\t * current lock nest order\n+\t *  - qlock->mlock (ring/hash/lpm)\n+\t *  - mplock->qlock->mlock (mempool)\n+\t * Notice:\n+\t *  *ALWAYS* obtain qlock first if having to obtain both qlock and mlock\n+\t */\n+\trte_rwlock_t mlock;   /**< only used by memzone LIB for thread-safe. */\n+\trte_rwlock_t qlock;   /**< used for tailq operation for thread safe. */\n+\trte_rwlock_t mplock;  /**< only used by mempool LIB for thread-safe. */\n+\n+\trte_rwlock_t memory_hotplug_lock;\n+\t/**< indicates whether memory hotplug request is in progress. */\n+\n+\t/* memory segments and zones */\n+\tstruct rte_fbarray memzones; /**< Memzone descriptors. */\n+\n+\tstruct rte_memseg_list memsegs[RTE_MAX_MEMSEG_LISTS];\n+\t/**< list of dynamic arrays holding memsegs */\n+\n+\tstruct rte_tailq_head tailq_head[RTE_MAX_TAILQ];\n+\t/**< Tailqs for objects */\n+\n+\t/* Heaps of Malloc */\n+\tstruct malloc_heap malloc_heaps[RTE_MAX_HEAPS];\n+\n+\t/* next socket ID for external malloc heap */\n+\tint next_socket_id;\n+\n+\t/* address of mem_config in primary process. used to map shared config\n+\t * into exact same address the primary process maps it.\n+\t */\n+\tuint64_t mem_cfg_addr;\n+\n+\t/* legacy mem and single file segments options are shared */\n+\tuint32_t legacy_mem;\n+\tuint32_t single_file_segments;\n+\n+\t/* keeps the more restricted dma mask */\n+\tuint8_t dma_maskbits;\n+} __attribute__((packed));\n+\n+static inline void\n+rte_eal_mcfg_wait_complete(struct rte_mem_config *mcfg)\n+{\n+\t/* wait until shared mem_config finish initialising */\n+\twhile (mcfg->magic != RTE_MAGIC)\n+\t\trte_pause();\n+}\n+\n+#endif // EAL_MEMCFG_H\ndiff --git a/lib/librte_eal/common/include/rte_eal_memconfig.h b/lib/librte_eal/common/include/rte_eal_memconfig.h\nindex d0bd5836b..776d30dc0 100644\n--- a/lib/librte_eal/common/include/rte_eal_memconfig.h\n+++ b/lib/librte_eal/common/include/rte_eal_memconfig.h\n@@ -5,13 +5,12 @@\n #ifndef _RTE_EAL_MEMCONFIG_H_\n #define _RTE_EAL_MEMCONFIG_H_\n \n-#include <rte_config.h>\n-#include <rte_tailq.h>\n-#include <rte_memory.h>\n-#include <rte_memzone.h>\n-#include <rte_malloc_heap.h>\n-#include <rte_rwlock.h>\n-#include <rte_pause.h>\n+/**\n+ * @file\n+ *\n+ * This API allows access to EAL shared memory configuration through an API.\n+ */\n+\n #include <rte_fbarray.h>\n \n #ifdef __cplusplus\n@@ -38,68 +37,6 @@ struct rte_memseg_list {\n \tstruct rte_fbarray memseg_arr;\n };\n \n-/**\n- * the structure for the memory configuration for the RTE.\n- * Used by the rte_config structure. It is separated out, as for multi-process\n- * support, the memory details should be shared across instances\n- */\n-struct rte_mem_config {\n-\tvolatile uint32_t magic;   /**< Magic number - Sanity check. */\n-\n-\t/* memory topology */\n-\tuint32_t nchannel;    /**< Number of channels (0 if unknown). */\n-\tuint32_t nrank;       /**< Number of ranks (0 if unknown). */\n-\n-\t/**\n-\t * current lock nest order\n-\t *  - qlock->mlock (ring/hash/lpm)\n-\t *  - mplock->qlock->mlock (mempool)\n-\t * Notice:\n-\t *  *ALWAYS* obtain qlock first if having to obtain both qlock and mlock\n-\t */\n-\trte_rwlock_t mlock;   /**< only used by memzone LIB for thread-safe. */\n-\trte_rwlock_t qlock;   /**< used for tailq operation for thread safe. */\n-\trte_rwlock_t mplock;  /**< only used by mempool LIB for thread-safe. */\n-\n-\trte_rwlock_t memory_hotplug_lock;\n-\t/**< indicates whether memory hotplug request is in progress. */\n-\n-\t/* memory segments and zones */\n-\tstruct rte_fbarray memzones; /**< Memzone descriptors. */\n-\n-\tstruct rte_memseg_list memsegs[RTE_MAX_MEMSEG_LISTS];\n-\t/**< list of dynamic arrays holding memsegs */\n-\n-\tstruct rte_tailq_head tailq_head[RTE_MAX_TAILQ]; /**< Tailqs for objects */\n-\n-\t/* Heaps of Malloc */\n-\tstruct malloc_heap malloc_heaps[RTE_MAX_HEAPS];\n-\n-\t/* next socket ID for external malloc heap */\n-\tint next_socket_id;\n-\n-\t/* address of mem_config in primary process. used to map shared config into\n-\t * exact same address the primary process maps it.\n-\t */\n-\tuint64_t mem_cfg_addr;\n-\n-\t/* legacy mem and single file segments options are shared */\n-\tuint32_t legacy_mem;\n-\tuint32_t single_file_segments;\n-\n-\t/* keeps the more restricted dma mask */\n-\tuint8_t dma_maskbits;\n-} __attribute__((__packed__));\n-\n-\n-inline static void\n-rte_eal_mcfg_wait_complete(struct rte_mem_config* mcfg)\n-{\n-\t/* wait until shared mem_config finish initialising */\n-\twhile(mcfg->magic != RTE_MAGIC)\n-\t\trte_pause();\n-}\n-\n /**\n  * Lock the internal EAL shared memory configuration for shared access.\n  */\ndiff --git a/lib/librte_eal/common/malloc_heap.c b/lib/librte_eal/common/malloc_heap.c\nindex 0298ec1ca..bd84fcf70 100644\n--- a/lib/librte_eal/common/malloc_heap.c\n+++ b/lib/librte_eal/common/malloc_heap.c\n@@ -20,11 +20,13 @@\n #include <rte_string_fns.h>\n #include <rte_spinlock.h>\n #include <rte_memcpy.h>\n+#include <rte_memzone.h>\n #include <rte_atomic.h>\n #include <rte_fbarray.h>\n \n #include \"eal_internal_cfg.h\"\n #include \"eal_memalloc.h\"\n+#include \"eal_memcfg.h\"\n #include \"malloc_elem.h\"\n #include \"malloc_heap.h\"\n #include \"malloc_mp.h\"\ndiff --git a/lib/librte_eal/common/malloc_mp.c b/lib/librte_eal/common/malloc_mp.c\nindex b470565e0..17b803d59 100644\n--- a/lib/librte_eal/common/malloc_mp.c\n+++ b/lib/librte_eal/common/malloc_mp.c\n@@ -10,6 +10,7 @@\n #include <rte_string_fns.h>\n \n #include \"eal_memalloc.h\"\n+#include \"eal_memcfg.h\"\n \n #include \"malloc_elem.h\"\n #include \"malloc_mp.h\"\ndiff --git a/lib/librte_eal/common/rte_malloc.c b/lib/librte_eal/common/rte_malloc.c\nindex 4d83bf518..0dc900403 100644\n--- a/lib/librte_eal/common/rte_malloc.c\n+++ b/lib/librte_eal/common/rte_malloc.c\n@@ -25,6 +25,7 @@\n #include \"malloc_elem.h\"\n #include \"malloc_heap.h\"\n #include \"eal_memalloc.h\"\n+#include \"eal_memcfg.h\"\n \n \n /* Free the memory space back to heap */\ndiff --git a/lib/librte_eal/freebsd/eal/eal_memory.c b/lib/librte_eal/freebsd/eal/eal_memory.c\nindex 4b092e1f2..9b9a0577a 100644\n--- a/lib/librte_eal/freebsd/eal/eal_memory.c\n+++ b/lib/librte_eal/freebsd/eal/eal_memory.c\n@@ -18,6 +18,7 @@\n #include \"eal_private.h\"\n #include \"eal_internal_cfg.h\"\n #include \"eal_filesystem.h\"\n+#include \"eal_memcfg.h\"\n \n #define EAL_PAGE_SIZE (sysconf(_SC_PAGESIZE))\n \ndiff --git a/lib/librte_eal/linux/eal/eal.c b/lib/librte_eal/linux/eal/eal.c\nindex 161399619..ac2db049b 100644\n--- a/lib/librte_eal/linux/eal/eal.c\n+++ b/lib/librte_eal/linux/eal/eal.c\n@@ -57,6 +57,7 @@\n #include \"eal_internal_cfg.h\"\n #include \"eal_filesystem.h\"\n #include \"eal_hugepages.h\"\n+#include \"eal_memcfg.h\"\n #include \"eal_options.h\"\n #include \"eal_vfio.h\"\n \ndiff --git a/lib/librte_eal/linux/eal/eal_memalloc.c b/lib/librte_eal/linux/eal/eal_memalloc.c\nindex 1e9ebb86d..b178ed3ea 100644\n--- a/lib/librte_eal/linux/eal/eal_memalloc.c\n+++ b/lib/librte_eal/linux/eal/eal_memalloc.c\n@@ -45,6 +45,7 @@\n #include \"eal_filesystem.h\"\n #include \"eal_internal_cfg.h\"\n #include \"eal_memalloc.h\"\n+#include \"eal_memcfg.h\"\n #include \"eal_private.h\"\n \n const int anonymous_hugepages_supported =\ndiff --git a/lib/librte_eal/linux/eal/eal_memory.c b/lib/librte_eal/linux/eal/eal_memory.c\nindex 416dad898..da355f5ea 100644\n--- a/lib/librte_eal/linux/eal/eal_memory.c\n+++ b/lib/librte_eal/linux/eal/eal_memory.c\n@@ -47,6 +47,7 @@\n \n #include \"eal_private.h\"\n #include \"eal_memalloc.h\"\n+#include \"eal_memcfg.h\"\n #include \"eal_internal_cfg.h\"\n #include \"eal_filesystem.h\"\n #include \"eal_hugepages.h\"\ndiff --git a/lib/librte_eal/linux/eal/eal_vfio.c b/lib/librte_eal/linux/eal/eal_vfio.c\nindex 36f0d1ca7..cdad4535e 100644\n--- a/lib/librte_eal/linux/eal/eal_vfio.c\n+++ b/lib/librte_eal/linux/eal/eal_vfio.c\n@@ -15,6 +15,7 @@\n #include <rte_vfio.h>\n \n #include \"eal_filesystem.h\"\n+#include \"eal_memcfg.h\"\n #include \"eal_vfio.h\"\n #include \"eal_private.h\"\n \ndiff --git a/lib/librte_efd/rte_efd.c b/lib/librte_efd/rte_efd.c\nindex 71f067df6..ac58ae8ef 100644\n--- a/lib/librte_efd/rte_efd.c\n+++ b/lib/librte_efd/rte_efd.c\n@@ -20,6 +20,7 @@\n #include <rte_ring.h>\n #include <rte_jhash.h>\n #include <rte_hash_crc.h>\n+#include <rte_tailq.h>\n \n #include \"rte_efd.h\"\n #if defined(RTE_ARCH_X86)\ndiff --git a/lib/librte_hash/rte_cuckoo_hash.c b/lib/librte_hash/rte_cuckoo_hash.c\nindex ffe649411..fe44b77f6 100644\n--- a/lib/librte_hash/rte_cuckoo_hash.c\n+++ b/lib/librte_hash/rte_cuckoo_hash.c\n@@ -27,6 +27,7 @@\n #include <rte_ring.h>\n #include <rte_compat.h>\n #include <rte_vect.h>\n+#include <rte_tailq.h>\n \n #include \"rte_hash.h\"\n #include \"rte_cuckoo_hash.h\"\ndiff --git a/lib/librte_hash/rte_fbk_hash.c b/lib/librte_hash/rte_fbk_hash.c\nindex 54a8596ab..f4f4f5e22 100644\n--- a/lib/librte_hash/rte_fbk_hash.c\n+++ b/lib/librte_hash/rte_fbk_hash.c\n@@ -20,6 +20,7 @@\n #include <rte_cpuflags.h>\n #include <rte_log.h>\n #include <rte_spinlock.h>\n+#include <rte_tailq.h>\n \n #include \"rte_fbk_hash.h\"\n \ndiff --git a/lib/librte_lpm/rte_lpm.c b/lib/librte_lpm/rte_lpm.c\nindex bb1c5b197..94327450d 100644\n--- a/lib/librte_lpm/rte_lpm.c\n+++ b/lib/librte_lpm/rte_lpm.c\n@@ -21,6 +21,7 @@\n #include <rte_errno.h>\n #include <rte_rwlock.h>\n #include <rte_spinlock.h>\n+#include <rte_tailq.h>\n \n #include \"rte_lpm.h\"\n \ndiff --git a/lib/librte_lpm/rte_lpm6.c b/lib/librte_lpm/rte_lpm6.c\nindex 5fabfa3d4..7bb154f9c 100644\n--- a/lib/librte_lpm/rte_lpm6.c\n+++ b/lib/librte_lpm/rte_lpm6.c\n@@ -24,6 +24,7 @@\n #include <rte_hash.h>\n #include <assert.h>\n #include <rte_jhash.h>\n+#include <rte_tailq.h>\n \n #include \"rte_lpm6.h\"\n \ndiff --git a/lib/librte_member/rte_member.c b/lib/librte_member/rte_member.c\nindex 70322d86a..997f08d80 100644\n--- a/lib/librte_member/rte_member.c\n+++ b/lib/librte_member/rte_member.c\n@@ -10,6 +10,7 @@\n #include <rte_memory.h>\n #include <rte_malloc.h>\n #include <rte_errno.h>\n+#include <rte_tailq.h>\n \n #include \"rte_member.h\"\n #include \"rte_member_ht.h\"\ndiff --git a/lib/librte_mempool/rte_mempool.c b/lib/librte_mempool/rte_mempool.c\nindex c98233828..18269a6d0 100644\n--- a/lib/librte_mempool/rte_mempool.c\n+++ b/lib/librte_mempool/rte_mempool.c\n@@ -30,6 +30,7 @@\n #include <rte_errno.h>\n #include <rte_string_fns.h>\n #include <rte_spinlock.h>\n+#include <rte_tailq.h>\n \n #include \"rte_mempool.h\"\n \ndiff --git a/lib/librte_reorder/rte_reorder.c b/lib/librte_reorder/rte_reorder.c\nindex c505a4810..8848bd544 100644\n--- a/lib/librte_reorder/rte_reorder.c\n+++ b/lib/librte_reorder/rte_reorder.c\n@@ -11,6 +11,7 @@\n #include <rte_eal_memconfig.h>\n #include <rte_errno.h>\n #include <rte_malloc.h>\n+#include <rte_tailq.h>\n \n #include \"rte_reorder.h\"\n \ndiff --git a/lib/librte_ring/rte_ring.c b/lib/librte_ring/rte_ring.c\nindex 8d0744153..d23e66fa2 100644\n--- a/lib/librte_ring/rte_ring.c\n+++ b/lib/librte_ring/rte_ring.c\n@@ -30,6 +30,7 @@\n #include <rte_errno.h>\n #include <rte_string_fns.h>\n #include <rte_spinlock.h>\n+#include <rte_tailq.h>\n \n #include \"rte_ring.h\"\n \n",
    "prefixes": [
        "25/25"
    ]
}