bus/dpaa: check portal presence in the caller function
authorNipun Gupta <nipun.gupta@nxp.com>
Tue, 23 Jan 2018 12:27:06 +0000 (17:57 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 12:44:54 +0000 (13:44 +0100)
commit5d944582d0282f0d133619cff7515d89bc4ed216
treeaaa8ad740ee4a4052550d61c30339c9a31894597
parent41c9ee8d113a6c55d19248d20ec517d2bf3be043
bus/dpaa: check portal presence in the caller function

In the I/O path we were calling rte_dpaa_portal_init which
internally checks if a portal is affined to the core.
But this lead to calling of that non-static API in every call.

Instead check the portal affinity in the caller itself for
performance reasons

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/dpaa/dpaa_bus.c
drivers/bus/dpaa/rte_bus_dpaa_version.map
drivers/bus/dpaa/rte_dpaa_bus.h
drivers/mempool/dpaa/dpaa_mempool.c
drivers/net/dpaa/dpaa_ethdev.c
drivers/net/dpaa/dpaa_rxtx.c