numam-dpdk/lib
Sergio Gonzalez Monroy fafcc11985 mem: rework memzone to be allocated by malloc
In the current memory hierarchy, memsegs are groups of physically
contiguous hugepages, memzones are slices of memsegs and malloc further
slices memzones into smaller memory chunks.

This patch modifies malloc so it partitions memsegs instead of memzones.
Thus memzones would call malloc internally for memory allocation while
maintaining its ABI.

During initialization malloc sets all available memory as part of the heaps.
CONFIG_RTE_MALLOC_MEMZONE_SIZE was used to specify the default memory
block size to expand the heap. The option is not used/relevant anymore,
so we remove it.

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.

It would be possible to free memzones and therefore any other structure
based on memzones, ie. mempools

Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
2015-07-16 13:59:24 +02:00
..
librte_acl mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
librte_cfgfile cfgfile: fix unitialised buffer 2015-07-01 23:36:22 +02:00
librte_cmdline lib: remove redundant definition of local symbols 2015-06-29 18:57:32 +02:00
librte_compat compat: remove unneeded macro 2015-06-29 16:41:23 +02:00
librte_distributor distributor: remove inclusion of mbuf header 2015-05-11 15:36:37 +02:00
librte_eal mem: rework memzone to be allocated by malloc 2015-07-16 13:59:24 +02:00
librte_ether ethdev: call Rx and Tx callbacks in the order they were added 2015-07-12 23:36:18 +02:00
librte_hash mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
librte_ip_frag mbuf: use offset macro 2015-06-24 12:01:14 +02:00
librte_ivshmem ivshmem: fix crash in corner case 2015-06-22 18:39:40 +02:00
librte_jobstats jobstats: new library 2015-02-24 22:12:35 +01:00
librte_kni kni: ignore double initialization 2015-06-22 18:39:40 +02:00
librte_kvargs kvargs: fix freeing behaviour for null 2015-03-04 11:19:37 +01:00
librte_lpm mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
librte_malloc mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
librte_mbuf mbuf: remove old packet type bit masks 2015-07-16 00:57:55 +02:00
librte_mempool mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
librte_meter doc: fix doxygen warnings in QoS API 2015-06-18 14:53:58 +02:00
librte_net lib: remove extra parenthesis after return 2015-06-23 23:31:15 +02:00
librte_pipeline pipeline: fix missing exported symbols 2015-07-09 17:25:45 +02:00
librte_port mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
librte_power doc: fix doxygen warnings 2015-06-19 12:11:53 +02:00
librte_reorder reorder: allow random number as starting point 2015-06-22 22:20:12 +02:00
librte_ring mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
librte_sched doc: fix doxygen warnings in QoS API 2015-06-18 14:53:58 +02:00
librte_table mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00
librte_timer tailq: remove unneeded inclusions 2015-03-10 11:47:46 +01:00
librte_vhost vhost: comment unwanted callback 2015-06-30 17:49:08 +02:00
Makefile mem: move librte_malloc to eal/common 2015-07-16 13:44:48 +02:00