Re: [dpdk-dev] [PATCH v3 3/4] eal: export needed functions for mempool

2020-07-02 Thread Fady Bader
Ok, I'll send a new version today. > -Original Message- > From: Thomas Monjalon > Sent: Tuesday, June 30, 2020 2:29 AM > To: Fady Bader > Cc: dev@dpdk.org; Tasnim Bashar ; Tal Shnaiderman > ; Yohad Tor ; > dmitry.kozl...@gmail.com; harini.ramakrish

Re: [dpdk-dev] [PATCH v3 1/4] eal: disable function versioning on Windows

2020-07-02 Thread Fady Bader
> -Original Message- > From: Thomas Monjalon > Sent: Tuesday, June 30, 2020 2:26 AM > To: Fady Bader > Cc: dev@dpdk.org; Tasnim Bashar ; Tal Shnaiderman > ; Yohad Tor ; > dmitry.kozl...@gmail.com; harini.ramakrish...@microsoft.com; > ocard...@microsoft.com;

[dpdk-dev] [PATCH v4 1/3] eal: disable function versioning on Windows

2020-07-02 Thread Fady Bader
Function versioning implementation is not supported by Windows. Function versioning was disabled on Windows. Signed-off-by: Fady Bader --- lib/librte_eal/include/rte_function_versioning.h | 8 1 file changed, 8 insertions(+) diff --git a/lib/librte_eal/include

[dpdk-dev] [PATCH v4 3/3] mempool: mempool build on Windows

2020-07-02 Thread Fady Bader
Some eal functions are used by mempool lib but not exported on Windows. The functions were exported. Added mempool to supported libraries for Windows compilation. Signed-off-by: Fady Bader --- lib/librte_eal/rte_eal_exports.def | 6 ++ lib/librte_eal/rte_eal_version.map | 1 + lib

[dpdk-dev] [PATCH v4 2/3] mempool: use generic memory management

2020-07-02 Thread Fady Bader
mempool used Unix memory management calls, which are not supported on Windows. Used generic memory management instead. Signed-off-by: Fady Bader --- lib/librte_mempool/rte_mempool.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/lib/librte_mempool

[dpdk-dev] [PATCH v4 0/3] build mempool on Windows

2020-07-02 Thread Fady Bader
management patchset. Fady Bader (3): eal: disable function versioning on Windows mempool: use generic memory management mempool: mempool build on Windows lib/librte_eal/include/rte_function_versioning.h | 8 lib/librte_eal/rte_eal_exports.def | 6 ++ lib/

Re: [dpdk-dev] [PATCH v3 1/4] eal: disable function versioning on Windows

2020-07-05 Thread Fady Bader
> -Original Message- > From: Kinsella, Ray > Sent: Thursday, July 2, 2020 5:57 PM > To: Fady Bader ; dev@dpdk.org > Cc: Thomas Monjalon ; Tasnim Bashar > ; Tal Shnaiderman ; Yohad Tor > ; dmitry.kozl...@gmail.com; > harini.ramakrish...@microsoft.com; ocard...@mic

Re: [dpdk-dev] [PATCH v3 1/4] eal: disable function versioning on Windows

2020-07-05 Thread Fady Bader
> -Original Message- > From: Thomas Monjalon > Sent: Sunday, July 5, 2020 11:38 AM > To: Kinsella, Ray ; Fady Bader > Cc: dev@dpdk.org; Tasnim Bashar ; Tal Shnaiderman > ; Yohad Tor ; > dmitry.kozl...@gmail.com; harini.ramakrish...@microsoft.com; > ocard...@m

[dpdk-dev] [PATCH v5 2/3] mempool: use generic memory management

2020-07-05 Thread Fady Bader
Using generic memory management calls instead of Unix memory management calls for mempool. Signed-off-by: Fady Bader --- lib/librte_mempool/rte_mempool.c | 23 --- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/lib/librte_mempool/rte_mempool.c b/lib

[dpdk-dev] [PATCH v5 1/3] eal: disable function versioning on Windows

2020-07-05 Thread Fady Bader
Function versioning implementation is not supported by Windows. Function versioning was disabled on Windows. Signed-off-by: Fady Bader --- lib/librte_eal/include/rte_function_versioning.h | 2 +- lib/meson.build | 5 + 2 files changed, 6 insertions(+), 1

[dpdk-dev] [PATCH v5 0/3] build mempool on Windows

2020-07-05 Thread Fady Bader
quot;. v2: * Replace ifndef of tracepoints with symbol export from memory management patchset. Fady Bader (3): eal: disable function versioning on Windows mempool: use generic memory management mempool: mempool build on Windows lib/librte_eal/include/rte_function_versioning.h |

[dpdk-dev] [PATCH v5 3/3] mempool: mempool build on Windows

2020-07-05 Thread Fady Bader
Some eal functions are used by mempool lib but not exported on Windows. The functions were exported. Added mempool to supported libraries for Windows compilation. Signed-off-by: Fady Bader --- lib/librte_eal/rte_eal_exports.def | 6 ++ lib/librte_eal/rte_eal_version.map | 1 + lib

