mempool/dpaa2: support saving context of buffer pool
authorShreyansh Jain <shreyansh.jain@nxp.com>
Fri, 11 Jan 2019 12:25:02 +0000 (12:25 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commit109df4601cbe71959bd030c342dcaaf026e6e82d
treee81c5bca765fb2b3b425cb110068ae73ba0df767
parent5f822962498e7bff162f3ed87e15652a5b4790b9
mempool/dpaa2: support saving context of buffer pool

Initial design was to have the buffer pool per process where a
global static array stores the bpids. But, in case of secondary
processes, this would not allow the I/O threads to translate the
bpid in Rx'd packets.

This patch moves the array to a global area (rte_malloc) and in
case of Rx thread not containing a valid reference to the array,
reference is build using the handle avaialble in the dpaa2_queue.

Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
drivers/mempool/dpaa2/dpaa2_hw_mempool.c
drivers/mempool/dpaa2/dpaa2_hw_mempool.h
drivers/net/dpaa2/dpaa2_ethdev.c
drivers/net/dpaa2/dpaa2_rxtx.c