summaryrefslogtreecommitdiff
path: root/drivers/bus
diff options
context:
space:
mode:
authorShreyansh Jain <shreyansh.jain@nxp.com>2019-01-11 12:25:02 +0000
committerFerruh Yigit <ferruh.yigit@intel.com>2019-01-14 17:44:29 +0100
commit109df4601cbe71959bd030c342dcaaf026e6e82d (patch)
treee81c5bca765fb2b3b425cb110068ae73ba0df767 /drivers/bus
parent5f822962498e7bff162f3ed87e15652a5b4790b9 (diff)
downloaddpdk-next-eventdev-109df4601cbe71959bd030c342dcaaf026e6e82d.zip
dpdk-next-eventdev-109df4601cbe71959bd030c342dcaaf026e6e82d.tar.gz
dpdk-next-eventdev-109df4601cbe71959bd030c342dcaaf026e6e82d.tar.xz
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>
Diffstat (limited to 'drivers/bus')
-rw-r--r--drivers/bus/fslmc/portal/dpaa2_hw_pvt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
index efbeebe..20c606d 100644
--- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
+++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h
@@ -141,6 +141,7 @@ struct dpaa2_queue {
};
struct rte_event ev;
dpaa2_queue_cb_dqrr_t *cb;
+ struct dpaa2_bp_info *bp_array;
};
struct swp_active_dqs {