[ovs-dev] [PATCH v4 2/2] userspace: Add Generic Segmentation Offloading.

2023-07-11 Thread Mike Pattrick
From: Flavio Leitner This provides a software implementation in the case the egress netdev doesn't support segmentation in hardware. The challenge here is to guarantee packet ordering in the original batch that may be full of TSO packets. Each TSO packet can go up to ~64kB, so with segment size

[ovs-dev] [PATCH v4 1/2] userspace: Respect tso/gso segment size.

2023-07-11 Thread Mike Pattrick
From: Flavio Leitner Currently OVS will calculate the segment size based on the MTU of the egress port. That usually happens to be correct when the ports share the same MTU, but that is not always true. Therefore, if the segment size is provided, then use that and make sure the over sized

Re: [ovs-dev] [PATCH v3 2/2] userspace: Add Generic Segmentation Offloading.

2023-07-11 Thread Mike Pattrick
On Tue, Jul 4, 2023 at 9:00 PM Ilya Maximets wrote: > > On 6/21/23 22:36, Mike Pattrick wrote: > > From: Flavio Leitner > > > > This provides a software implementation in the case > > the egress netdev doesn't support segmentation in hardware. > > > > The challenge here is to guarantee packet

[ovs-dev] [PATCH v5] python: Add async DNS support

2023-07-11 Thread Terry Wilson
This adds a Python version of the async DNS support added in: 771680d96 DNS: Add basic support for asynchronous DNS resolving The above version uses the unbound C library, and this implimentation uses the SWIG-wrapped Python version of that. In the event that the Python unbound library is not

Re: [ovs-dev] [PATCH 2/3] checkpatch: add suggestions to the spell checker

2023-07-11 Thread Eelco Chaudron
On 7 Jul 2023, at 22:07, Chandan Somani wrote: > This will be useful for correcting possible spelling > mistakes with ease. Suggestions limited to 3 at first, > but configurable in the future. > > Signed-off-by: Chandan Somani > Acked-by: Aaron Conole > --- This looks good, thank Chandan.

Re: [ovs-dev] [PATCH v12 5/8] file, monitor: Add null pointer assertions for old and new ovsdb_rows

2023-07-11 Thread Eelco Chaudron
On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > This commit adds non-null pointer assertions in some code that performs > some decisions based on old and new input ovsdb_rows. > > Signed-off-by: James Raphael Tiovalen > Reviewed-by: Simon Horman What about error messages/argument

Re: [ovs-dev] [ovn] ovn-controller high memory consumption with sbrec_server_has_##table##_table - enabled codepath

2023-07-11 Thread Dumitru Ceara
On 7/10/23 22:20, Vladislav Odintsov wrote: > Hi Dumitru, > > thanks for digging into this! I highly appreciate your help! > No worries, my pleasure! :) > Please, see my answers inline. > >> On 10 Jul 2023, at 15:28, Dumitru Ceara wrote: >> >> On 7/10/23 12:57, Dumitru Ceara wrote: >>> On

Re: [ovs-dev] [PATCH v2 1/3] checkpatch: reorganize flagged words using a list

2023-07-11 Thread Eelco Chaudron
On 7 Jul 2023, at 22:07, Chandan Somani wrote: > Single out flagged words and allow for more useful > details, like spelling suggestions. Fixed syntax > error from v1 > > Signed-off-by: Chandan Somani Hi Chandan, Thanks for the patch! I think it looks good, however some small comments on the

Re: [ovs-dev] [PATCH v12 3/8] shash, simap, smap: Add assertions to `*_count` functions

2023-07-11 Thread Eelco Chaudron
On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > This commit adds assertions in the functions `shash_count`, > `simap_count`, and `smap_count` to ensure that the corresponding input > struct pointer is not NULL. > > This ensures that if the return values of `shash_sort`, `simap_sort`,

Re: [ovs-dev] [PATCH v12 4/8] ovsdb: Assert and check return values of `ovsdb_table_schema_get_column`

2023-07-11 Thread Eelco Chaudron
On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > This commit adds a few null pointer assertions and checks to some return > values of `ovsdb_table_schema_get_column`. If a null pointer is > encountered in these blocks, either the assertion will fail or the > control flow will now be

Re: [ovs-dev] [PATCH v4] ofproto-dpif-upcall: Mirror packets that are modified

2023-07-11 Thread Eelco Chaudron
On 10 Jul 2023, at 17:34, Mike Pattrick wrote: > Currently OVS keeps track of which mirrors that each packet has been > sent to for the purpose of deduplication. However, this doesn't consider > that openflow rules can make significant changes to packets after > ingress. > > For example, OVN

Re: [ovs-dev] [PATCH v12 2/8] lib, ovs-vsctl: Add zero-initializations

