vlib: store buffer memory information in the buffer_main 03/7503/3
authorDamjan Marion <damarion@cisco.com>
Mon, 10 Jul 2017 13:06:17 +0000 (15:06 +0200)
committerDave Barach <openvpp@barachs.net>
Mon, 10 Jul 2017 19:35:57 +0000 (19:35 +0000)
commit04a7f05e91e919f51eaecaee476435484076655b
treeb7cbd12430c4a16b6289300b5b604835791bd780
parent28160f38488743b8cee0a7bd62b432a9dd8f4bfd
vlib: store buffer memory information in the buffer_main

Currently, buffer index is calculated as a offset to the physmem
region shifted by log2_cacheline size.

When DPDK is used we "hack" physmem data with information taken from
dpdk mempool. This makes physmem code not usable with DPDK.

This change makes buffer memory start and size independent of physmem
basically allowing physmem to be used when DPDK plugin is loaded.

Change-Id: Ieb399d398f147583b9baab467152a352d58c9c31
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/plugins/dpdk/buffer.c
src/vlib/buffer.c
src/vlib/buffer.h
src/vlib/buffer_funcs.h
src/vlib/main.c
src/vlib/unix/physmem.c
src/vnet/pg/input.c
src/vnet/pg/stream.c
src/vnet/replication.c