Re: [ovs-dev] [PATCH v2 1/8] netdev-linux: Fix possible int overflow in tc_add_matchall_policer().

2024-05-28 Thread Mike Pattrick
On Tue, May 28, 2024 at 7:46 AM Eelco Chaudron wrote: > > Fix unintentional integer overflow reported by Coverity by adding > the ULL suffix to the numerical literals used in the multiplications. > > Fixes: ed2300cca0d3 ("netdev-linux: Refactor put police action netlink > message") >

Re: [ovs-dev] [v4] odp-execute: Fix AVX checksum calculation.

2024-05-28 Thread Eelco Chaudron
On 24 May 2024, at 11:20, Emma Finn wrote: > The AVX implementation for calcualting checksums was not > handling carry-over addition correctly in some cases. > This patch adds an additional shuffle to add 16-bit padding to > the final part of the calculation to handle such cases. This > commit

Re: [ovs-dev] [PATCH 4/7] sflow: Fix check for disabled receive time.

2024-05-28 Thread Ilya Maximets
On 5/28/24 13:27, Eelco Chaudron wrote: > > > On 28 May 2024, at 1:04, Neil McKee wrote: > >> Would it help if I set up a separate github project for this sFlow encoding >> C code? Then we could make it easier to incorporate in OVS by fixing the >> whitespace and indentation issues there, and

Re: [ovs-dev] [PATCH v2 5/8] sflow: Fix check for disabled receive time.

2024-05-28 Thread 0-day Robot
Bleep bloop. Greetings Eelco Chaudron, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 97 characters long (recommended limit is 79) #38 FILE: lib/sflow_api.h:255:

[ovs-dev] [PATCH v2 8/8] netdev-linux: Fix uninitialized gso_type case.

2024-05-28 Thread Eelco Chaudron
This patch fixes an uninitialized gso_type case in netdev_linux_prepend_vnet_hdr() by returning an error. Fixes: 3337e6d91c5b ("userspace: Enable L4 checksum offloading by default.") Signed-off-by: Eelco Chaudron --- lib/netdev-linux.c | 5 + 1 file changed, 5 insertions(+) diff --git

[ovs-dev] [PATCH v2 7/8] db-ctl-base: Initialize the output variable in the ctx structure.

2024-05-28 Thread Eelco Chaudron
Coverity was flagged that the uninitialized output variable was used in the ctl_context_init_command() function. This patch initializes the variable. In addition it also destroys the ds string in ctl_context_done() in case it's not cleared properly. Fixes: 07ff77ccb82a ("db-ctl-base: Make common

[ovs-dev] [PATCH v2 6/8] ofproto-dpif: Define age as time_t in ofproto_unixctl_fdb_add().

2024-05-28 Thread Eelco Chaudron
Fix the warning from Coverity about potential truncation of the time_t value when copying to a local variable by changing the local variable's type to time_t. ccc24fc88d59 ("ofproto-dpif: APIs and CLI option to add/delete static fdb entry.") Signed-off-by: Eelco Chaudron ---

[ovs-dev] [PATCH v2 5/8] sflow: Fix check for disabled receive time.

2024-05-28 Thread Eelco Chaudron
Changed sFlowRcvrTimeout to a uint32_t to avoid time_t warnings reported by Coverity. A uint32_t is more than large enough as this is a (seconds) tick counter and OVS is not even using this. Fixes: c72e245a0e2c ("Add InMon's sFlow Agent library to the build system.") Signed-off-by: Eelco Chaudron

[ovs-dev] [PATCH v2 2/8] cfm: Fix possible integer overflow in tc_add_matchall_policer().

2024-05-28 Thread Eelco Chaudron
Fix unintentional integer overflow reported by Coverity by adding the LL suffix to the numerical literals used in the multiplication. Fixes: 5767a79a4059 ("cfm: Require ccm received in demand mode.") Signed-off-by: Eelco Chaudron --- lib/cfm.c | 2 +- 1 file changed, 1 insertion(+), 1

[ovs-dev] [PATCH v2 4/8] sflow: Use uint32_t instead of time_t for tick handling in the poller.

2024-05-28 Thread Eelco Chaudron
The sFlow library uses a uint32_t to configure timeout ticks, but stores this value as a time_t. Although this doesn't cause functional issues, it wastes space and confuses Coverity, potentially indicating a Y2K38 problem when storing uint32_t values in time_t. This patch updates the internal data

[ovs-dev] [PATCH v2 3/8] sflow: Replace libc's random() function with the OVS's random_range().

2024-05-28 Thread Eelco Chaudron
Coverity has flagged the use of a potentially unsafe function. Although this is not a concern in this case since it's not used for encryption, we should replace it with the OVS implementation to achieve better randomness. Fixes: c72e245a0e2c ("Add InMon's sFlow Agent library to the build

[ovs-dev] [PATCH v2 1/8] netdev-linux: Fix possible int overflow in tc_add_matchall_policer().

2024-05-28 Thread Eelco Chaudron
Fix unintentional integer overflow reported by Coverity by adding the ULL suffix to the numerical literals used in the multiplications. Fixes: ed2300cca0d3 ("netdev-linux: Refactor put police action netlink message") Signed-off-by: Eelco Chaudron --- lib/netdev-linux.c | 4 ++-- 1 file changed,

