mem: allow memseg lists to be marked as external
[dpdk.git] / lib / librte_eal / common / include / rte_eal_memconfig.h
index aff0688..bb537aa 100644 (file)
@@ -30,9 +30,11 @@ struct rte_memseg_list {
                uint64_t addr_64;
                /**< Makes sure addr is always 64-bits */
        };
-       int socket_id; /**< Socket ID for all memsegs in this list. */
        uint64_t page_sz; /**< Page size for all memsegs in this list. */
+       int socket_id; /**< Socket ID for all memsegs in this list. */
        volatile uint32_t version; /**< version number for multiprocess sync. */
+       size_t len; /**< Length of memory area covered by this memseg list. */
+       unsigned int external; /**< 1 if this list points to external memory */
        struct rte_fbarray memseg_arr;
 };
 
@@ -77,6 +79,10 @@ struct rte_mem_config {
         * exact same address the primary process maps it.
         */
        uint64_t mem_cfg_addr;
+
+       /* legacy mem and single file segments options are shared */
+       uint32_t legacy_mem;
+       uint32_t single_file_segments;
 } __attribute__((__packed__));