Re: [dpdk-dev] [PATCH v5 3/3] mempool: mempool build on Windows

2020-07-05 Thread Fady Bader
> -Original Message- > From: David Marchand > Sent: Sunday, July 5, 2020 3:01 PM > To: Fady Bader > Cc: dev ; Thomas Monjalon ; Tasnim > Bashar ; Tal Shnaiderman ; > Yohad Tor ; Dmitry Kozlyuk > ; Harini Ramakrishnan > ; Omar Cardona > ; Pallavi Kadam ;

Re: [dpdk-dev] [PATCH v5 2/3] mempool: use generic memory management

2020-07-05 Thread Fady Bader
> -Original Message- > From: Dmitry Kozlyuk > Sent: Sunday, July 5, 2020 3:08 PM > To: Fady Bader > Cc: dev@dpdk.org; Thomas Monjalon ; Tasnim Bashar > ; Tal Shnaiderman ; Yohad Tor > ; harini.ramakrish...@microsoft.com; > ocard...@microsoft.com; pallavi.ka

[dpdk-dev] [PATCH v6 2/3] mempool: use generic memory management

2020-07-05 Thread Fady Bader
Using generic memory management calls instead of Unix memory management calls for mempool. Signed-off-by: Fady Bader --- lib/librte_mempool/rte_mempool.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/lib/librte_mempool/rte_mempool.c b/lib

[dpdk-dev] [PATCH v6 0/3] build mempool on Windows

2020-07-05 Thread Fady Bader
: * Rebased on current master and v5 of "eal/windows: ring build on Windows". v2: * Replace ifndef of tracepoints with symbol export from memory management patchset. Fady Bader (3): eal: disable function versioning on Windows mempool: use generic memory management mempool: mempoo

[dpdk-dev] [PATCH v6 1/3] eal: disable function versioning on Windows

2020-07-05 Thread Fady Bader
Function versioning implementation is not supported by Windows. Function versioning was disabled on Windows. Signed-off-by: Fady Bader --- lib/librte_eal/include/rte_function_versioning.h | 2 +- lib/meson.build | 5 + 2 files changed, 6 insertions(+), 1

[dpdk-dev] [PATCH v6 3/3] mempool: mempool build on Windows

2020-07-05 Thread Fady Bader
Some eal functions are used by mempool lib but not exported on Windows. The functions were exported. Added mempool to supported libraries for Windows compilation. Signed-off-by: Fady Bader --- lib/librte_eal/rte_eal_exports.def | 6 ++ lib/meson.build| 2 +- 2 files

Re: [dpdk-dev] [PATCH v6 1/3] eal: disable function versioning on Windows

2020-07-06 Thread Fady Bader
> -Original Message- > From: Thomas Monjalon > Sent: Sunday, July 5, 2020 11:24 PM > To: Fady Bader > Cc: dev@dpdk.org; Tasnim Bashar ; Tal Shnaiderman > ; Yohad Tor ; > dmitry.kozl...@gmail.com; harini.ramakrish...@microsoft.com; > ocard...@microsoft.com;

Re: [dpdk-dev] [PATCH v2 3/3] eal/windows: librte_net build on Windows

2020-07-06 Thread Fady Bader
https://code.woboq.org/qt5/include/netinet/in.h.html > -Original Message- > From: Thomas Monjalon > Sent: Tuesday, June 16, 2020 12:04 PM > To: Fady Bader > Cc: dev@dpdk.org; Tasnim Bashar ; Tal Shnaiderman > ; Yohad Tor ; > dmitry.kozl...@gmail.com; harini.ramakrish

Re: [dpdk-dev] [PATCH v5 1/3] eal: disable function versioning on Windows

2020-07-06 Thread Fady Bader
> -Original Message- > From: Bruce Richardson > Sent: Monday, July 6, 2020 11:20 AM > To: Fady Bader > Cc: dev@dpdk.org; Thomas Monjalon ; Tasnim Bashar > ; Tal Shnaiderman ; Yohad Tor > ; dmitry.kozl...@gmail.com; > harini.ramakrish...@microsoft.com

[dpdk-dev] [PATCH v7 0/3] build mempool on Windows

2020-07-06 Thread Fady Bader
added comments to unclear code. v3: * Rebased on current master and v5 of "eal/windows: ring build on Windows". v2: * Replace ifndef of tracepoints with symbol export from memory management patchset. Fady Bader (3): eal: disable function versioning on Windows mempool: u

[dpdk-dev] [PATCH v7 3/3] mempool: mempool build on Windows

2020-07-06 Thread Fady Bader
Some EAL functions are used by mempool lib but not exported on Windows. The functions are exported. Added mempool to supported libraries for Windows compilation. Signed-off-by: Fady Bader Acked-by: Olivier Matz --- lib/librte_eal/rte_eal_exports.def | 6 ++ lib/meson.build