2023-07-11 Thread Eelco Chaudron
On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > This commit adds zero-initializations by changing `SFL_ALLOC` from > `malloc` to `xzalloc`, adding a `memset` call to `sflAlloc`, > initializing a `pollfd` struct variable with zeroes, and changing some > calls to `xmalloc` to

Re: [ovs-dev] [PATCH v3] ovs-vsctl: Exit with error if postdb checks report errors.

2023-07-11 Thread Ilya Maximets
On 7/5/23 01:29, Flavio Leitner wrote: > Today the exit code refers to the execution of the change > in the database. However, when not using parameter --no-wait > (default), the ovs-vsctl also checks if OVSDB transactions > are successfully recorded and reload by ovs-vswitchd. In this > case, an

Re: [ovs-dev] [PATCH v1 2/7] netdev-linux: use speed as max rate in tc classes

2023-07-11 Thread Adrian Moreno
On 7/10/23 16:33, Eelco Chaudron wrote: On 10 Jul 2023, at 16:26, Adrian Moreno wrote: On 7/10/23 16:19, Adrian Moreno wrote: On 7/6/23 14:50, Eelco Chaudron wrote: On 2 Jun 2023, at 16:13, Adrian Moreno wrote: Instead of relying on feature bits, use the speed value directly as

Re: [ovs-dev] [PATCH v12 1/8] lib: Add non-null assertions to some return values of `dp_packet_data`

2023-07-11 Thread Eelco Chaudron
On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > This commit adds some `ovs_assert()` checks to some return values of > `dp_packet_data()` to ensure that they are not NULL and to prevent > null-pointer dereferences, which might lead to unwanted crashes. We use > assertions since it

Re: [ovs-dev] [PATCH v3] ovs-vsctl: Exit with error if postdb checks report errors.

2023-07-11 Thread Eelco Chaudron
On 5 Jul 2023, at 1:29, Flavio Leitner wrote: > Today the exit code refers to the execution of the change > in the database. However, when not using parameter --no-wait > (default), the ovs-vsctl also checks if OVSDB transactions > are successfully recorded and reload by ovs-vswitchd. In this

Re: [ovs-dev] [PATCH ovn v2] ci: Remove '--recheck' in CI.

2023-07-11 Thread Ales Musil
On Tue, Jul 11, 2023 at 7:14 AM Ales Musil wrote: > > > On Mon, Jul 10, 2023 at 5:26 PM Dumitru Ceara wrote: > >> If we want to catch new failures faster we have a better chance if CI >> doesn't auto-retry (once). >> >> There are some tests that are still "unstable" and fail every now and >>

Re: [ovs-dev] [PATCH v12 8/8] treewide: Add `ovs_assert` to check for null pointers

2023-07-11 Thread Eelco Chaudron
On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > This patch adds an assortment of `ovs_assert` statements to check for > null pointers. We use assertions since it should be impossible for any > of these pointers to be NULL. > > Signed-off-by: James Raphael Tiovalen > Reviewed-by:

Re: [ovs-dev] [PATCH v5] ofproto-dpif-xlate: Reduce stack usage in recursive xlate functions

2023-07-11 Thread Eelco Chaudron
On 10 Jul 2023, at 17:20, Mike Pattrick wrote: > Several xlate actions used in recursive translation currently store a > large amount of information on the stack. This can result in handler > threads quickly running out of stack space despite before > xlate_resubmit_resource_check() is able to

Re: [ovs-dev] [PATCH v12 6/8] ovs-vsctl: Fix crash when routing is enabled

2023-07-11 Thread Eelco Chaudron
On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > In the case where routing is enabled, the bridge member of the > `vsctl_port` structs is not populated. This can cause a crash if we > attempt to access it. This patch fixes the crash by checking if the > bridge member is valid before

Re: [ovs-dev] [PATCH v2 3/3] checkpatch: print subject field if misspelled or missing

2023-07-11 Thread Eelco Chaudron
On 7 Jul 2023, at 22:07, Chandan Somani wrote: > This narrows down spelling errors that are in the commit > subject. In v2, it also provides a subject if the subject > line is missing. The provisional subject is the name of the > patch file, which should provide some context about the patch. >

Re: [ovs-dev] [PATCH ovn v2] ci: Remove '--recheck' in CI.

2023-07-11 Thread Dumitru Ceara
On 7/11/23 10:30, Ales Musil wrote: > On Tue, Jul 11, 2023 at 7:14 AM Ales Musil wrote: > >> >> >> On Mon, Jul 10, 2023 at 5:26 PM Dumitru Ceara wrote: >> >>> If we want to catch new failures faster we have a better chance if CI >>> doesn't auto-retry (once). >>> >>> There are some tests that

Re: [ovs-dev] [PATCH v12 7/8] lib, ovsdb: Add various null pointer checks

