Remove free_memseg field from internal mem config structure as it is
not used anymore.
Also remove code in ivshmem that was setting up free_memseg on init.

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy at intel.com>
---
 lib/librte_eal/common/include/rte_eal_memconfig.h | 3 ---
 lib/librte_eal/linuxapp/eal/eal_ivshmem.c         | 9 ---------
 2 files changed, 12 deletions(-)

diff --git a/lib/librte_eal/common/include/rte_eal_memconfig.h 
b/lib/librte_eal/common/include/rte_eal_memconfig.h
index 055212a..7de906b 100644
--- a/lib/librte_eal/common/include/rte_eal_memconfig.h
+++ b/lib/librte_eal/common/include/rte_eal_memconfig.h
@@ -73,9 +73,6 @@ struct rte_mem_config {
        struct rte_memseg memseg[RTE_MAX_MEMSEG];    /**< Physmem descriptors. 
*/
        struct rte_memzone memzone[RTE_MAX_MEMZONE]; /**< Memzone descriptors. 
*/

-       /* Runtime Physmem descriptors - NOT USED */
-       struct rte_memseg free_memseg[RTE_MAX_MEMSEG];
-
        struct rte_tailq_head tailq_head[RTE_MAX_TAILQ]; /**< Tailqs for 
objects */

        /* Heaps of Malloc per socket */
diff --git a/lib/librte_eal/linuxapp/eal/eal_ivshmem.c 
b/lib/librte_eal/linuxapp/eal/eal_ivshmem.c
index 2deaeb7..facfb80 100644
--- a/lib/librte_eal/linuxapp/eal/eal_ivshmem.c
+++ b/lib/librte_eal/linuxapp/eal/eal_ivshmem.c
@@ -725,15 +725,6 @@ map_all_segments(void)
                 * expect memsegs to be empty */
                memcpy(&mcfg->memseg[i], &ms,
                                sizeof(struct rte_memseg));
-               memcpy(&mcfg->free_memseg[i], &ms,
-                               sizeof(struct rte_memseg));
-
-
-               /* adjust the free_memseg so that there's no free space left */
-               mcfg->free_memseg[i].ioremap_addr += mcfg->free_memseg[i].len;
-               mcfg->free_memseg[i].phys_addr += mcfg->free_memseg[i].len;
-               mcfg->free_memseg[i].addr_64 += mcfg->free_memseg[i].len;
-               mcfg->free_memseg[i].len = 0;

                close(fd);

-- 
1.9.3

Reply via email to