[ovs-dev] [PATCH v2 0/8] Coverity fixes.

2024-05-28 Thread Eelco Chaudron
This series addresses several high-priority Coverity issues. Delta from v1 -> v2: - Add cover letter. - Split first patch and update commit subject. - Added ds_destroy() to context_done(). - Changed invalid gso_type handling by returning an error + log message. - Changed sFlowRcvrTimeout to be

Re: [ovs-dev] [PATCH 4/7] sflow: Fix check for disabled receive time.

2024-05-28 Thread Eelco Chaudron
On 28 May 2024, at 1:04, Neil McKee wrote: > Would it help if I set up a separate github project for this sFlow encoding > C code? Then we could make it easier to incorporate in OVS by fixing the > whitespace and indentation issues there, and maybe change all the "time_t" > variables to

Re: [ovs-dev] [PATCH 4/7] sflow: Fix check for disabled receive time.

2024-05-28 Thread Eelco Chaudron
On 27 May 2024, at 16:42, Ilya Maximets wrote: > On 5/27/24 13:01, Eelco Chaudron wrote: >> Instead of casting time_t to uint32_t for the 0x comparison, >> define a TIME_T_MAX and use it for both setting and comparison. >> >> Fixes: c72e245a0e2c ("Add InMon's sFlow Agent library to the

Re: [ovs-dev] [PATCH 7/7] netdev-linux: Fix uninitialized gso_type case.

2024-05-28 Thread Eelco Chaudron
On 27 May 2024, at 16:56, Ilya Maximets wrote: > On 5/27/24 13:01, Eelco Chaudron wrote: >> This patch fixes a uninitialized gso_type case in >> netdev_linux_prepend_vnet_hdr(). >> >> Fixes: 3337e6d91c5b ("userspace: Enable L4 checksum offloading by default.") >> Signed-off-by: Eelco Chaudron

Re: [ovs-dev] [PATCH 6/7] db-ctl-base: Initialize the output variable in the ctx structure.

2024-05-28 Thread Eelco Chaudron
On 27 May 2024, at 16:50, Ilya Maximets wrote: > On 5/27/24 13:01, Eelco Chaudron wrote: >> Coverity was flagged that the uninitialized output variable was used >> in the ctl_context_init_command() function. This patch initializes >> the variable. >> >> Fixes: 07ff77ccb82a ("db-ctl-base: Make

[ovs-dev] [PATCH v2 branch-3.1] dpdk: Use DPDK 22.11.5 release for OVS 3.1.

2024-05-28 Thread Kevin Traynor
Update the CI and docs to use DPDK 22.11.5. Signed-off-by: Kevin Traynor --- v2: no change --- .github/workflows/build-and-test.yml | 2 +- Documentation/faq/releases.rst | 6 +++--- Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++ 4 files

[ovs-dev] [PATCH v2 branch-3.3] dpdk: Use DPDK 23.11.1 release for OVS 3.3.

2024-05-28 Thread Kevin Traynor
Update the CI and docs to use DPDK 23.11.1. Signed-off-by: Kevin Traynor --- v2: update NEWS --- .github/workflows/build-and-test.yml | 4 ++-- Documentation/faq/releases.rst | 10 +- Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++

[ovs-dev] [PATCH v2 branch-3.2] dpdk: Use DPDK 22.11.5 release for OVS 3.2.

2024-05-28 Thread Kevin Traynor
Update the CI and docs to use DPDK 22.11.5. Signed-off-by: Kevin Traynor --- v2: no change --- .github/workflows/build-and-test.yml | 2 +- Documentation/faq/releases.rst | 8 Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++ 4 files

[ovs-dev] [PATCH v2] dpdk: Use DPDK 23.11.1 release.

2024-05-28 Thread Kevin Traynor
Update the CI and docs to use DPDK 23.11.1. Signed-off-by: Kevin Traynor --- v2: update NEWS --- .github/workflows/build-and-test.yml | 4 ++-- Documentation/faq/releases.rst | 10 +- Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++

[ovs-dev] [PATCH v2 branch-2.17] dpdk: Use DPDK 21.11.7 release for OVS 2.17.

2024-05-28 Thread Kevin Traynor
Update the CI and docs to use DPDK 21.11.7. Signed-off-by: Kevin Traynor --- v2: no change --- .ci/linux-build.sh | 2 +- Documentation/faq/releases.rst | 2 +- Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++ 4 files

[ovs-dev] [PATCH v2 branch-3.0] dpdk: Use DPDK 21.11.7 release for OVS 3.0.

2024-05-28 Thread Kevin Traynor
Update the CI and docs to use DPDK 21.11.7. Signed-off-by: Kevin Traynor --- v2: no change --- .ci/linux-build.sh | 2 +- Documentation/faq/releases.rst | 4 ++-- Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++ 4 files

Re: [ovs-dev] [PATCH branch-3.3] dpdk: Use DPDK 23.11.1 release for OVS 3.3.

2024-05-28 Thread Kevin Traynor
On 27/05/2024 23:28, Ilya Maximets wrote: > On 5/23/24 18:00, Kevin Traynor wrote: >> Update the CI and docs to use DPDK 23.11.1. >> >> Signed-off-by: Kevin Traynor >> --- >> .github/workflows/build-and-test.yml | 4 ++-- >> Documentation/faq/releases.rst | 10 +- >>

[ovs-dev] [PATCH 1/1] debian: Fix tabs vs spaces.

2024-05-28 Thread Roi Dayan via dev
Getting the following message while trying to build a debian package. debian/openvswitch-switch.init debian/openvswitch-switch.postinst See above for files that use tabs for indentation. Please use spaces instead. Fix it. Signed-off-by: Roi Dayan --- debian/openvswitch-switch.init | 22

Re: [ovs-dev] [PATCH 1/7] Coverity: Fix Coverity `Unintentional integer overflow` reports.

2024-05-28 Thread Eelco Chaudron
On 27 May 2024, at 16:04, Ilya Maximets wrote: > On 5/27/24 13:01, Eelco Chaudron wrote: >> Fix three Unintentional integer overflow reports by adding the >> ULL/LL suffix to the numerical literals used in the multiplications. >> >> Fixes: 5767a79a4059 ("cfm: Require ccm received in demand

Re: [ovs-dev] [PATCH 4/7] sflow: Fix check for disabled receive time.

2024-05-27 Thread Neil McKee
Would it help if I set up a separate github project for this sFlow encoding C code? Then we could make it easier to incorporate in OVS by fixing the whitespace and indentation issues there, and maybe change all the "time_t" variables to uint32_t to save unnecessary headaches like these. (We

Re: [ovs-dev] [PATCH] dpdk: Use DPDK 23.11.1 release.

2024-05-27 Thread Ilya Maximets
On 5/23/24 18:00, Kevin Traynor wrote: > Update the CI and docs to use DPDK 23.11.1. > > Signed-off-by: Kevin Traynor > --- > .github/workflows/build-and-test.yml | 4 ++-- > Documentation/faq/releases.rst | 10 +- > Documentation/intro/install/dpdk.rst | 8 > NEWS

Re: [ovs-dev] [PATCH branch-3.3] dpdk: Use DPDK 23.11.1 release for OVS 3.3.

2024-05-27 Thread Ilya Maximets
On 5/23/24 18:00, Kevin Traynor wrote: > Update the CI and docs to use DPDK 23.11.1. > > Signed-off-by: Kevin Traynor > --- > .github/workflows/build-and-test.yml | 4 ++-- > Documentation/faq/releases.rst | 10 +- > Documentation/intro/install/dpdk.rst | 8 > NEWS

Re: [ovs-dev] [PATCH v2] selftests/net: suppress clang's "variable-sized type not at the end" warning

2024-05-27 Thread 0-day Robot
Bleep bloop. Greetings John Hubbard, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. git-am: error: sha1 information is lacking or useless (tools/testing/selftests/net/Makefile). error:

[ovs-dev] [PATCH] python: idl: Fix index not being updated on row modification.

2024-05-27 Thread Ilya Maximets
When a row is modified, python IDL doesn't perform any operations on existing client-side indexes. This means that if the column on which index is created changes, the old value will remain in the index and the new one will not be added to the index. Beside lookup failures this is also causing

[ovs-dev] [PATCH v2] selftests/net: suppress clang's "variable-sized type not at the end" warning

2024-05-27 Thread John Hubbard via dev
When building with clang, via: make LLVM=1 -C tools/testing/selftest ...clang warns that "a variable sized type not at the end of a struct or class is a GNU extension". These cases are not easily changed, because they involve structs that are part of the API. Fortunately, however, the tests

[ovs-dev] [PATCH v3 6/6] netdev-linux: Initialize link speed in error conditions.

2024-05-27 Thread Mike Pattrick
Clang's static analyzer noted that the output from netdev_linux_get_speed_locked can be checked even if this function doesn't set any values. Now we always set those values to a sane default in all cases. Fixes: b8f8fad86435 ("netdev-linux: Use speed as max rate in tc classes.") Signed-off-by:

[ovs-dev] [PATCH v3 5/6] netdev-linux: Return an error if device feature names are empty.

2024-05-27 Thread Mike Pattrick
When retrieving a list of features supported by a network card, return with an error code if the request completed without an error but the list contains zero entries. In practice this should never happen, but it does contribute to a detection in Clang's static analyzer. Fixes: 6c59c195266c

[ovs-dev] [PATCH v3 1/6] netdev-offload: Fix null pointer dereference warning on dump creation.

2024-05-27 Thread Mike Pattrick
Clang's static analyzer will complain about a null pointer dereference because dumps can be set to null and then there is a loop where it could have been written to. This is a false positive, but only because the netdev dpif type won't change during this loop. Instead, return early from the

[ovs-dev] [PATCH v3 0/6] clang: Fix Clang's static analyzer detections.

2024-05-27 Thread Mike Pattrick
Clang's static analyzer has identified several instances of uninitialized variable usage and null pointer dereferences that - while not likely - are possible. These mostly included making sure that a variable is properly set or error code properly returned in every error condition. Signed-off-by:

[ovs-dev] [PATCH v3 3/6] dpctl: Fix uninitialized value when deleting flows.

2024-05-27 Thread Mike Pattrick
Clang's static analyzer will complain about an uninitialized value because we weren't setting a value for ufid_generated in all code paths. Now we initialize this on declaration. This patch also corrects the reverse x-mass of variable declaration. Fixes: bbe2e3928747 ("dpctl: Fix broken flow

[ovs-dev] [PATCH v3 2/6] netdev-native-tnl: Fix use of uninitialized offset on SRv6 header pop.

2024-05-27 Thread Mike Pattrick
Clang's static analyzer will complain about uninitialized value 'hlen' because we weren't properly checking the error code from a function that would have initialized the value. Instead, add a check for that return code. Fixes: 03fc1ad78521 ("userspace: Add SRv6 tunnel support.") Signed-off-by:

[ovs-dev] [PATCH v3 4/6] socket: Fix uninitialized values in inet_parse_ functions.

2024-05-27 Thread Mike Pattrick
Clang's static analyzer will complain about uninitialized value dns_failure because we weren't setting a value for dns_failure in all code paths. Now we initialize this in the error conditions of inet_parse_passive and inet_parse_active. Fixes: 08e9e5337383 ("ovsdb: raft: Fix inability to read

[ovs-dev] [PATCH ovn] controller: Send RARP/GARP for VIF post link state is up.

2024-05-27 Thread Shibir Basak
Currently, GARP/RARP broadcast is sent for VIFs (part of logical switch with localnet port) after iface-id is set. This fix is to avoid packet loss during migration if iface-id is set even before the VM migration is completed. Signed-off-by: Shibir Basak Acked-by: Naveen Yerramneni ---

Re: [ovs-dev] [PATCH 7/7] netdev-linux: Fix uninitialized gso_type case.

2024-05-27 Thread Ilya Maximets
On 5/27/24 13:01, Eelco Chaudron wrote: > This patch fixes a uninitialized gso_type case in > netdev_linux_prepend_vnet_hdr(). > > Fixes: 3337e6d91c5b ("userspace: Enable L4 checksum offloading by default.") > Signed-off-by: Eelco Chaudron > --- > lib/netdev-linux.c | 3 ++- > 1 file changed, 2

Re: [ovs-dev] [PATCH 6/7] db-ctl-base: Initialize the output variable in the ctx structure.

2024-05-27 Thread Ilya Maximets
On 5/27/24 13:01, Eelco Chaudron wrote: > Coverity was flagged that the uninitialized output variable was used > in the ctl_context_init_command() function. This patch initializes > the variable. > > Fixes: 07ff77ccb82a ("db-ctl-base: Make common database command code into > library.") >

Re: [ovs-dev] [PATCH 4/7] sflow: Fix check for disabled receive time.

2024-05-27 Thread Ilya Maximets
On 5/27/24 13:01, Eelco Chaudron wrote: > Instead of casting time_t to uint32_t for the 0x comparison, > define a TIME_T_MAX and use it for both setting and comparison. > > Fixes: c72e245a0e2c ("Add InMon's sFlow Agent library to the build system.") > Signed-off-by: Eelco Chaudron > -- >

Re: [ovs-dev] [PATCH 1/7] Coverity: Fix Coverity `Unintentional integer overflow` reports.

2024-05-27 Thread Ilya Maximets
On 5/27/24 13:01, Eelco Chaudron wrote: > Fix three Unintentional integer overflow reports by adding the > ULL/LL suffix to the numerical literals used in the multiplications. > > Fixes: 5767a79a4059 ("cfm: Require ccm received in demand mode.") > Fixes: ed2300cca0d3 ("netdev-linux: Refactor put

Re: [ovs-dev] [PATCH 1/2] netdev-linux: Fix using uninitialized current_speed.

2024-05-27 Thread Roi Dayan via dev
On 27/05/2024 15:44, Ilya Maximets wrote: > On 5/27/24 13:00, Roi Dayan via dev wrote: >> Used Ubuntu with gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 >> lib/netdev-linux.c:4985:54: error: ‘current_speed’ may be used uninitialized >> in this function [-Werror=maybe-uninitialized] >> >> Fixes:

Re: [ovs-dev] [PATCH v2 6/6] netdev-linux: Initialize link speed in error conditions.

2024-05-27 Thread Ilya Maximets
On 5/23/24 21:11, Mike Pattrick wrote: > Clang's static analyzer noted that the output from > netdev_linux_get_speed_locked can be checked even if this function > doesn't set any values. > > Now we always set those values to a sane default in all cases. > > Fixes: 6240c0b4c80e ("netdev: Add

Re: [ovs-dev] [PATCH v2 5/6] netdev-linux: Return an error if device feature names are empty.

2024-05-27 Thread Ilya Maximets
On 5/23/24 21:11, Mike Pattrick wrote: > When retrieving a list of features supported by a network card, return > with an error code if the request completed without an error but the > list contains zero entries. > > In practice this should never happen, but it does contribute to a > detection in

Re: [ovs-dev] [PATCH v2 2/6] netdev-native-tnl: Fix use of uninitialized offset on SRv6 header pop.

2024-05-27 Thread Ilya Maximets
On 5/23/24 21:11, Mike Pattrick wrote: > Clang's static analyzer will complain about uninitialized value 'hlen' > because we weren't properly checking the error code from a function that > would have initialized the value. > > Instead, add a check for that return code. > > Signed-off-by: Mike

Re: [ovs-dev] [PATCH 1/2] netdev-linux: Fix using uninitialized current_speed.

2024-05-27 Thread Ilya Maximets
On 5/27/24 13:00, Roi Dayan via dev wrote: > Used Ubuntu with gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 > lib/netdev-linux.c:4985:54: error: ‘current_speed’ may be used uninitialized > in this function [-Werror=maybe-uninitialized] > > Fixes: b8f8fad86435 ("netdev-linux: Use speed as max rate in tc

Re: [ovs-dev] [PATCH 4/7] sflow: Fix check for disabled receive time.

2024-05-27 Thread 0-day Robot
Bleep bloop. Greetings Eelco Chaudron, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: ERROR: Improper whitespace around control block #40 FILE: lib/sflow_receiver.c:149:

[ovs-dev] [PATCH 7/7] netdev-linux: Fix uninitialized gso_type case.

2024-05-27 Thread Eelco Chaudron
This patch fixes a uninitialized gso_type case in netdev_linux_prepend_vnet_hdr(). Fixes: 3337e6d91c5b ("userspace: Enable L4 checksum offloading by default.") Signed-off-by: Eelco Chaudron --- lib/netdev-linux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[ovs-dev] [PATCH 6/7] db-ctl-base: Initialize the output variable in the ctx structure.

2024-05-27 Thread Eelco Chaudron
Coverity was flagged that the uninitialized output variable was used in the ctl_context_init_command() function. This patch initializes the variable. Fixes: 07ff77ccb82a ("db-ctl-base: Make common database command code into library.") Signed-off-by: Eelco Chaudron --- lib/db-ctl-base.c | 1 +

[ovs-dev] [PATCH 5/7] ofproto-dpif: Define age as time_t in ofproto_unixctl_fdb_add().

2024-05-27 Thread Eelco Chaudron
Fix the warning from Coverity about potential truncation of the time_t value when copying to a local variable by changing the local variable's type to time_t. ccc24fc88d59 ("ofproto-dpif: APIs and CLI option to add/delete static fdb entry.") Signed-off-by: Eelco Chaudron ---

[ovs-dev] [PATCH 4/7] sflow: Fix check for disabled receive time.

2024-05-27 Thread Eelco Chaudron
Instead of casting time_t to uint32_t for the 0x comparison, define a TIME_T_MAX and use it for both setting and comparison. Fixes: c72e245a0e2c ("Add InMon's sFlow Agent library to the build system.") Signed-off-by: Eelco Chaudron -- Note that this checkpatch reports an 'Improper

[ovs-dev] [PATCH 3/7] sflow: Use uint32_t instead of time_t for tick handling in the poller.

2024-05-27 Thread Eelco Chaudron
The sFlow library uses a uint32_t to configure timeout ticks, but stores this value as a time_t. Although this doesn't cause functional issues, it wastes space and confuses Coverity, potentially indicating a Y2K38 problem when storing uint32_t values in time_t. This patch updates the internal data

[ovs-dev] [PATCH 2/7] sflow: Replace libc's random() function with the OVS's random_range().

2024-05-27 Thread Eelco Chaudron
Coverity has flagged the use of a potentially unsafe function. Although this is not a concern in this case since it's not used for encryption, we should replace it with the OVS implementation to achieve better randomness. Fixes: c72e245a0e2c ("Add InMon's sFlow Agent library to the build

[ovs-dev] [PATCH 1/7] Coverity: Fix Coverity `Unintentional integer overflow` reports.

2024-05-27 Thread Eelco Chaudron
Fix three Unintentional integer overflow reports by adding the ULL/LL suffix to the numerical literals used in the multiplications. Fixes: 5767a79a4059 ("cfm: Require ccm received in demand mode.") Fixes: ed2300cca0d3 ("netdev-linux: Refactor put police action netlink message") Signed-off-by:

[ovs-dev] [PATCH 1/2] netdev-linux: Fix using uninitialized current_speed.

2024-05-27 Thread Roi Dayan via dev
Used Ubuntu with gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 lib/netdev-linux.c:4985:54: error: ‘current_speed’ may be used uninitialized in this function [-Werror=maybe-uninitialized] Fixes: b8f8fad86435 ("netdev-linux: Use speed as max rate in tc classes.") Signed-off-by: Roi Dayan ---

[ovs-dev] [PATCH 2/2] netdev-linux: Fix ethtool_cmd is partly outside array bounds.

2024-05-27 Thread Roi Dayan via dev
Used Ubuntu with gcc (Ubuntu 11.2.0-19ubuntu1) 11.2.0 lib/netdev-linux.c: In function ‘netdev_linux_construct’: lib/netdev-linux.c:7003:15: error: array subscript ‘struct ethtool_cmd[0]’ is partly outside array bounds of ‘union [1]’ [-Werror=array-bounds] 7003 | ecmd->cmd = cmd; |

Re: [ovs-dev] [PATCH ovn v2 2/4] controller: Further encapsulate the CT zone handling.

2024-05-27 Thread Ales Musil
On Mon, May 27, 2024 at 9:00 AM Ales Musil wrote: > Move more code into the new ct-zone module and encapsulate > functionality that is strictly related to CT zone handling. > > Signed-off-by: Ales Musil > --- > controller/ct-zone.c| 156 +--- >

Re: [ovs-dev] [BUG] [ovs-2.17.1] [ovs-vswitchd] Miss setting port number in openflow while delete port and add port

2024-05-27 Thread Adrián Moreno
On Thu, May 23, 2024 at 04:21:48PM GMT, Simon Jones wrote: > Hi all, > > I found a bug in OVS-DPDK(ovs-2.17.1, dpdk-21.11). > Which is Miss setting port number in openflow while delete port and add > port. Hi Simon. See my comments inline. > > 1. The process of problem is: > ``` > add bridge; >

Re: [ovs-dev] [PATCH ovn v2 4/4] controller, northd: Add support for CT zone limits.

2024-05-27 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 84 characters long (recommended limit is 79) #497 FILE: ovn-nb.xml:726:

Re: [ovs-dev] [PATCH ovn v2 1/4] controller: Move CT zone handling into separate module.

2024-05-27 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Comment with 'xxx' marker #190 FILE: controller/ct-zone.c:146: /* XXX Add

[ovs-dev] [PATCH ovn v2 1/4] controller: Move CT zone handling into separate module.

2024-05-27 Thread Ales Musil
Move the CT zone handling specific bits into it's own module. This allows for easier changes done within the module and separates the logic that is unrelated from ovn-controller. Signed-off-by: Ales Musil --- controller/automake.mk | 4 +- controller/ct-zone.c| 377

[ovs-dev] [PATCH ovn v2 3/4] controller: Prepare structure around CT zone limiting.

2024-05-27 Thread Ales Musil
In order to be able to store CT limits for specified zone, store the zone inside separate struct instead of simap. This allows to add the addition of limit without chaning the whole infrastructure again. This is a preparation step for the CT zone limits. Signed-off-by: Ales Musil --- v2: Fix

[ovs-dev] [PATCH ovn v2 2/4] controller: Further encapsulate the CT zone handling.

2024-05-27 Thread Ales Musil
Move more code into the new ct-zone module and encapsulate functionality that is strictly related to CT zone handling. Signed-off-by: Ales Musil --- controller/ct-zone.c| 156 +--- controller/ct-zone.h| 8 +- controller/ovn-controller.c | 49

[ovs-dev] [PATCH ovn v2 4/4] controller, northd: Add support for CT zone limits.

2024-05-27 Thread Ales Musil
Add support for limitng the CT zone usage per Ls, LR or LSP. When the limit is configured on logical switch it will also implicitly set limits for all ports in that logical switch. The port configuration can be overwritten individually and has priority over the whole logical switch configuration.

[ovs-dev] [PATCH ovn v2 0/4] Add ability to limit CT entries per LS/LR/LSP

2024-05-27 Thread Ales Musil
Add ability that allows to set CT limits per logical switch, logical router or logical switch port. When the limit is applied to logical switch it will be implicitly set for all logical ports in the logical switch. This can be overwritten individually per port. To achieve this there is a small

[ovs-dev] [PATCH v2 1/1] datapath-windows : Add sanity check in OvsInitConntrack.

2024-05-26 Thread Wilson Peng via dev
From: Wilson Peng While deploying Tanzu Kubernetes(Antrea based solution) in Broadcom customer, Sometimes it is found that the kernel thread OvsConntrackEntryCleaner is not started After the Windows node is rebooted on unexpected condition. It could be also observed a similar issue in local

Re: [ovs-dev] [PATCH] netdev-offload-dpdk: support offload of set dscp action.

2024-05-26 Thread 0-day Robot
References: <20240526084316.44848-1-sunyang...@jaguarmicro.com> Bleep bloop. Greetings Sunyang Wu, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: The subject summary

[ovs-dev] [PATCH] netdev-offload-dpdk: support offload of set dscp action.

2024-05-26 Thread Sunyang Wu via dev
Signed-off-by: Sunyang Wu --- lib/netdev-offload-dpdk.c | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/lib/netdev-offload-dpdk.c b/lib/netdev-offload-dpdk.c index 623005b1c..524942457 100644 --- a/lib/netdev-offload-dpdk.c +++ b/lib/netdev-offload-dpdk.c

[ovs-dev] [PATCH 1/1] netdev-offload-tc: Reserve lower tc prio for vlan ethertype.

2024-05-26 Thread Roi Dayan via dev
From: Maor Dickman The cited commit reserved lower tc priorities for IP ethertypes in order to give IP traffic higher priority than other management traffic. In case of of vlan encap traffic, IP traffic will still get lower priority. Fix it by also reserving low priority tc prio for vlan.

[ovs-dev] [PATCH v2 1/1] datapath-windows : Add sanity check in OvsInitConntrack.

2024-05-26 Thread Wilson Peng via dev
From: Wilson Peng While deploying Tanzu Kubernetes(Antrea based solution) in Broadcom customer, Sometimes it is found that the kernel thread OvsConntrackEntryCleaner is not started After the Windows node is rebooted on unexpected condition. It could be also observed a similar issue in local

Re: [ovs-dev] [PATCH v1 1/1] datapath-windows : Add sanity check when starting OvsConntrackEntryCleaner thread

2024-05-26 Thread 0-day Robot
References: <20240526053923.54978-1-svc.ovs-commun...@vmware.com> Bleep bloop. Greetings Wilson Peng, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: The subject, ':

[ovs-dev] [PATCH v1 1/1] datapath-windows : Add sanity check when starting OvsConntrackEntryCleaner thread

2024-05-25 Thread Wilson Peng via dev
From: Wilson Peng While deploying Tanzu Kubernetes(Antrea based solution) in Broadcom customer, Sometimes it is found that the kernel thread OvsConntrackEntryCleaner is not started After the Windows node is rebooted on unexpected condition. It could be also observed a similar issue in

[ovs-dev] [PATCH v3] ofproto-dpif-rid: Fix duplicate entries.

2024-05-25 Thread wushaohua
From: Shaohua Wu In scenarios with multiple PMDs, there may be simultaneous requests for recirc_id from multiple PMD threads.In recirc_alloc_id_ctx, we first check if there is a duplicate entry in the metadata_map for the same frozen_state field. If successful, we directly retrieve the

Re: [ovs-dev] [v3] odp-execute: Fix AVX checksum calculation.

2024-05-24 Thread Finn, Emma
> -Original Message- > From: Ilya Maximets > Sent: Thursday, May 23, 2024 10:37 PM > To: Van Haaren, Harry ; Chaudron, Eelco > ; Finn, Emma > Cc: i.maxim...@ovn.org; ovs-dev@openvswitch.org > Subject: Re: [ovs-dev] [v3] odp-execute: Fix AVX checksum calculation. > > On 5/23/24 13:03,

[ovs-dev] [v4] odp-execute: Fix AVX checksum calculation.

2024-05-24 Thread Emma Finn
The AVX implementation for calcualting checksums was not handling carry-over addition correctly in some cases. This patch adds an additional shuffle to add 16-bit padding to the final part of the calculation to handle such cases. This commit also adds a unit test to check the checksum carry-bits

[ovs-dev] [PATCH v2 ovn] Do not reply on unicast arps for IPv4 targets.

2024-05-24 Thread Vasyl Saienko
Reply only if target ethernet address is broadcast, if address is specified explicitly do noting to let target reply by itself. This technique allows to monitor target aliveness with arping. Closes #239 Signed-off-by: Vasyl Saienko --- northd/northd.c | 11 +--

Re: [ovs-dev] [v3] odp-execute: Fix AVX checksum calculation.

2024-05-23 Thread Ilya Maximets
On 5/23/24 13:03, Van Haaren, Harry wrote: >> On 21 May 2024, at 16:13, Emma Finn wrote: >>> The AVX implementation for calcualting checksums was not >>> handling carry-over addition correctly in some cases. >>> This patch adds an additional shuffle to add 16-bit padding >>> to the final part of

Re: [ovs-dev] [PATCH v2 1/6] netdev-offload: Fix null pointer dereference' warnings on dump creation.

2024-05-23 Thread 0-day Robot
Bleep bloop. Greetings Mike Pattrick, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: The subject, ': ', is over 70 characters, i.e., 72. Subject: netdev-offload: Fix

[ovs-dev] [PATCH v2 5/6] netdev-linux: Return an error if device feature names are empty.

2024-05-23 Thread Mike Pattrick
When retrieving a list of features supported by a network card, return with an error code if the request completed without an error but the list contains zero entries. In practice this should never happen, but it does contribute to a detection in Clang's static analyzer. Fixes: 6c59c195266c

[ovs-dev] [PATCH v2 4/6] socket: Fix uninitialized values in inet_parse_ functions.

2024-05-23 Thread Mike Pattrick
Clang's static analyzer will complain about uninitialized value dns_failure because we weren't setting a value for dns_failure in all code paths. Now we initialize this in the error conditions of inet_parse_passive and inet_parse_active. Fixes: 08e9e5337383 ("ovsdb: raft: Fix inability to read

[ovs-dev] [PATCH v2 6/6] netdev-linux: Initialize link speed in error conditions.

2024-05-23 Thread Mike Pattrick
Clang's static analyzer noted that the output from netdev_linux_get_speed_locked can be checked even if this function doesn't set any values. Now we always set those values to a sane default in all cases. Fixes: 6240c0b4c80e ("netdev: Add netdev_get_speed() to netdev API.") Signed-off-by: Mike

[ovs-dev] [PATCH v2 3/6] dpctl: Fix uninitialized value when deleting flows.

2024-05-23 Thread Mike Pattrick
Clang's static analyzer will complain about an uninitialized value because we weren't setting a value for ufid_generated in all code paths. Now we initialize this on declaration. This patch also corrects the reverse x-mass of variable declaration. Fixes: bbe2e3928747 ("dpctl: Fix broken flow

[ovs-dev] [PATCH v2 2/6] netdev-native-tnl: Fix use of uninitialized offset on SRv6 header pop.

2024-05-23 Thread Mike Pattrick
Clang's static analyzer will complain about uninitialized value 'hlen' because we weren't properly checking the error code from a function that would have initialized the value. Instead, add a check for that return code. Signed-off-by: Mike Pattrick Fixes: 03fc1ad78521 ("userspace: Add SRv6

[ovs-dev] [PATCH v2 1/6] netdev-offload: Fix null pointer dereference' warnings on dump creation.

2024-05-23 Thread Mike Pattrick
Clang's static analyzer will complain about a null pointer dereference because dumps can be set to null and then there is a loop where it could have been written to. This is a false positive, but only because the netdev dpif type won't change during this loop. Instead, return early from the

[ovs-dev] [PATCH] dpdk: Use DPDK 23.11.1 release.

2024-05-23 Thread Kevin Traynor
Update the CI and docs to use DPDK 23.11.1. Signed-off-by: Kevin Traynor --- .github/workflows/build-and-test.yml | 4 ++-- Documentation/faq/releases.rst | 10 +- Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++ 4 files changed,

[ovs-dev] [PATCH branch-3.3] dpdk: Use DPDK 23.11.1 release for OVS 3.3.

2024-05-23 Thread Kevin Traynor
Update the CI and docs to use DPDK 23.11.1. Signed-off-by: Kevin Traynor --- .github/workflows/build-and-test.yml | 4 ++-- Documentation/faq/releases.rst | 10 +- Documentation/intro/install/dpdk.rst | 8 NEWS | 3 +++ 4 files changed,

[ovs-dev] [PATCH branch-3.2] dpdk: Use DPDK 22.11.5 release for OVS 3.2.

2024-05-23 Thread Kevin Traynor
Update the CI and docs to use DPDK 22.11.5. Signed-off-by: Kevin Traynor --- .github/workflows/build-and-test.yml | 2 +- Documentation/faq/releases.rst | 8 Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++ 4 files changed, 11

[ovs-dev] [PATCH branch-3.1] dpdk: Use DPDK 22.11.5 release for OVS 3.1.

2024-05-23 Thread Kevin Traynor
Update the CI and docs to use DPDK 22.11.5. Signed-off-by: Kevin Traynor --- .github/workflows/build-and-test.yml | 2 +- Documentation/faq/releases.rst | 6 +++--- Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++ 4 files changed, 10

[ovs-dev] [PATCH branch-3.0] dpdk: Use DPDK 21.11.7 release for OVS 3.0.

2024-05-23 Thread Kevin Traynor
Update the CI and docs to use DPDK 21.11.7. Signed-off-by: Kevin Traynor --- .ci/linux-build.sh | 2 +- Documentation/faq/releases.rst | 4 ++-- Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++ 4 files changed, 9

[ovs-dev] [PATCH branch-2.17] dpdk: Use DPDK 21.11.7 release for OVS 2.17.

2024-05-23 Thread Kevin Traynor
Update the CI and docs to use DPDK 21.11.7. Signed-off-by: Kevin Traynor --- .ci/linux-build.sh | 2 +- Documentation/faq/releases.rst | 2 +- Documentation/intro/install/dpdk.rst | 8 NEWS | 2 ++ 4 files changed, 8

Re: [ovs-dev] [RFC 00/11] Add psample support to NXAST_SAMPLE action.

2024-05-23 Thread Adrián Moreno
On Wed, May 22, 2024 at 03:26:05PM GMT, Aaron Conole wrote: > Ilya Maximets writes: > > > On 5/16/24 19:03, Adrian Moreno wrote: > >> > >> > >> On 4/24/24 9:53 PM, Adrian Moreno wrote: > >>> This is the userspace counterpart of the work being done in the kernel > >>> [1]. Sending it as RFC to get

Re: [ovs-dev] [PATCH ovn 4/4] controller, northd: Add support for CT zone limits.

2024-05-23 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Line is 84 characters long (recommended limit is 79) #497 FILE: ovn-nb.xml:726:

Re: [ovs-dev] [PATCH ovn 1/4] controller: Move CT zone handling into separate module.

2024-05-23 Thread 0-day Robot
Bleep bloop. Greetings Ales Musil, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. checkpatch: WARNING: Comment with 'xxx' marker #190 FILE: controller/ct-zone.c:146: /* XXX Add

[ovs-dev] [PATCH ovn 4/4] controller, northd: Add support for CT zone limits.

2024-05-23 Thread Ales Musil
Add support for limitng the CT zone usage per Ls, LR or LSP. When the limit is configured on logical switch it will also implicitly set limits for all ports in that logical switch. The port configuration can be overwritten individually and has priority over the whole logical switch configuration.

[ovs-dev] [PATCH ovn 1/4] controller: Move CT zone handling into separate module.

2024-05-23 Thread Ales Musil
Move the CT zone handling specific bits into it's own module. This allows for easier changes done within the module and separates the logic that is unrelated from ovn-controller. Signed-off-by: Ales Musil --- controller/automake.mk | 4 +- controller/ct-zone.c| 377

[ovs-dev] [PATCH ovn 3/4] controller: Prepare structure around CT zone limiting.

2024-05-23 Thread Ales Musil
In order to be able to store CT limits for specified zone, store the zone inside separate struct instead of simap. This allows to add the addition of limit without chaning the whole infrastructure again. This is a preparation step for the CT zone limits. Signed-off-by: Ales Musil ---

[ovs-dev] [PATCH ovn 2/4] controller: Further encapsulate the CT zone handling.

2024-05-23 Thread Ales Musil
Move more code into the new ct-zone module and encapsulate functionality that is strictly related to CT zone handling. Signed-off-by: Ales Musil --- controller/ct-zone.c| 156 +--- controller/ct-zone.h| 8 +- controller/ovn-controller.c | 49

  1   2   3   4   5   6   7   8   9   10   >