2023-07-11 Thread Eelco Chaudron
On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > This commit adds various null pointer checks to some files in the `lib` > and the `ovsdb` directories to fix several Coverity defects. These > changes are grouped together as they perform similar checks, returning > early or skipping

Re: [ovs-dev] [ovn] ovn-controller high memory consumption with sbrec_server_has_##table##_table - enabled codepath

2023-07-11 Thread Dumitru Ceara
On 7/11/23 18:33, Vladislav Odintsov wrote: > Hi Dumitru, > > The system on which I reproduced this issue is running 22.09.x version. I’ve > tried to upgrade ovn-controller to main branch + your patch. Please, note > that it has test error: [1]. > After two minutes after upgrade it still

Re: [ovs-dev] [PATCH ovn v2 0/8] northd: I-P for load balancer and lb groups

2023-07-11 Thread Numan Siddique
On Sat, Jul 8, 2023 at 1:27 AM Mark Michelson wrote: > > Hi Numan, > > I gave the series a look. I've looked at the code but haven't yet run > any tests with it. The main reason for this is that the series does not > apply cleanly to OVN main. > > Overall, I only have small notes. I've replied to

Re: [ovs-dev] [OVSCONF] OVS+OVN '23: Call for Participation

2023-07-11 Thread Michael Santana
Just a small update, We have moved the conference dates to December 6-7, 2023 so as to not overlap with another networking conference happening around the same time. Stay tuned for further updates! Thank you! Conference Team On Fri, Jul 7, 2023 at 1:23 PM Michael Santana wrote: > > Hello

Re: [ovs-dev] [ovn] ovn-controller high memory consumption with sbrec_server_has_##table##_table - enabled codepath

2023-07-11 Thread Vladislav Odintsov
Hi Dumitru, The system on which I reproduced this issue is running 22.09.x version. I’ve tried to upgrade ovn-controller to main branch + your patch. Please, note that it has test error: [1]. After two minutes after upgrade it still consumed 3.3G. I tried to backport your patch to 22.09, it

Re: [ovs-dev] [PATCH v12 4/8] ovsdb: Assert and check return values of `ovsdb_table_schema_get_column`

2023-07-11 Thread Eelco Chaudron
On 11 Jul 2023, at 16:33, Ilya Maximets wrote: > On 7/11/23 12:13, Eelco Chaudron wrote: >> >> >> On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: >> >>> This commit adds a few null pointer assertions and checks to some return >>> values of `ovsdb_table_schema_get_column`. If a null

Re: [ovs-dev] [PATCH v12 4/8] ovsdb: Assert and check return values of `ovsdb_table_schema_get_column`

2023-07-11 Thread Ilya Maximets
On 7/11/23 12:13, Eelco Chaudron wrote: > > > On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > >> This commit adds a few null pointer assertions and checks to some return >> values of `ovsdb_table_schema_get_column`. If a null pointer is >> encountered in these blocks, either the

Re: [ovs-dev] [PATCH v12 5/8] file, monitor: Add null pointer assertions for old and new ovsdb_rows

2023-07-11 Thread Ilya Maximets
On 7/11/23 12:17, Eelco Chaudron wrote: > > > On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > >> This commit adds non-null pointer assertions in some code that performs >> some decisions based on old and new input ovsdb_rows. >> >> Signed-off-by: James Raphael Tiovalen >>

Re: [ovs-dev] [PATCH v12 5/8] file, monitor: Add null pointer assertions for old and new ovsdb_rows

2023-07-11 Thread Eelco Chaudron
On 11 Jul 2023, at 16:38, Ilya Maximets wrote: > On 7/11/23 12:17, Eelco Chaudron wrote: >> >> >> On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: >> >>> This commit adds non-null pointer assertions in some code that performs >>> some decisions based on old and new input ovsdb_rows. >>>

Re: [ovs-dev] [PATCH v2 3/3] checkpatch: print subject field if misspelled or missing

2023-07-11 Thread Chandan Somani
On Tue, Jul 11, 2023 at 12:38 AM Eelco Chaudron wrote: > > > On 7 Jul 2023, at 22:07, Chandan Somani wrote: > > > This narrows down spelling errors that are in the commit > > subject. In v2, it also provides a subject if the subject > > line is missing. The provisional subject is the name of the

Re: [ovs-dev] [PATCH v2 1/3] checkpatch: reorganize flagged words using a list

2023-07-11 Thread Aaron Conole
Chandan Somani writes: > Single out flagged words and allow for more useful > details, like spelling suggestions. Fixed syntax > error from v1 > > Signed-off-by: Chandan Somani > --- Thanks! Acked-by: Aaron Conole > utilities/checkpatch.py | 12 +--- > 1 file changed, 9

[ovs-dev] [PATCH v4] python: Add async DNS support

