bus/dpaa: support secondary process init

Secondary process also need the access the qman and bman
ccsr map.

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
This commit is contained in:
Hemant Agrawal 2021-02-24 18:13:07 +05:30 committed by Ferruh Yigit
parent 376fb49ecf
commit da38fe2303

View File

@ -582,7 +582,6 @@ rte_dpaa_bus_probe(void)
/* Device list creation is only done once */
if (!process_once) {
rte_dpaa_bus_dev_build();
if (rte_eal_process_type() == RTE_PROC_PRIMARY) {
/* One time load of Qman/Bman drivers */
ret = qman_global_init();
if (ret) {
@ -597,7 +596,6 @@ rte_dpaa_bus_probe(void)
return ret;
}
}
}
process_once = 1;
/* If no device present on DPAA bus nothing needs to be done */