[ovs-dev] [PATCH] include/openvswitch/compiler.h: enable several OVS_ attributes for Clang in Windows

2021-09-24 Thread Sergey Madaminov
. Signed-off-by: Sergey Madaminov --- include/openvswitch/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/openvswitch/compiler.h b/include/openvswitch/compiler.h index cf009f826..3fe5fc4b5 100644 --- a/include/openvswitch/compiler.h +++ b/include/openvswitch

[ovs-dev] [PATCH v2] sflow functions: fix unused parameter warnings for sflow functions

2021-09-15 Thread sergey . madaminov
From: Sergey Madaminov Several 'sflow' functions (sfl_poller_tick, sfl_sampler_tick, and sfl_receiver_tick) have unused parameter 'now' in their signatures. This patch removes that parameter from their signatures to fix compilation warnings. Also, according to the 'utilities/checkpatch.py

[ovs-dev] [PATCH] sflow functions: fix unused parameter warnings for sflow functions

2021-09-14 Thread sergey . madaminov
From: Sergey Madaminov Several 'sflow' functions (sfl_poller_tick, sfl_sampler_tick, and sfl_receiver_tick) have unused parameter 'now' in their signatures. This patch removes that parameter from their signatures to fix compilation warnings. Signed-off-by: Sergey Madaminov --- lib

Re: [ovs-dev] [PATCH] include/windows/unistd.h: fixed type cast warning on Windows

2021-09-02 Thread Sergey Madaminov
tps://docs.microsoft.com/en-us/windows/win32/winprog64/the-new-data-types#pointer-precision> Kind regards, Sergey On Thu, Sep 2, 2021 at 12:04 PM Michael Santana wrote: > > > On 8/26/21 11:45 AM, Sergey Madaminov wrote: > > Currently, the function call type cast for getting file handle &

[ovs-dev] [PATCH] include/windows/unistd.h: fixed type cast warning on Windows

2021-08-26 Thread Sergey Madaminov
perform this cast directly. Signed-off-by: Sergey Madaminov --- include/windows/unistd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/windows/unistd.h b/include/windows/unistd.h index 21cc56ff1..62ff90a3f 100644 --- a/include/windows/unistd.h +++ b/include/windows

[ovs-dev] [PATCH v2] include/openvswitch/compiler.h: add check for __builtin_prefetch using __has_builtin

2021-08-16 Thread Sergey Madaminov
in preprocessor directives but have not found anything. Checking several files showed that there is no consistent rule to do so. Thus, I simply followed Google coding style and added indentations after pound sign for readability. Suggested-by: Ben Pfaff Signed-off-by: Sergey Madaminov --- v1->

[ovs-dev] [PATCH 1/1] include/openvswitch/compiler.h: check existence of __builtin_prefetch using __has_builtin

2021-08-10 Thread Sergey Madaminov
Checking if '__has_builtin' is defined and then defining OVS_PREFETCH to be '__builtin_prefetch' if it is available. To preserve backwards compatibility, the previous way to define OVS_PREFETCH macro is also there. Signed-off-by: Sergey Madaminov --- include/openvswitch/compiler.h | 25

[ovs-dev] [PATCH 0/1] include/openvswitch/compiler.h: check existence of __builtin_prefetch using __has_builtin

2021-08-10 Thread Sergey Madaminov
on Windows too. This operator is supported by Clang and is supported in GCC starting GCC 10. To preserve backwards compatibility, the old way to enable prefetching remains if '__has_builtin' is not defined. Signed-off-by: Sergey Madaminov Sergey Madaminov (1): check existence

[ovs-dev] [PATCH RFC 1/1] use meson and ninja as a build system for ovs

2021-08-08 Thread Sergey Madaminov
Signed-off-by: Sergey Madaminov Co-authored-by: William Tu Signed-off-by: William Tu --- build-aux/copy-file-from-build.py | 19 + build-aux/extract-odp-netlink-h.py| 84 build-aux/extract-odp-netlink-macros-h.py | 58 +++ config.h.meson

[ovs-dev] [PATCH RFC 0/1] use meson and ninja as a build system for ovs

2021-08-08 Thread Sergey Madaminov
envswitch.org/en/latest/intro/install/windows/#build-requirements Signed-off-by: Sergey Madaminov Co-authored-by: William Tu Signed-off-by: William Tu Sergey Madaminov (1): moving ovs to use meson and ninja as its build system build-aux/copy-file-from-build.py | 19 + build