numam-dpdk/lib/librte_kni
Olivier Matz d1d914ebbc mempool: allocate in several memory chunks by default
Introduce rte_mempool_populate_default() which allocates
mempool objects in several memzones.

The mempool header is now always allocated in a specific memzone
(not with its objects). Thanks to this modification, we can remove
many specific behavior that was required when hugepages are not
enabled in case we are using rte_mempool_xmem_create().

This change requires to update how kni and mellanox drivers lookup for
mbuf memory. For now, this will only work if there is only one memory
chunk (like today), but we could make use of rte_mempool_mem_iter() to
support more memory chunks.

We can also remove RTE_MEMPOOL_OBJ_NAME that is not required anymore for
the lookup, as memory chunks are referenced by the mempool.

Note that rte_mempool_create() is still broken (it was the case before)
when there is no hugepages support (rte_mempool_create_xmem() has to be
used). This is fixed in next commit.

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
2016-05-19 14:40:13 +02:00
..
Makefile kni: remove deprecated functions 2015-09-03 19:22:48 +02:00
rte_kni_fifo.h remove trailing whitespaces 2014-06-11 00:29:34 +02:00
rte_kni_version.map kni: remove deprecated functions 2015-09-03 19:22:48 +02:00
rte_kni.c mempool: allocate in several memory chunks by default 2016-05-19 14:40:13 +02:00
rte_kni.h lib: remove keyword extern for functions 2016-01-28 18:40:46 +01:00