numam-dpdk/drivers/net/dpaa2
Chenxu Di c6299a0867 net/dpaa2: fix build with timesync functions
Some timesync related source files are built only when
'RTE_LIBRTE_IEEE1588' config is set, which is missing in meson.

Building with '-DRTE_LIBRTE_IEEE1588' cflag will enable timesync
functionality in the files that are build, but it won't build files
that require 'RTE_LIBRTE_IEEE1588' config.
This causes the build error.

Fixing by removing config check in meson file and build all .c files by
default, but wrap relevant code part with 'RTE_LIBRTE_IEEE1588' macro.

Also removing 'RTE_LIBRTE_IEEE1588' ifdef around some fields of the data
structures, to not require finer grained macro wraps on the functions
using them.
Since the registration of the function disabled with macro check, having
functions compiled shouldn't affect the functionality.

Fixes: 184c39d165 ("net/dpaa2: add DPRTC sub-module")
Cc: stable@dpdk.org

Signed-off-by: Chenxu Di <chenxux.di@intel.com>
Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Sachin Saxena <sachin.saxena@oss.nxp.com>
2020-10-16 19:18:47 +02:00
..
base net/dpaa2: configure per-class distribution size 2020-07-11 06:18:52 +02:00
mc drivers: update copyright for NXP files 2019-11-28 16:03:54 +01:00
dpaa2_ethdev.c ethdev: remove old close behaviour 2020-09-30 19:19:14 +02:00
dpaa2_ethdev.h net/dpaa2: fix build with timesync functions 2020-10-16 19:18:47 +02:00
dpaa2_flow.c net/dpaa2: fix check for key size 2020-10-06 14:43:40 +02:00
dpaa2_mux.c bus/fslmc: add accessor for MCP 2020-05-19 15:49:53 +02:00
dpaa2_pmd_logs.h drivers: fix SPDX license id consistency 2019-03-29 00:15:53 +01:00
dpaa2_ptp.c net/dpaa2: fix build with timesync functions 2020-10-16 19:18:47 +02:00
dpaa2_rxtx.c net/dpaa2: support per-port Rx mbuf timestamp 2020-07-21 13:54:54 +02:00
dpaa2_sparser.c devtools: forbid variable declaration inside for 2020-07-03 10:04:15 +02:00
dpaa2_sparser.h net/dpaa2: add soft parser driver 2019-10-08 12:14:31 +02:00
meson.build net/dpaa2: fix build with timesync functions 2020-10-16 19:18:47 +02:00
rte_pmd_dpaa2_version.map net/dpaa2: remove Rx timestamp enable PMD API 2020-07-21 13:54:54 +02:00
rte_pmd_dpaa2.h net/dpaa2: remove Rx timestamp enable PMD API 2020-07-21 13:54:54 +02:00