[dpdk-dev] [PATCH v7 1/3] eal: disable function versioning on Windows

2020-07-06 Thread Fady Bader
Function versioning implementation is not supported by Windows. Function versioning is disabled on Windows. Signed-off-by: Fady Bader --- doc/guides/windows_gsg/intro.rst | 4 lib/meson.build | 6 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc

[dpdk-dev] [PATCH v7 2/3] mempool: use generic memory management

2020-07-06 Thread Fady Bader
Using generic memory management calls instead of Unix memory management calls for mempool. Signed-off-by: Fady Bader Acked-by: Olivier Matz Acked-by: Andrew Rybchenko Reviewed-by: Dmitry Kozlyuk --- lib/librte_mempool/rte_mempool.c | 26 -- 1 file changed, 12

[dpdk-dev] [PATCH v3 0/3] compile librte_net for windows

2020-07-08 Thread Fady Bader
Addded needed files and fixes for windows in order to get librte_net compiling under Windows. v3: * replaced htons with rte_cpu_to_be_16. * rebased to current master. Fady Bader (3): net: fix s_addr redefinition in Windows net: replace htons with rte_cpu_to_be_16 eal/windows

[dpdk-dev] [PATCH v3 3/3] eal/windows: librte_net build on Windows

2020-07-08 Thread Fady Bader
librte_net wasn't compiling under Windows. To solve this, needed exports and files were added for Windows. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/rte_eal_exports.def | 1 + lib/librte_eal/windows/include/netinet/in.h

[dpdk-dev] [PATCH v3 2/3] net: replace htons with rte_cpu_to_be_16

2020-07-08 Thread Fady Bader
htons wasn't defined in Windows for the minGW compiler. htons was replaced with rte_cpu_to_be_16 in order to compile under Windows. Signed-off-by: Fady Bader --- lib/librte_net/rte_arp.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/librte_net/rte_ar

[dpdk-dev] [PATCH v3 1/3] net: fix s_addr redefinition in Windows

2020-07-08 Thread Fady Bader
s_addr in Windows is defined in windows.h so its undefined in order to be defined as part of rte_ether_hdr. Signed-off-by: Fady Bader --- lib/librte_net/rte_ether.h | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/librte_net/rte_ether.h b/lib/librte_net/rte_ether.h index

Re: [dpdk-dev] [PATCH v3 3/3] eal/windows: librte_net build on Windows

2020-07-08 Thread Fady Bader
> -Original Message- > From: Thomas Monjalon > Sent: Wednesday, July 8, 2020 12:10 PM > To: Fady Bader > Cc: dev@dpdk.org; Tasnim Bashar ; Tal Shnaiderman > ; Yohad Tor ; > dmitry.kozl...@gmail.com; harini.ramakrish...@microsoft.com; > ocard...@microsoft.com;

[dpdk-dev] [PATCH] mempool: remove inline functions from export list

2020-04-22 Thread Fady Bader
xport list which are implemented in the header and shouldn't be exported. Fixes: 4b5062755aa74517ed1d7bd ("mempool: allow user-owned cache") Fixes: 656f2d3ede96902202a1a5f ("mempool: deprecate specific get and put functions") Cc: sta...@dpdk.org Signed-off-by: Fady

[dpdk-dev] [PATCH 2/2] timer: support EAL functions on Windows

2020-04-23 Thread Fady Bader
Implemented the needed Windows eal timer functions. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c| 6 +++ lib/librte_eal/windows/eal_timer.c | 67 + lib/librte_eal/windows/include

[dpdk-dev] [PATCH 0/2] eal timer split and implementation for Windows

2020-04-23 Thread Fady Bader
This patchset splits OS dependent EAL timer functions and implements them for windows. Depends-on: series-9374 ("Windows basic memory management") Fady Bader (2): timer: move from common to Unix directory timer: support EAL functions on Windows lib/librte_eal/common/eal_comm

[dpdk-dev] [PATCH 1/2] timer: move from common to Unix directory

2020-04-23 Thread Fady Bader
sleep referenced in function set_tsc_freq The reason was that some functions called POSIX functions. The solution was to move POSIX dependent functions from common to Unix. Signed-off-by: Fady Bader --- lib/librte_eal/common/eal_common_timer.c | 22 -- lib/librte_eal

[dpdk-dev] [PATCH v2 1/2] timer: move from common to Unix directory

2020-04-27 Thread Fady Bader
sleep referenced in function set_tsc_freq The reason was that some functions called POSIX functions. The solution was to move POSIX dependent functions from common to Unix. Signed-off-by: Fady Bader --- lib/librte_eal/common/eal_common_timer.c | 22 -- lib/librte_eal

[dpdk-dev] [PATCH v2 2/2] timer: support EAL functions on Windows

2020-04-27 Thread Fady Bader
Implemented the needed Windows eal timer functions. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c| 6 +++ lib/librte_eal/windows/eal_timer.c | 68 + lib/librte_eal/windows/include

