memcpy is now mapped to rte_memcpy macro on x86 architectures.
Fixes:
9ba7981ec992 ("ena: add communication layer for DPDK")
Cc: stable@dpdk.org
Signed-off-by: Igor Chauskin <igorch@amazon.com>
Reviewed-by: Michal Krawczyk <mk@semihalf.com>
Reviewed-by: Artur Rojek <ar@semihalf.com>
* Added conntrack item and action for stateful connection offload.
+* **Updated Amazon ENA PMD.**
+
+ The new driver version (v2.3.0) introduced bug fixes and improvements,
+ including:
+
+ * Changed memcpy mapping to the dpdk-optimized version.
+
* **Updated Arkville PMD driver.**
Updated Arkville net driver with new features and improvements, including:
#include <rte_spinlock.h>
#include <sys/time.h>
+#include <rte_memcpy.h>
typedef uint64_t u64;
typedef uint32_t u32;
#define ENA_UDELAY(x) rte_delay_us_block(x)
#define ENA_TOUCH(x) ((void)(x))
-#define memcpy_toio memcpy
+/* Avoid nested declaration on arm64, as it may define rte_memcpy as memcpy. */
+#if defined(RTE_ARCH_X86)
+#undef memcpy
+#define memcpy rte_memcpy
+#endif
#define wmb rte_wmb
#define rmb rte_rmb
#define mb rte_mb