eal/x86: revert select optimized memcpy at run-time
authorXiaoyun Li <xiaoyun.li@intel.com>
Fri, 3 Nov 2017 12:47:23 +0000 (20:47 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Nov 2017 00:16:03 +0000 (01:16 +0100)
commitd35cc1fe6a7a1cafb6b70c514bcfb9f0cee9e4b7
tree08ee509887a1991f9956d9f5509b4ea9fe01bf5e
parente3a64deae2d58307c8f7bea15e6661f5150853d5
eal/x86: revert select optimized memcpy at run-time

Revert the patchset run-time Linking support including the following
3 commits:

Fixes: 84cc318424d4 ("eal/x86: select optimized memcpy at run-time")
Fixes: c7fbc80fe60f ("test: select memcpy alignment unit at run-time")
Fixes: 5f180ae32962 ("efd: move AVX2 lookup in its own compilation unit")

The patchset would cause perf drop in vhost/virtio loopback performance
test. Because the run-time dispatch must cost at least a function call
comparing to the compile-time dispatch. And the reference cpu cycles value
is small. And in the test, when using 128-256 bytes packet, it would cause
16%-20% perf drop with mergeble path. When using 256 bytes packet, it would
cause 13% perf drop with vector path.

Signed-off-by: Xiaoyun Li <xiaoyun.li@intel.com>
13 files changed:
lib/librte_eal/bsdapp/eal/Makefile
lib/librte_eal/common/arch/x86/rte_memcpy_avx2.c [deleted file]
lib/librte_eal/common/arch/x86/rte_memcpy_avx512f.c [deleted file]
lib/librte_eal/common/arch/x86/rte_memcpy_sse.c [deleted file]
lib/librte_eal/common/include/arch/x86/rte_memcpy.h
lib/librte_eal/common/include/arch/x86/rte_memcpy_internal.h [deleted file]
lib/librte_eal/linuxapp/eal/Makefile
lib/librte_eal/rte_eal_version.map
lib/librte_efd/Makefile
lib/librte_efd/rte_efd_x86.c [deleted file]
lib/librte_efd/rte_efd_x86.h
mk/rte.cpuflags.mk
test/test/test_memcpy_perf.c