[dpdk-dev] [PATCH v2 0/2] eal timer split and implementation for Windows

2020-04-27 Thread Fady Bader
This patchset splits OS dependent EAL timer functions and implements them for windows. v2: * fixing styles and correctness errors Depends-on: series-9374 ("Windows basic memory management") Fady Bader (2): timer: move from common to Unix directory timer: support EAL fu

[dpdk-dev] [PATCH v3 1/2] timer: move from common to Unix directory

2020-05-03 Thread Fady Bader
sleep referenced in function set_tsc_freq The reason was that some functions called POSIX functions. The solution was to move POSIX dependent functions from common to Unix. Signed-off-by: Fady Bader --- lib/librte_eal/common/eal_common_timer.c | 22 -- lib/librte_eal/unix/eal_ti

[dpdk-dev] [PATCH v3 0/2] eal timer split and implementation for Windows

2020-05-03 Thread Fady Bader
From: Fady Bader This patchset splits OS dependent EAL timer functions and implements them for windows. v2: * fixing styles and correctness errors. v3: * fixing correctness, get_tsc_freq was reimplemented. Depends-on: series-9374 ("Windows basic memory management") Fad

[dpdk-dev] [PATCH v3 2/2] timer: support EAL functions on Windows

2020-05-03 Thread Fady Bader
Implemented the needed Windows eal timer functions. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c| 6 ++ lib/librte_eal/windows/eal_timer.c | 96 + lib/librte_eal/windows/include/rte_os.h | 2

[dpdk-dev] [PATCH v4 1/2] timer: move from common to Unix directory

2020-05-06 Thread Fady Bader
sleep referenced in function set_tsc_freq The reason was that some functions called POSIX functions. The solution was to move POSIX dependent functions from common to Unix. Signed-off-by: Fady Bader --- lib/librte_eal/common/eal_common_timer.c | 22 -- lib/librte_eal

[dpdk-dev] [PATCH v4 0/2] eal timer split and implementation for Windows

2020-05-06 Thread Fady Bader
* fixing styles and correctness errors. Depends-on: series-9374 ("Windows basic memory management") Fady Bader (2): timer: move from common to Unix directory timer: support EAL functions on Windows lib/librte_eal/common/eal_common_timer.c | 22 lib/librte_ea

[dpdk-dev] [PATCH v4 2/2] timer: support EAL functions on Windows

2020-05-06 Thread Fady Bader
Implemented the needed Windows eal timer functions. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c| 6 +++ lib/librte_eal/windows/eal_timer.c | 96 + lib/librte_eal/windows/include

[dpdk-dev] [PATCH v5 2/3] eal: proc type function for Windows

2020-05-07 Thread Fady Bader
Implementation of rte_proc_type_t for Windows as it is needed for Windows eal timer. Signed-off-by: Fady Bader --- lib/librte_eal/windows/eal.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/windows/eal.c b/lib/librte_eal/windows/eal.c index 2cf7a04ef..831179799 100644

[dpdk-dev] [PATCH v5 3/3] timer: support EAL functions on Windows

2020-05-07 Thread Fady Bader
Implemented the needed Windows eal timer functions. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c| 6 +++ lib/librte_eal/windows/eal_timer.c | 77 + lib/librte_eal/windows/include

[dpdk-dev] [PATCH v5 0/3] eal timer split and implementation for Windows

2020-05-07 Thread Fady Bader
* fixing styles and correctness errors. v5: * breaking the dependency on "Windows basic memory management" series. * fixing correctness errors and warnings. Fady Bader (3): timer: move from common to Unix directory eal: proc type function for Windows timer: support EAL functi

[dpdk-dev] [PATCH v5 1/3] timer: move from common to Unix directory

2020-05-07 Thread Fady Bader
sleep referenced in function set_tsc_freq The reason was that some functions called POSIX functions. The solution was to move POSIX dependent functions from common to Unix. Signed-off-by: Fady Bader --- lib/librte_eal/common/eal_common_timer.c | 22 -- lib/librte_eal

[dpdk-dev] [PATCH v6 0/3] eal timer split and implementation for Windows

2020-05-10 Thread Fady Bader
* fixing styles and correctness errors. v5: * breaking the dependency on "Windows basic memory management" series. * fixing correctness errors and warnings. v6: * fixing styles and correctness errors. Fady Bader (3): timer: move from common to Unix directory eal: proc type

[dpdk-dev] [PATCH v6 1/3] timer: move from common to Unix directory

2020-05-10 Thread Fady Bader
sleep referenced in function set_tsc_freq The reason was that some functions called POSIX functions. The solution was to move POSIX dependent functions from common to Unix. Signed-off-by: Fady Bader --- lib/librte_eal/common/eal_common_timer.c | 22 -- lib/librte_eal

[dpdk-dev] [PATCH v6 2/3] eal: proc type function for Windows

2020-05-10 Thread Fady Bader
Implementation of rte_proc_type_t for Windows as it is needed for Windows eal timer. Signed-off-by: Fady Bader --- lib/librte_eal/windows/eal.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/windows/eal.c b/lib/librte_eal/windows/eal.c index d084606a6..feee91244 100644

