dpdk: use vpp physmem allocator for dpdk buffers 01/7701/28
authorDamjan Marion <damarion@cisco.com>
Thu, 20 Jul 2017 16:10:35 +0000 (18:10 +0200)
committerNeale Ranns <nranns@cisco.com>
Wed, 4 Oct 2017 10:46:51 +0000 (10:46 +0000)
commit206243c1b79b70d9370e1bdc47a200289d48ddf4
treef7dc56d76cc02feb5685605d01d1abf63eb40cc9
parent7b7ba572ab486d57b59c12af521175a6bcd7a52b
dpdk: use vpp physmem allocator for dpdk buffers

This allows us to have single contignuous allocation for DPDK buffers
with single mmap FD, so buffer memory can be easily shared with diffrent
process.

As a consequence dpdk socket-mem is no longer in charge for allocating
buffer memory, but still we need some space allocated for dpdk
structures so default socket-mem is reduced form 256 to 64 MB.

For a default of 16K buffers per numa node, physmem allocation is now
40MB, so basically this change reduces footprint from 256MB per socket
to 48 (64 + 40).

Change-Id: Ic8cfe83930a18411545b37a12b14aac89affd04f
Signed-off-by: Damjan Marion <damarion@cisco.com>
Signed-off-by: Sergio Gonzalez Monroy <sergio.gonzalez.monroy@intel.com>
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/plugins/dpdk/buffer.c
src/plugins/dpdk/device/init.c