Move EAL common function
v4 cover Move EAL common function
Fix v3 PATCH review comments from Thomas. eal_common.c is further split into eal_common_system.c and eal_common_runtime.c files with appropriate functions. eal_externs.h file is removed and _get_ and _set_ APIs are used to access variables.
Functions with same signature in Linux and BSD but different names are kept intact but Linux function name is used as wrapper for BSD.
Added eal_pci.c in v4 PATCH.
New files added follow _common_ naming conventions. Tested against Ubuntu and FreeBSD.
Ravi Kerur (7):
Move common functions in eal_debug.c
Move common functions in eal_thread.c
Move common functions in eal.c
Move common functions in eal_lcore.c
Move common functions in eal_timer.c
Move common functions in eal_memory.c
Move common functions in eal_pci.c
app/test/test_debug.c | 1 - lib/librte_eal/bsdapp/eal/Makefile | 12 +- lib/librte_eal/bsdapp/eal/eal.c | 269 ++++---------------------- lib/librte_eal/bsdapp/eal/eal_debug.c | 113 ----------- lib/librte_eal/bsdapp/eal/eal_lcore.c | 61 ++---- lib/librte_eal/bsdapp/eal/eal_memory.c | 47 ++--- lib/librte_eal/bsdapp/eal/eal_pci.c | 127 +------------ lib/librte_eal/bsdapp/eal/eal_thread.c | 233 ----------------------- lib/librte_eal/bsdapp/eal/eal_timer.c | 54 +----- lib/librte_eal/common/eal_common_debug.c | 106 +++++++++++ lib/librte_eal/common/eal_common_lcore.c | 95 ++++++++++ lib/librte_eal/common/eal_common_memory.c | 38 +++- lib/librte_eal/common/eal_common_pci.c | 171 ++++++++++++++++- lib/librte_eal/common/eal_common_runtime.c | 201 ++++++++++++++++++++ lib/librte_eal/common/eal_common_system.c | 203 ++++++++++++++++++++ lib/librte_eal/common/eal_common_thread.c | 248 ++++++++++++++++++++++++ lib/librte_eal/common/eal_common_timer.c | 101 ++++++++++ lib/librte_eal/common/eal_hugepages.h | 1 + lib/librte_eal/common/eal_private.h | 205 ++++++++++++++++++++ lib/librte_eal/common/include/rte_debug.h | 7 - lib/librte_eal/linuxapp/eal/Makefile | 12 +- lib/librte_eal/linuxapp/eal/eal.c | 290 +++++------------------------ lib/librte_eal/linuxapp/eal/eal_debug.c | 113 ----------- lib/librte_eal/linuxapp/eal/eal_lcore.c | 55 +----- lib/librte_eal/linuxapp/eal/eal_memory.c | 36 +--- lib/librte_eal/linuxapp/eal/eal_pci.c | 113 +---------- lib/librte_eal/linuxapp/eal/eal_pci_init.h | 6 - lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 36 +--- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 9 +- lib/librte_eal/linuxapp/eal/eal_thread.c | 233 ----------------------- lib/librte_eal/linuxapp/eal/eal_timer.c | 55 +----- 31 files changed, 1522 insertions(+), 1729 deletions(-) delete mode 100644 lib/librte_eal/bsdapp/eal/eal_debug.c delete mode 100644 lib/librte_eal/bsdapp/eal/eal_thread.c create mode 100644 lib/librte_eal/common/eal_common_debug.c create mode 100644 lib/librte_eal/common/eal_common_lcore.c create mode 100644 lib/librte_eal/common/eal_common_runtime.c create mode 100644 lib/librte_eal/common/eal_common_system.c create mode 100644 lib/librte_eal/common/eal_common_thread.c create mode 100644 lib/librte_eal/common/eal_common_timer.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_debug.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_thread.c
Signature · 1 line
1.9.1
Hi Ravi,
2015-01-06 12:24, Ravi Kerur:
Quoted 12 lines
Fix v3 PATCH review comments from Thomas.
eal_common.cis further split intoeal_common_system.candeal_common_runtime.cfiles with appropriate functions.eal_externs.hfile is removed and _get_ and _set_ APIs are used to access variables.
Functions with same signature in Linux and BSD but different names are kept intact but Linux function name is used as wrapper for BSD.
Addedeal_pci.cin v4 PATCH.
New files added follow _common_ naming conventions. Tested against Ubuntu and FreeBSD.
Quoted 8 lines
Ravi Kerur (7):
Move common functions ineal_debug.c
Move common functions ineal_thread.c
Move common functions ineal.c
Move common functions ineal_lcore.c
Move common functions ineal_timer.c
Move common functions ineal_memory.c
Move common functions ineal_pci.c
Sorry for not integrating this big refactoring in release 2.0. It wasn't easy to merge it during development of some EAL features. And it's now too risky to rework it before the release.
I think this clean-up is needed and should be done at the beginning of 2.1 cycle. We just need to rebase it and remove the "ifdef BSD/LINUX" which was introduced in pci code.
Do you think you'll have time for it?
Thanks
Hi Thomas,
Sure, please let me know when it is needed I can work on it.
Thanks,
Ravi
Quoted 35 lines · Thomas Monjalon
Hi Ravi,
2015-01-06 12:24, Ravi Kerur:
Quoted 12 lines
Fix v3 PATCH review comments from Thomas.
eal_common.cis further split intoeal_common_system.candeal_common_runtime.cfiles with appropriate functions.eal_externs.hfile is removed and _get_ and _set_ APIs are used to access variables.
Functions with same signature in Linux and BSD but different names are kept intact but Linux function name is used as wrapper for BSD.
Addedeal_pci.cin v4 PATCH.
New files added follow _common_ naming conventions. Tested against Ubuntu and FreeBSD.Quoted 8 lines
Ravi Kerur (7):
Move common functions ineal_debug.c
Move common functions ineal_thread.c
Move common functions ineal.c
Move common functions ineal_lcore.c
Move common functions ineal_timer.c
Move common functions ineal_memory.c
Move common functions ineal_pci.cSorry for not integrating this big refactoring in release 2.0. It wasn't easy to merge it during development of some EAL features. And it's now too risky to rework it before the release.
I think this clean-up is needed and should be done at the beginning of 2.1 cycle. We just need to rebase it and remove the "ifdef BSD/LINUX" which was introduced in pci code.Do you think you'll have time for it?
Thanks
2015-03-30 16:15, Ravi Kerur:
Quoted 11 lines · Thomas Monjalon
Quoted 8 lines
Sorry for not integrating this big refactoring in release 2.0. It wasn't easy to merge it during development of some EAL features. And it's now too risky to rework it before the release.
I think this clean-up is needed and should be done at the beginning of 2.1 cycle. We just need to rebase it and remove the "ifdef BSD/LINUX" which was introduced in pci code.Do you think you'll have time for it?
Sure, please let me know when it is needed I can work on it.
2.1 cycle is starting in few days.
So the sooner is the better.
Thanks a lot Ravi
I will work on it and send out patches by next week. If you need it earlier please let me know.
Thanks,
Ravi
Quoted 21 lines · Thomas Monjalon
2015-03-30 16:15, Ravi Kerur:
Quoted 1 line
On Mon, Mar 30, 2015 at 2:29 PM, Thomas Monjalon <
Quoted 4 lines · [email protected]> wrote:
Quoted 4 lines
Sorry for not integrating this big refactoring in release 2.0. It wasn't easy to merge it during development of some EAL features. And it's now too risky to rework it before the release.
I think this clean-up is needed and should be done at the beginning of2.1
Quoted 1 line
Quoted 1 line
cycle. We just need to rebase it and remove the "ifdef BSD/LINUX"
which was
Quoted 5 lines
Quoted 3 lines
introduced in pci code.
Do you think you'll have time for it?
Sure, please let me know when it is needed I can work on it.
2.1 cycle is starting in few days.
So the sooner is the better.Thanks a lot Ravi
Thomas, Any additional tests i need to do on linux/bsd for v5 series please let me know.
Thanks,
Ravi
Quoted 32 lines · Ravi Kerur
I will work on it and send out patches by next week. If you need it earlier please let me know.
Thanks,
RaviQuoted 21 lines · Thomas Monjalon
2015-03-30 16:15, Ravi Kerur:
Quoted 1 line
On Mon, Mar 30, 2015 at 2:29 PM, Thomas Monjalon <
Quoted 4 lines · [email protected]> wrote:
Quoted 4 lines
Sorry for not integrating this big refactoring in release 2.0. It wasn't easy to merge it during development of some EAL features. And it's now too risky to rework it before the release. I think this clean-up is needed and should be done at the beginning
of 2.1
Quoted 1 line
Quoted 1 line
cycle. We just need to rebase it and remove the "ifdef BSD/LINUX"
which was
Quoted 5 lines
Quoted 3 lines
introduced in pci code.
Do you think you'll have time for it?
Sure, please let me know when it is needed I can work on it.
2.1 cycle is starting in few days.
So the sooner is the better.Thanks a lot Ravi