net/dpaa2: add per-thread initialization API
authorNipun Gupta <nipun.gupta@nxp.com>
Mon, 19 Jul 2021 13:59:15 +0000 (19:29 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Jul 2021 18:29:53 +0000 (20:29 +0200)
commita5b375edb79d51295ace62296528e7850415aa67
treef117c597c5a96d9d6fbe2da42b04f5576e245ab6
parentb95afba45f653c81467f10ed7df317259fff12c6
net/dpaa2: add per-thread initialization API

DPAA2 hardware require a hardware portal context.
If a thread doing DPAA2 i/o do not have portal, it will
allocate it on run-time. This may cause a delay in the
datapath at run-time. To avoid it, it is better to allocate
a hw context portal at the start of thread expected to do
i/o with DPAA2 hardware.

This patch makes necessary changes for the same and creates
a pmd API to allocate a hw context portal for a thread.

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
drivers/bus/fslmc/portal/dpaa2_hw_dpio.c
drivers/net/dpaa2/dpaa2_ethdev.c
drivers/net/dpaa2/rte_pmd_dpaa2.h
drivers/net/dpaa2/version.map