drivers/net: fix exposing internal headers
authorFerruh Yigit <ferruh.yigit@intel.com>
Fri, 10 Jul 2020 21:43:41 +0000 (22:43 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:54 +0000 (06:18 +0200)
commit61ede39537f45e561dc80eaa23621ce3d2cf9e73
treebbef961b711a3cb5ab93cde55ba224614b44ee38
parent198e745083b960d167bd769e2f81818c835f68b8
drivers/net: fix exposing internal headers

Using '__rte_internal' tag in 'rte_ethdev_driver.h' causing build error
for applications and examples. Because they don't define
'ALLOW_INTERNAL_API' flag and '__rte_internal' causes the error.
This patch is preparation for future '__rte_internal' usage.

At first place, applications/examples should not include
'rte_ethdev_driver.h', this is happening because of PMD public header
files include 'rte_ethdev_driver.h' by mistake.

Updated PMD public header files to not include internal header files.

But for unit test application, 'app/test', enable accessing internal
APIs, since some unit tests need them.

Fixes: ffc905f3b856 ("ethdev: separate driver APIs")
Fixes: ec0dec44ecb9 ("net/atlantic: enable MACsec configuration")
Cc: stable@dpdk.org
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
app/test/meson.build
drivers/net/atlantic/rte_pmd_atlantic.h
drivers/net/bnxt/rte_pmd_bnxt.h
drivers/net/dpaa/rte_pmd_dpaa.h
drivers/net/i40e/rte_pmd_i40e.h
drivers/net/ixgbe/rte_pmd_ixgbe.h