2023-07-11 Thread Terry Wilson
This adds a Python version of the async DNS support added in: 771680d96 DNS: Add basic support for asynchronous DNS resolving The above version uses the unbound C library, and this implimentation uses the SWIG-wrapped Python version of that. In the event that the Python unbound library is not

Re: [ovs-dev] [PATCH v3] bridge ovs-vsctl Bridge IPFIX enable_input_sampling, enable_ouput_sampling fix unexpected values

2023-07-11 Thread Ilya Maximets
On 7/6/23 09:25, Adrian Moreno wrote: > > > On 7/5/23 22:02, Sayali Naval (sanaval) via dev wrote: >> As per the Open vSwitch Manual >> (http://www.openvswitch.org/support/dist-docs/ovs-vsctl.8.txt) the Bridge >> IPFIX parameters can be passed as follows: >> >> ovs-vsctl -- set Bridge br0

Re: [ovs-dev] [PATCH net-next 2/2] net: openvswitch: add drop action

2023-07-11 Thread Aaron Conole
Eric Garver writes: > On Mon, Jul 10, 2023 at 06:51:19PM +0200, Ilya Maximets wrote: >> On 7/8/23 00:06, Jakub Kicinski wrote: >> > On Fri, 7 Jul 2023 18:04:36 +0200 Ilya Maximets wrote: >> That already exists, right? Johannes added it in the last release for >> WiFi. >> >>> >> >>>

Re: [ovs-dev] [PATCH v12 3/8] shash, simap, smap: Add assertions to `*_count` functions

2023-07-11 Thread Ilya Maximets
On 7/11/23 12:05, Eelco Chaudron wrote: > > > On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > >> This commit adds assertions in the functions `shash_count`, >> `simap_count`, and `smap_count` to ensure that the corresponding input >> struct pointer is not NULL. >> >> This ensures that

Re: [ovs-dev] [PATCH v12 8/8] treewide: Add `ovs_assert` to check for null pointers

2023-07-11 Thread Ilya Maximets
On 7/11/23 13:40, Eelco Chaudron wrote: >> diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/jsonrpc-server.c >> index 5361b3c76..a3ca48a7b 100644 >> --- a/ovsdb/jsonrpc-server.c >> +++ b/ovsdb/jsonrpc-server.c >> @@ -1131,6 +1131,8 @@ static void >> ovsdb_jsonrpc_trigger_create(struct

Re: [ovs-dev] [ovn] ovn-controller high memory consumption with sbrec_server_has_##table##_table - enabled codepath

2023-07-11 Thread Ilya Maximets
On 7/11/23 19:01, Dumitru Ceara wrote: > On 7/11/23 18:33, Vladislav Odintsov wrote: >> Hi Dumitru, >> >> The system on which I reproduced this issue is running 22.09.x version. I’ve >> tried to upgrade ovn-controller to main branch + your patch. Please, note >> that it has test error: [1]. >>

Re: [ovs-dev] [PATCH v12 4/8] ovsdb: Assert and check return values of `ovsdb_table_schema_get_column`

2023-07-11 Thread Ilya Maximets
On 7/11/23 16:41, Eelco Chaudron wrote: > > > On 11 Jul 2023, at 16:33, Ilya Maximets wrote: > >> On 7/11/23 12:13, Eelco Chaudron wrote: >>> >>> >>> On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: >>> This commit adds a few null pointer assertions and checks to some return

Re: [ovs-dev] [PATCH v12 6/8] ovs-vsctl: Fix crash when routing is enabled

2023-07-11 Thread Ilya Maximets
On 7/11/23 12:22, Eelco Chaudron wrote: > > > On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: > >> In the case where routing is enabled, the bridge member of the >> `vsctl_port` structs is not populated. This can cause a crash if we >> attempt to access it. This patch fixes the crash by

Re: [ovs-dev] [PATCH v12 5/8] file, monitor: Add null pointer assertions for old and new ovsdb_rows

2023-07-11 Thread Ilya Maximets
On 7/11/23 17:08, Eelco Chaudron wrote: > > > On 11 Jul 2023, at 16:38, Ilya Maximets wrote: > >> On 7/11/23 12:17, Eelco Chaudron wrote: >>> >>> >>> On 13 Jun 2023, at 20:34, James Raphael Tiovalen wrote: >>> This commit adds non-null pointer assertions in some code that performs

Re: [ovs-dev] [PATCH v2 3/3] checkpatch: print subject field if misspelled or missing

2023-07-11 Thread Aaron Conole
Eelco Chaudron writes: > On 7 Jul 2023, at 22:07, Chandan Somani wrote: > >> This narrows down spelling errors that are in the commit >> subject. In v2, it also provides a subject if the subject >> line is missing. The provisional subject is the name of the >> patch file, which should provide