[dpdk-dev] [PATCH v6 3/3] timer: support EAL functions on Windows

2020-05-10 Thread Fady Bader
Implemented the needed Windows eal timer functions. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c| 6 +++ lib/librte_eal/windows/eal_timer.c | 86 + lib/librte_eal/windows/include

Re: [dpdk-dev] [PATCH v4 8/8] eal/windows: implement basic memory management

2020-05-13 Thread Fady Bader
(MESHCHANINOV) ; Narcisa > Ana Maria Vasile ; Fady Bader > ; Tal Shnaiderman ; Dmitry > Kozlyuk ; Thomas Monjalon > ; Harini Ramakrishnan > ; Omar Cardona > ; Pallavi Kadam ; > Ranjit Menon ; John McNamara > ; Marko Kovacevic > ; Anatoly Burakov > > Subject: [PATC

Re: [dpdk-dev] [PATCH v4 8/8] eal/windows: implement basic memory management

2020-05-13 Thread Fady Bader
> -Original Message- > From: Dmitry Kozlyuk > Sent: Wednesday, May 13, 2020 11:43 AM > To: Fady Bader > Cc: dev@dpdk.org; Dmitry Malloy (MESHCHANINOV) > ; Narcisa Ana Maria Vasile > ; Tal Shnaiderman ; > Thomas Monjalon ; Harini Ramakrishnan > ; Oma

Re: [dpdk-dev] [PATCH v4 8/8] eal/windows: implement basic memory management

2020-05-13 Thread Fady Bader
> -Original Message- > From: Fady Bader > Sent: Wednesday, May 13, 2020 12:09 PM > To: Dmitry Kozlyuk > Cc: dev@dpdk.org; Dmitry Malloy (MESHCHANINOV) > ; Narcisa Ana Maria Vasile > ; Tal Shnaiderman ; > Thomas Monjalon ; Harini Ramakrishnan > ; Oma

Re: [dpdk-dev] [PATCH v4 8/8] eal/windows: implement basic memory management

2020-05-13 Thread Fady Bader
> -Original Message- > From: Dmitry Kozlyuk > Sent: Wednesday, May 13, 2020 12:39 PM > To: Fady Bader > Cc: dev@dpdk.org; Dmitry Malloy (MESHCHANINOV) > ; Narcisa Ana Maria Vasile > ; Tal Shnaiderman ; > Thomas Monjalon ; Harini Ramakrishnan > ; Oma

Re: [dpdk-dev] [PATCH v7 31/32] mempool: add tracepoints

2020-05-18 Thread Fady Bader
ile size_t is 8. I'm trying to make the code compatible for both Linux and Windows, How do you recommend doing that ? > + rte_trace_point_emit_ptr(free_cb); > + rte_trace_point_emit_ptr(opaque); > +) > + Regards, Fady Bader

[dpdk-dev] [PATCH v7 1/3] timer: move from common to Unix directory

2020-05-18 Thread Fady Bader
sleep referenced in function set_tsc_freq The reason was that some functions called POSIX functions. The solution was to move POSIX dependent functions from common to Unix. Signed-off-by: Fady Bader --- lib/librte_eal/common/eal_common_timer.c | 22 -- lib/librte_eal/fr

[dpdk-dev] [PATCH v7 3/3] timer: support EAL functions on Windows

2020-05-18 Thread Fady Bader
Implemented the needed Windows eal timer functions. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c| 6 +++ lib/librte_eal/windows/eal_timer.c | 86 + lib/librte_eal/windows/include

[dpdk-dev] [PATCH v7 2/3] eal: proc type function for Windows

2020-05-18 Thread Fady Bader
Implementation of rte_proc_type_t for Windows as it is needed for Windows eal timer. Signed-off-by: Fady Bader --- lib/librte_eal/windows/eal.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/windows/eal.c b/lib/librte_eal/windows/eal.c index d084606a6..feee91244 100644

[dpdk-dev] [PATCH v7 0/3] eal timer split and implementation for Windows

2020-05-18 Thread Fady Bader
* fixing styles and correctness errors. v5: * breaking the dependency on "Windows basic memory management" series. * fixing correctness errors and warnings. v6: * fixing styles and correctness errors. v7: * fixing make errors. Fady Bader (3): timer: move from common to

[dpdk-dev] [PATCH] ring: build on Windows

2020-05-20 Thread Fady Bader
n the export list. To solve this per_lcore__rte_errno was added to the Windows export list. Signed-off-by: Fady Bader Depends-on: series-9374 ("Windows basic memory management") --- lib/librte_eal/rte_eal_exports.def | 1 + lib/librte_eal/rte_eal_version.map | 5 -

[dpdk-dev] [PATCH v2] ring: build on Windows

2020-05-20 Thread Fady Bader
n the export list. To solve this per_lcore__rte_errno was added to the Windows export list. Signed-off-by: Fady Bader Depends-on: series-9374 ("Windows basic memory management") --- lib/librte_eal/rte_eal_exports.def | 1 + lib/librte_eal/rte_eal_version.map | 3 +++

[dpdk-dev] [PATCH v3] eal/windows: ring build on Windows

2020-05-21 Thread Fady Bader
n the export list. To solve this per_lcore__rte_errno was added to the Windows export list. Signed-off-by: Fady Bader --- Depends-on: series-9374 ("Windows basic memory management") v3: Fix style issues. v2: Fix style issues. --- lib/librte_eal/rte_eal_exports.def | 1 +

Re: [dpdk-dev] [PATCH v2] ring: build on Windows

2020-05-21 Thread Fady Bader
> -Original Message- > From: Honnappa Nagarahalli > Sent: Thursday, May 21, 2020 7:17 AM > To: Fady Bader ; dev@dpdk.org > Cc: Thomas Monjalon ; Tal Shnaiderman > ; Yohad Tor ; > olivier.m...@6wind.com; harini.ramakrish...@microsoft.com; > ocard...@microsoft.co

[dpdk-dev] [PATCH v4] eal/windows: ring build on Windows

2020-05-27 Thread Fady Bader
n the export list. To solve this per_lcore__rte_errno was added to the Windows export list. Signed-off-by: Fady Bader --- Depends-on: series-9374 ("Windows basic memory management") v4: rebase on "Windows basic memory management" v5. v3: Fix style issues. v2: Fix style is

[dpdk-dev] ABI versioning in Windows

2020-05-27 Thread Fady Bader
What should we do with the ABI versioning in Windows ?

[dpdk-dev] [PATCH 0/5] build mempool on Windows

2020-05-31 Thread Fady Bader
Added changes in order to build mempool lib on windows. Depends-on: patch-70497 ("ring: build on Windows") Fady Bader (5): mempool: disable tracing for Windows eal: disable function versioning on Windows mempool: use generic memory management eal: export needed functions f

[dpdk-dev] [PATCH 4/5] eal: export needed functions for mempool

2020-05-31 Thread Fady Bader
__rte_trace_mem_per_thread_alloc is used by mempool lib but not exported on Windows. the function was exported. Signed-off-by: Fady Bader --- lib/librte_eal/rte_eal_version.map | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_eal/rte_eal_version.map b/lib/librte_eal

[dpdk-dev] [PATCH 1/5] mempool: disable tracing for Windows

2020-05-31 Thread Fady Bader
Tracing is not supported for Windows. Disabled all trace calls in for Windows. Signed-off-by: Fady Bader --- lib/librte_mempool/mempool_trace_points.c | 4 lib/librte_mempool/rte_mempool.c | 20 lib/librte_mempool/rte_mempool.h | 22

[dpdk-dev] [PATCH 3/5] mempool: use generic memory management

2020-05-31 Thread Fady Bader
mempool used Unix memory management calls, which are not supported on Windows. Used generic memory management instead. Signed-off-by: Fady Bader --- lib/librte_mempool/rte_mempool.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/librte_mempool

[dpdk-dev] [PATCH 5/5] mempool: mempool build on Windows

2020-05-31 Thread Fady Bader
Mempool didn't compile on Windows. Needed changes were made to fix this. Signed-off-by: Fady Bader --- lib/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/meson.build b/lib/meson.build index 30ed9e05e..c53732383 100644 --- a/lib/meson.build +++

[dpdk-dev] [PATCH 2/5] eal: disable function versioning on Windows

2020-05-31 Thread Fady Bader
Function versioning is not needed on Windows, also the function versioning implementation is not supported by Windows. Function versioning was disabled on Windows. Signed-off-by: Fady Bader --- lib/librte_eal/include/rte_function_versioning.h | 4 1 file changed, 4 insertions(+) diff

[dpdk-dev] [PATCH v2 0/4] build mempool on Windows

2020-06-01 Thread Fady Bader
Added changes in order to build mempool lib on windows. Depends-on: patch-70497 ("ring: build on Windows") v2: * Replace ifndef of tracepoints with symbol export from memory management patchset. Fady Bader (4): eal: disable function versioning on Windows mempool: u

[dpdk-dev] [PATCH v2 3/4] eal: export needed functions for mempool

2020-06-01 Thread Fady Bader
Some eal functions were used by mempool lib but not exported on Windows. The function was exported. Signed-off-by: Fady Bader --- lib/librte_eal/rte_eal_exports.def | 6 ++ lib/librte_eal/rte_eal_version.map | 3 +++ 2 files changed, 9 insertions(+) diff --git a/lib/librte_eal

[dpdk-dev] [PATCH v2 2/4] mempool: use generic memory management

2020-06-01 Thread Fady Bader
mempool used Unix memory management calls, which are not supported on Windows. Used generic memory management instead. Signed-off-by: Fady Bader --- lib/librte_mempool/rte_mempool.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/lib/librte_mempool

[dpdk-dev] [PATCH v2 4/4] mempool: mempool build on Windows

2020-06-01 Thread Fady Bader
Added mempool to supported libraries for Windows compilation. Signed-off-by: Fady Bader --- lib/meson.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/meson.build b/lib/meson.build index 30ed9e05e..c53732383 100644 --- a/lib/meson.build +++ b/lib/meson.build

[dpdk-dev] [PATCH v2 1/4] eal: disable function versioning on Windows

2020-06-01 Thread Fady Bader
Function versioning is not needed on Windows, also the function versioning implementation is not supported by Windows. Function versioning was disabled on Windows. Signed-off-by: Fady Bader --- lib/librte_eal/include/rte_function_versioning.h | 4 1 file changed, 4 insertions(+) diff

[dpdk-dev] questions about Windows basic memory management patch

2020-04-06 Thread Fady Bader
Hi, I have a few questions regarding your memory management patch. In the "eal/windows: fix rte_page_sizes with Clang on Windows" (http://patches.dpdk.org/patch/67390/) patch I didn't understand the work around that you did and what the problem was. Regarding rte_mp functions I see you implemente

[dpdk-dev] [PATCH 0/3] compile librte_net for windows

2020-06-10 Thread Fady Bader
Addded needed files and fixes for windows in order to get librte_net compiling under Windows. Fady Bader (3): net: fix s_addr redefinition in Windows net: add htons to minGW for Windows eal/windows: librte_net build on Windows lib/librte_eal/common/meson.build | 1 + lib

[dpdk-dev] [PATCH 1/3] net: fix s_addr redefinition in Windows

2020-06-10 Thread Fady Bader
s_addr in Windows is defined in windows.h so its undefined in order to be defined as part of rte_ether_hdr. Signed-off-by: Fady Bader --- lib/librte_net/rte_ether.h | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/librte_net/rte_ether.h b/lib/librte_net/rte_ether.h index

[dpdk-dev] [PATCH 3/3] eal/windows: librte_net build on Windows

2020-06-10 Thread Fady Bader
librte_net wasn't compiling under Windows. To solve this, needed exports and files were added for Windows. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/rte_eal_exports.def | 1 + lib/librte_eal/windows/include/netinet/in.h

[dpdk-dev] [PATCH 2/3] net: add htons to minGW for Windows

2020-06-10 Thread Fady Bader
htons wasnt defined in Windows for the minGW compiler. Definition of htons was added in order to use htons. Signed-off-by: Fady Bader --- lib/librte_eal/windows/include/rte_os.h | 4 lib/librte_net/rte_arp.c| 2 ++ 2 files changed, 6 insertions(+) diff --git a/lib

[dpdk-dev] [PATCH v2 0/3] compile librte_net for windows

2020-06-10 Thread Fady Bader
Addded needed files and fixes for windows in order to get librte_net compiling under Windows. Depends-on: series-10282 ("build mempool on Windows") Fady Bader (3): net: fix s_addr redefinition in Windows net: add htons to minGW for Windows eal/windows: librte_net build on Win

[dpdk-dev] [PATCH v2 1/3] net: fix s_addr redefinition in Windows

2020-06-10 Thread Fady Bader
s_addr in Windows is defined in windows.h so its undefined in order to be defined as part of rte_ether_hdr. Signed-off-by: Fady Bader --- lib/librte_net/rte_ether.h | 9 + 1 file changed, 9 insertions(+) diff --git a/lib/librte_net/rte_ether.h b/lib/librte_net/rte_ether.h index

[dpdk-dev] [PATCH v2 2/3] net: add htons to minGW for Windows

2020-06-10 Thread Fady Bader
htons wasnt defined in Windows for the minGW compiler. Definition of htons was added in order to use htons. Signed-off-by: Fady Bader --- lib/librte_eal/windows/include/rte_os.h | 4 lib/librte_net/rte_arp.c| 2 ++ 2 files changed, 6 insertions(+) diff --git a/lib

[dpdk-dev] [PATCH v2 3/3] eal/windows: librte_net build on Windows

2020-06-10 Thread Fady Bader
librte_net wasn't compiling under Windows. To solve this, needed exports and files were added for Windows. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/rte_eal_exports.def | 1 + lib/librte_eal/windows/include/netinet/in.h

[dpdk-dev] [PATCH v8 3/3] timer: support EAL functions on Windows

2020-06-14 Thread Fady Bader
Implemented the needed Windows eal timer functions. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c| 6 +++ lib/librte_eal/windows/eal_timer.c | 90 + lib/librte_eal/windows/include

[dpdk-dev] [PATCH v8 1/3] timer: move from common to Unix directory

2020-06-14 Thread Fady Bader
sleep referenced in function set_tsc_freq The reason was that some functions called POSIX functions. The solution was to move POSIX dependent functions from common to Unix. Signed-off-by: Fady Bader --- lib/librte_eal/common/eal_common_timer.c | 22 -- lib/librte_eal/fr

[dpdk-dev] [PATCH v8 0/3] eal timer split and implementation for Windows

2020-06-14 Thread Fady Bader
oved unneded headers. Fady Bader (3): timer: move from common to Unix directory eal: proc type function for Windows timer: support EAL functions on Windows lib/librte_eal/common/eal_common_timer.c | 22 lib/librte_eal/common/meson.build| 1 + lib/librte_eal/freebsd/Ma

[dpdk-dev] [PATCH v8 2/3] eal: proc type function for Windows

2020-06-14 Thread Fady Bader
Implementation of rte_proc_type_t for Windows as it is needed for Windows eal timer. Signed-off-by: Fady Bader --- lib/librte_eal/windows/eal.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/windows/eal.c b/lib/librte_eal/windows/eal.c index d084606a6..feee91244 100644

[dpdk-dev] [PATCH] meter: remove inline functions from export list

2020-06-17 Thread Fady Bader
3de30 ("lib: provide initial versioning") Cc: sta...@dpdk.org Signed-off-by: Fady Bader --- lib/librte_meter/rte_meter_version.map | 6 -- 1 file changed, 6 deletions(-) diff --git a/lib/librte_meter/rte_meter_version.map b/lib/librte_meter/rte_meter_version.map index b493bcebe

[dpdk-dev] [PATCH v2] meter: remove inline functions from export list

2020-06-17 Thread Fady Bader
3de30 ("lib: provide initial versioning") Cc: sta...@dpdk.org Signed-off-by: Fady Bader --- v2: fixed commit message style issue --- lib/librte_meter/rte_meter_version.map | 6 -- 1 file changed, 6 deletions(-) diff --git a/lib/librte_meter/rte_meter_version.map b/lib/librte_met

Re: [dpdk-dev] [PATCH v8 3/3] timer: support EAL functions on Windows

2020-06-17 Thread Fady Bader
Sending a new version soon. > Subject: Re: [PATCH v8 3/3] timer: support EAL functions on Windows > > > On 6/14/2020 1:43 AM, Fady Bader wrote: > > Implemented the needed Windows eal timer functions. > > > > Signed-off-by: Fady Bader > > --- > > li

[dpdk-dev] [PATCH v9 1/2] timer: move from common to Unix directory

2020-06-17 Thread Fady Bader
sleep referenced in function set_tsc_freq The reason was that some functions called POSIX functions. The solution was to move POSIX dependent functions from common to Unix. Signed-off-by: Fady Bader --- lib/librte_eal/common/eal_common_timer.c | 22 -- lib/librte_eal/fr

[dpdk-dev] [PATCH v9 0/2] eal timer split and implementation for Windows

2020-06-17 Thread Fady Bader
oved unneded headers. v9: * rebasing to current master. * fixing correctness issue. Fady Bader (2): timer: move from common to Unix directory timer: support EAL functions on Windows lib/librte_eal/common/eal_common_timer.c | 22 lib/librte_eal/common/meson.build|

[dpdk-dev] [PATCH v9 2/2] timer: support EAL functions on Windows

2020-06-17 Thread Fady Bader
Implemented the needed Windows eal timer functions. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c| 6 +++ lib/librte_eal/windows/eal_timer.c | 91 + lib/librte_eal/windows/include

[dpdk-dev] [PATCH v10 1/2] timer: move from common to Unix directory

2020-06-17 Thread Fady Bader
sleep referenced in function set_tsc_freq The reason was that some functions called POSIX functions. The solution was to move POSIX dependent functions from common to Unix. Signed-off-by: Fady Bader --- lib/librte_eal/common/eal_common_timer.c | 22 -- lib/librte_eal/fr

[dpdk-dev] [PATCH v10 0/2] eal timer split and implementation for Windows

2020-06-17 Thread Fady Bader
oved unneded headers. v9: * rebasing to current master. * fixing correctness issue. v10: * fixing correctness issue. Fady Bader (2): timer: move from common to Unix directory timer: support EAL functions on Windows lib/librte_eal/common/eal_common_timer.c | 22 l

[dpdk-dev] [PATCH v10 2/2] timer: support EAL functions on Windows

2020-06-17 Thread Fady Bader
Implemented the needed Windows eal timer functions. Signed-off-by: Fady Bader --- lib/librte_eal/common/meson.build | 1 + lib/librte_eal/windows/eal.c| 6 +++ lib/librte_eal/windows/eal_timer.c | 93 + lib/librte_eal/windows/include

Re: [dpdk-dev] [PATCH v9 2/2] timer: support EAL functions on Windows

2020-06-18 Thread Fady Bader
> -Original Message- > From: Ranjit Menon > Sent: Thursday, June 18, 2020 1:16 AM > To: Fady Bader ; dev@dpdk.org > Cc: Thomas Monjalon ; Tasnim Bashar > ; Tal Shnaiderman ; Yohad Tor > ; dmitry.kozl...@gmail.com; > harini.ramakrish...@microsoft.com; ocard...@mic

  1   2   >