Move common functions in eal_thread.c
PATCH v2 1/1 Move common functions in eal_thread.c
v2:
Quoted 1 line
Remove un-needed header file
eal_private.hfrom freeBSD
eal_thread.c after code movement.
v1:
Changes include
Quoted 1 line
Moving common functions in
eal_thread.cin
linuxapp and bsdapp into common/eal_common_thread.c file.
Quoted 1 line
Rearrange
eal_common_thread.ccompilation inMakefile
for ABI.
Compiled successfully for following targets
Quoted 6 lines
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
x86_x32-native-linuxapp-gcc
i686-native-linuxapp-gcc
x86_64-native-bsdapp-clang
x86_64-native-bsdapp-gcc
Tested on
Quoted 2 lines
Ubuntu 14.04, testpmd functionality
FreeBSD 10.1, testpmd functionality
--- lib/librte_eal/bsdapp/eal/Makefile | 3 +- lib/librte_eal/bsdapp/eal/eal_thread.c | 153 ------------------------------ lib/librte_eal/common/eal_common_thread.c | 147 +++++++++++++++++++++++++++- lib/librte_eal/linuxapp/eal/Makefile | 3 +- lib/librte_eal/linuxapp/eal/eal_thread.c | 153 ------------------------------ 5 files changed, 150 insertions(+), 309 deletions(-)
lib/librte_eal/bsdapp/eal/Makefile +2 -1
@@ -51,6 +51,7 @@ SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) := eal.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_memory.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_hugepage_info.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_thread.c +SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_thread.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_log.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_pci.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_debug.c
@@ -76,7 +77,6 @@ SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_hexdump.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_devargs.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_dev.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_options.c -SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += eal_common_thread.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += rte_malloc.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += malloc_elem.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_BSDAPP) += malloc_heap.c
@@ -90,6 +90,7 @@ CFLAGS_eal_common_log.o := -D_GNU_SOURCE # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) CFLAGS_eal_thread.o += -Wno-return-type +CFLAGS_eal_common_thread.o += -Wno-return-type CFLAGS_eal_hpet.o += -Wno-return-type endif
lib/librte_eal/bsdapp/eal/eal_thread.c +0 -153
163 lines not on this page · raw message
lib/librte_eal/common/eal_common_thread.c +146 -1
170 lines not on this page · raw message
lib/librte_eal/linuxapp/eal/Makefile +2 -1
@@ -55,6 +55,7 @@ ifeq ($(CONFIG_RTE_LIBRTE_XEN_DOM0),y) SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_xen_memory.c endif SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_thread.c +SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_thread.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_log.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_pci.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_pci_uio.c
@@ -86,7 +87,6 @@ SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_hexdump.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_devargs.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_dev.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_options.c -SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += eal_common_thread.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += rte_malloc.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += malloc_elem.c SRCS-$(CONFIG_RTE_LIBRTE_EAL_LINUXAPP) += malloc_heap.c
@@ -110,6 +110,7 @@ CFLAGS_eal_common_lcore.o := -D_GNU_SOURCE # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603 ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) CFLAGS_eal_thread.o += -Wno-return-type +CFLAGS_eal_common_thread.o += -Wno-return-type endif INC := rte_interrupts.h rte_kni_common.h rte_dom0_common.h
lib/librte_eal/linuxapp/eal/eal_thread.c +0 -153
164 lines not on this page · raw message
Signature · 1 line
1.9.1
Quoted 19 lines · rkerur at gmail.com (Ravi Kerur)
v2:
Quoted 1 line
Remove un-needed header file
eal_private.hfrom freeBSD
eal_thread.cafter code movement.v1:
Changes includeQuoted 1 line
Moving common functions in
eal_thread.cinlinuxapp and bsdapp into
common/eal_common_thread.cfile.Quoted 1 line
Rearrange
eal_common_thread.ccompilation inMakefilefor ABI.
Compiled successfully for following targets
Quoted 6 lines
x86_64-native-linuxapp-clang
x86_64-native-linuxapp-gcc
x86_x32-native-linuxapp-gcc
i686-native-linuxapp-gcc
x86_64-native-bsdapp-clang
x86_64-native-bsdapp-gcc
Quoted 5 lines
Tested on
Quoted 2 lines
Ubuntu 14.04, testpmd functionality
FreeBSD 10.1, testpmd functionalitySigned-off-by Ravi Kerur <rkerur at gmail.com>
Hi Ravi,
This patch is sitting on patchwork since 2015, I am updating it as rejected, if it is still relevant please let us know.
Sorry for any inconvenience caused.
19/12/2018 22:09, Ferruh Yigit:
Quoted 2 lines
This patch is sitting on patchwork since 2015, I am updating it as rejected, if it is still relevant please let us know.
Most of the functions in lib/librte_eal/bsdapp/eal/eal_thread.c and lib/librte_eal/linuxapp/eal/eal_thread.c are the same.
We must merge them before creating a third identical version for Windows.
Quoted 7 lines · Thomas Monjalon
19/12/2018 22:09, Ferruh Yigit:
Quoted 2 lines
This patch is sitting on patchwork since 2015, I am updating it as rejected, if it is still relevant please let us know.
Most of the functions in
lib/librte_eal/bsdapp/eal/eal_thread.candlib/librte_eal/linuxapp/eal/eal_thread.care the same.
We must merge them before creating a third identical version for Windows.
How to manage this? Should we create a Bugzilla defect for it?
11/01/2019 16:22, Ferruh Yigit:
Quoted 10 lines · Thomas Monjalon
Quoted 7 lines
19/12/2018 22:09, Ferruh Yigit:
Quoted 2 lines
This patch is sitting on patchwork since 2015, I am updating it as rejected, if it is still relevant please let us know.
Most of the functions in
lib/librte_eal/bsdapp/eal/eal_thread.candlib/librte_eal/linuxapp/eal/eal_thread.care the same.
We must merge them before creating a third identical version for Windows.How to manage this? Should we create a Bugzilla defect for it?
Yes, good idea.
We could find some volunteers for such tasks.
If you create the bug, please reference the work already done by Ravi. Thanks
Quoted 10 lines · Thomas Monjalon
11/01/2019 16:22, Ferruh Yigit:
Quoted 9 lines · Thomas Monjalon
Quoted 7 lines
19/12/2018 22:09, Ferruh Yigit:
Quoted 2 lines
This patch is sitting on patchwork since 2015, I am updating it as rejected, if it is still relevant please let us know.
Most of the functions in
lib/librte_eal/bsdapp/eal/eal_thread.candlib/librte_eal/linuxapp/eal/eal_thread.care the same.
We must merge them before creating a third identical version for Windows.
Quoted 5 lines
Quoted 1 line
How to manage this? Should we create a Bugzilla defect for it?
Yes, good idea.
We could find some volunteers for such tasks.
If you create the bug, please reference the work already done by Ravi.
Created Bug ID: 187
https://bugs.dpdk.org/show_bug.cgi?id=187