[ovs-dev] [ovs-dev v7 3/3] checkpatch.py: Add checks for easy-to-misuse APIs.

2022-05-25 Thread Peng He
Signed-off-by: Peng He Signed-off-by: Peng He --- tests/checkpatch.at | 24 +--- utilities/checkpatch.py | 36 +--- 2 files changed, 54 insertions(+), 6 deletions(-) diff --git a/tests/checkpatch.at b/tests/checkpatch.at index

[ovs-dev] [ovs-dev v7 2/3] ofproto-dpif: Fix meter use-after-free

2022-05-25 Thread Peng He
Add a rcu_barrier before close_dpif_backer to ensure that all meters have been freed before id_pool_destory meter's id-pool. Signed-off-by: Peng He Tested-by: David Marchand Reviewed-by: David Marchand --- ofproto/ofproto-dpif.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[ovs-dev] [ovs-dev v7 1/3] ovs-rcu: Add ovsrcu_barrier

2022-05-25 Thread Peng He
ovsrcu_barrier will block the current thread until all the postponed rcu job has been finished. it's like a OVS version of the Linux kernel rcu_barrier(). Signed-off-by: Peng He Co-authored-by: Eelco Chaudron Signed-off-by: Eelco Chaudron Reviewed-by: David Marchand --- lib/ovs-rcu.c| 37

Re: [ovs-dev] [PATCH ovn v9 3/4] Clone packets to all port chassis

2022-05-25 Thread 0-day Robot
Bleep bloop. Greetings Ihar Hrachyshka, 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. build: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./ovn -I ./include -I ./lib

[ovs-dev] [PATCH ovn v9 2/4] Support LSP:options:requested-chassis as a list

2022-05-25 Thread Ihar Hrachyshka
When the option is set to a comma separated list of chassis names, OVN will attempt to bind the port at any number of other locations in addition to the main chassis. This is useful in live migration scenarios where it's important to prepare the environment for workloads to move to, avoiding

[ovs-dev] [PATCH ovn v9 3/4] Clone packets to all port chassis

2022-05-25 Thread Ihar Hrachyshka
When multiple chassis are set in requested-chassis, port binding is configured in multiple cluster locations. In case of live migration scenario, only one of the locations run a workload at a particular point in time. Yet, it's expected that the workload may switch to running at an additional

[ovs-dev] [PATCH ovn v9 4/4] Implement RARP activation strategy for ports

2022-05-25 Thread Ihar Hrachyshka
When options:activation-strategy is set to "rarp" for LSP, when used in combination with multiple chassis names listed in options:requested-chassis, additional chassis will install special flows that would block all ingress and egress traffic for the port until a special activation event happens.

[ovs-dev] [PATCH ovn v9 1/4] Update port-up on main chassis only

2022-05-25 Thread Ihar Hrachyshka
In a future patch, there will be a scenario where the same port has attachments at multiple (specifically, 2) chassis, so make sure that 'up' property is updated by the main chassis only. Acked-by: Numan Siddique Signed-off-by: Ihar Hrachyshka --- controller/binding.c| 9 ++---

[ovs-dev] [PATCH ovn v9 0/4] Support multiple requested-chassis

2022-05-25 Thread Ihar Hrachyshka
Hi, this is a rebase plus a number of issues handled in RARP activation patch, that is also now included in the series. There are still several outstanding issues with the last, RARP activation, patch that need to be addressed. The rest of the series should be ready to merge and is independent

Re: [ovs-dev] [PATCH ovn v6 5/5] Implement RARP activation strategy for ports

2022-05-25 Thread Ihar Hrachyshka
I'm sending another version of the series with some of your comments handled (plus rebase), while others are still pending clarifications. See below. On Fri, May 13, 2022 at 2:37 AM Han Zhou wrote: > > > > On Thu, May 5, 2022 at 6:38 AM Ihar Hrachyshka wrote: > > > > When

Re: [ovs-dev] [PATCH v7 2/4] mfex_avx512: Calculate miniflow_bits at compile time.

2022-05-25 Thread Amber, Kumar
Hi Harry, > -Original Message- > From: Van Haaren, Harry > Sent: Wednesday, May 25, 2022 8:00 PM > To: Amber, Kumar ; ovs-dev@openvswitch.org > Cc: echau...@redhat.com; ktray...@redhat.com; i.maxim...@ovn.org; > Ferriter, Cian ; Stokes, Ian ; > david.march...@redhat.com;

[ovs-dev] [PATCHv3 ovn] ovn-controller: Allow configuration of tunnel DF bits

2022-05-25 Thread Jochen Friedrich via dev
Add ovn-encap-df_default configuration option to set df_default on OVN tunnels. Signed-off-by: Jochen Friedrich --- controller/encaps.c | 8 controller/ovn-controller.8.xml | 7 +++ 2 files changed, 15 insertions(+) diff --git a/controller/encaps.c

Re: [ovs-dev] [PATCH] dpcls: revert subtable-lookup-prio-get name change

2022-05-25 Thread Van Haaren, Harry
> -Original Message- > From: Ilya Maximets > Sent: Wednesday, May 25, 2022 4:33 PM > To: Eelco Chaudron ; Van Haaren, Harry > > Cc: i.maxim...@ovn.org; ovs-dev@openvswitch.org; Stokes, Ian > ; Amber, Kumar > Subject: Re: [PATCH] dpcls: revert subtable-lookup-prio-get name change > > On

Re: [ovs-dev] [PATCH v3 5/5] tests: Add check_pkt_len action test to system-offload-traffic.

2022-05-25 Thread Aaron Conole
Eelco Chaudron writes: > On 17 May 2022, at 17:09, Phelan, Michael wrote: > >>> -Original Message- >>> From: Aaron Conole >>> Sent: Tuesday 17 May 2022 15:38 >>> To: Eelco Chaudron >>> Cc: 0-day Robot ; d...@openvswitch.org; Phelan, Michael >>> >>> Subject: Re: [ovs-dev] [PATCH v3

Re: [ovs-dev] [PATCH v5] tests/mfex: Improve pcap script for mfex tests.

2022-05-25 Thread Amber, Kumar
Hi Cian, Eelco Thanks for the suggestions. Replies inline. > -Original Message- > From: Ferriter, Cian > Sent: Wednesday, May 25, 2022 9:09 PM > To: Eelco Chaudron ; Amber, Kumar > > Cc: ovs-dev@openvswitch.org; i.maxim...@ovn.org; Stokes, Ian > ; Van Haaren, Harry > Subject: RE:

Re: [ovs-dev] [PATCH v5] tests/mfex: Improve pcap script for mfex tests.

2022-05-25 Thread Ferriter, Cian
> >>> diff --git a/tests/system-dpdk.at b/tests/system-dpdk.at index > >>> 7d2715c4a..ac83e5a57 100644 > >>> --- a/tests/system-dpdk.at > >>> +++ b/tests/system-dpdk.at > >>> @@ -226,17 +226,19 @@ dnl > >>> -- > >>> > >>>

Re: [ovs-dev] [PATCH] dpcls: revert subtable-lookup-prio-get name change

2022-05-25 Thread Ilya Maximets
On 5/25/22 16:32, Eelco Chaudron wrote: > > > On 25 May 2022, at 16:10, Harry van Haaren wrote: > >> This commit reverts the name-change that was done (prio->info). >> The change breaks a user visible ovs-appctl command, resulting in >> breakage of tools/scripts/user-expectation outside of the

Re: [ovs-dev] [PATCH] dpcls: revert subtable-lookup-prio-get name change

2022-05-25 Thread Stokes, Ian
> On 25 May 2022, at 16:35, Stokes, Ian wrote: > > >> This commit reverts the name-change that was done (prio->info). > >> The change breaks a user visible ovs-appctl command, resulting in > >> breakage of tools/scripts/user-expectation outside of the OVS repo. > >> > >> This commit changes the

Re: [ovs-dev] [PATCH v3] ofproto/bond: Add knob "all_members_active"

2022-05-25 Thread Christophe Fontaine
On Thu, May 5, 2022 at 12:21 PM Adrian Moreno wrote: > > > > On 4/12/22 13:49, Christophe Fontaine wrote: > > This config param allows the delivery of broadcast and multicast packets > > to the secondary interface of non-lacp bonds, equivalent to the option > > "all_slaves_active" for kernel

Re: [ovs-dev] [PATCH] dpcls: revert subtable-lookup-prio-get name change

2022-05-25 Thread Eelco Chaudron
On 25 May 2022, at 16:35, Stokes, Ian wrote: >> This commit reverts the name-change that was done (prio->info). >> The change breaks a user visible ovs-appctl command, resulting in >> breakage of tools/scripts/user-expectation outside of the OVS repo. >> >> This commit changes the

Re: [ovs-dev] [PATCH] dpcls: revert subtable-lookup-prio-get name change

2022-05-25 Thread Stokes, Ian
> This commit reverts the name-change that was done (prio->info). > The change breaks a user visible ovs-appctl command, resulting in > breakage of tools/scripts/user-expectation outside of the OVS repo. > > This commit changes the documentation, command string, and unit tests > back to the

Re: [ovs-dev] [PATCH] dpcls: revert subtable-lookup-prio-get name change

2022-05-25 Thread Eelco Chaudron
On 25 May 2022, at 16:10, Harry van Haaren wrote: > This commit reverts the name-change that was done (prio->info). > The change breaks a user visible ovs-appctl command, resulting in > breakage of tools/scripts/user-expectation outside of the OVS repo. > > This commit changes the

Re: [ovs-dev] [PATCH v7 4/4] dpif-netdev/mfex: Add ipv6 profile based hashing.

2022-05-25 Thread Van Haaren, Harry
> -Original Message- > From: Amber, Kumar > Sent: Friday, May 6, 2022 6:23 AM > To: ovs-dev@openvswitch.org > Cc: echau...@redhat.com; ktray...@redhat.com; i.maxim...@ovn.org; > Ferriter, Cian ; Stokes, Ian ; > david.march...@redhat.com; f...@sysclose.org; Van Haaren, Harry > ; Amber,

Re: [ovs-dev] [PATCH v7 1/4] mfex_avx512: Calculate pkt offsets at compile time.

2022-05-25 Thread Van Haaren, Harry
> -Original Message- > From: Amber, Kumar > Sent: Friday, May 6, 2022 6:23 AM > To: ovs-dev@openvswitch.org > Cc: echau...@redhat.com; ktray...@redhat.com; i.maxim...@ovn.org; Ferriter, > Cian ; Stokes, Ian ; > david.march...@redhat.com; f...@sysclose.org; Van Haaren, Harry > ; Amber,

Re: [ovs-dev] [PATCH v7 2/4] mfex_avx512: Calculate miniflow_bits at compile time.

2022-05-25 Thread Van Haaren, Harry
> -Original Message- > From: Amber, Kumar > Sent: Friday, May 6, 2022 6:23 AM > To: ovs-dev@openvswitch.org > Cc: echau...@redhat.com; ktray...@redhat.com; i.maxim...@ovn.org; Ferriter, > Cian ; Stokes, Ian ; > david.march...@redhat.com; f...@sysclose.org; Van Haaren, Harry > ; Amber,

[ovs-dev] [PATCH] dpcls: revert subtable-lookup-prio-get name change

2022-05-25 Thread Harry van Haaren
This commit reverts the name-change that was done (prio->info). The change breaks a user visible ovs-appctl command, resulting in breakage of tools/scripts/user-expectation outside of the OVS repo. This commit changes the documentation, command string, and unit tests back to the expected "prio"

Re: [ovs-dev] [RFC PATCH 0/6] Remove OVS kernel driver

2022-05-25 Thread Flavio Leitner
Hi Greg, On Mon, May 23, 2022 at 09:10:36PM +0200, Ilya Maximets wrote: > On 5/19/22 20:04, Gregory Rose wrote: > > > > > > On 4/15/2022 2:42 PM, Greg Rose wrote: > >> It is time to remove support for the OVS kernel driver and push > >> towards use of the upstream Linux openvswitch kernel

Re: [ovs-dev] [ovs-dev v6 3/3] checkpatch.py: add checks for experimental API.

2022-05-25 Thread Peng He
have to work the unit test for ovsrcu_barrier API. will send all the fix in the next version. Eelco Chaudron 于2022年5月25日周三 20:44写道: > > > On 24 May 2022, at 16:29, Peng He wrote: > > > Signed-off-by: Peng He > > Signed-off-by: Peng He > > This patch is making existing test fail: > > 10:

Re: [ovs-dev] [PATCH v5] tests/mfex: Improve pcap script for mfex tests.

2022-05-25 Thread Eelco Chaudron
On 25 May 2022, at 12:59, Amber, Kumar wrote: > Hi Eelco, > > Please find replies inline. > >>> +# Relative path for the pcap file location. >>> path = str(sys.argv[1]) + "/pcap/fuzzy.pcap" >> >> Would it be better to supply the full file name, rather than a fixed file >> name >> and

Re: [ovs-dev] [PATCH v3 5/5] tests: Add check_pkt_len action test to system-offload-traffic.

2022-05-25 Thread Eelco Chaudron
On 17 May 2022, at 17:09, Phelan, Michael wrote: >> -Original Message- >> From: Aaron Conole >> Sent: Tuesday 17 May 2022 15:38 >> To: Eelco Chaudron >> Cc: 0-day Robot ; d...@openvswitch.org; Phelan, Michael >> >> Subject: Re: [ovs-dev] [PATCH v3 5/5] tests: Add check_pkt_len

Re: [ovs-dev] [ovs-dev v6 3/3] checkpatch.py: add checks for experimental API.

2022-05-25 Thread Eelco Chaudron
On 24 May 2022, at 16:29, Peng He wrote: > Signed-off-by: Peng He > Signed-off-by: Peng He This patch is making existing test fail: 10: checkpatch - sign-offs ok 11: checkpatch - parenthesized constructs FAILED (checkpatch.at:27) 12: checkpatch -

Re: [ovs-dev] [PATCH v3] dpif-netdev: ct maxconns config persistence

2022-05-25 Thread Aaron Conole
lic121 writes: > Max allowed userspace dp conntrack entries is configurable with > 'ovs-appctl dpctl/ct-set-maxconns' command. In real scenarios, > this configuration is expected to survive from host reboot, from > ovs service restart. > > Signed-off-by: lic121 > --- Acked-by: Aaron Conole

Re: [ovs-dev] [ovs-dev v6 1/3] ovs-rcu: add rcu_barrier

2022-05-25 Thread Peng He
David Marchand 于2022年5月25日周三 19:27写道: > Title should be: "ovs-rcu: Add ovsrcu_barrier." > > On Wed, May 25, 2022 at 3:36 AM Peng He wrote: > > > > rcu_barrier will block the current thread until all the postponed > > ovsrcu_barrier* > > > rcu job has been finished. it's like the OVS's version

Re: [ovs-dev] [ovs-dev v6 2/3] ofproto-dpif: fix meter use-after-free

2022-05-25 Thread David Marchand
Title should be: "ofproto-dpif: Fix meter use-after-free." On Wed, May 25, 2022 at 3:36 AM Peng He wrote: > > add a rcu_barrier before close_dpif_backer to ensure that Add* > all meters has been freed before id_pool_destory meter's have* > id-pool. > > Signed-off-by: Peng He > Tested-by:

Re: [ovs-dev] [ovs-dev v6 1/3] ovs-rcu: add rcu_barrier

2022-05-25 Thread David Marchand
Title should be: "ovs-rcu: Add ovsrcu_barrier." On Wed, May 25, 2022 at 3:36 AM Peng He wrote: > > rcu_barrier will block the current thread until all the postponed ovsrcu_barrier* > rcu job has been finished. it's like the OVS's version of > the kernel rcu_barrier() It's like a OVS version

[ovs-dev] [PATCH v2 1/1] netdev-dpdk: Delay vhost mempool creation.

2022-05-25 Thread Kevin Traynor
Currently mempools for vhost are being assigned before the vhost device is added. In some cases this may be just reusing an existing mempool but in others it can require creation of a mempool. For multi-NUMA, the NUMA info of the vhost port is not known until a device is added to the port, so on

[ovs-dev] [PATCH v2 0/1] Delayed vhost mempool creation.

2022-05-25 Thread Kevin Traynor
V2: - Also implement delayed vhost mempool creation/reuse for single-NUMA - Added David's RvB, as minor code change from v1 and David had preference for common single/multi NUMA behaviour V1 only operated for multi-NUMA, as potentially having to create a mempool and then recreate it on a

Re: [ovs-dev] [PATCH v5] tests/mfex: Improve pcap script for mfex tests.

2022-05-25 Thread Amber, Kumar
Hi Eelco, Please find replies inline. > > +# Relative path for the pcap file location. > > path = str(sys.argv[1]) + "/pcap/fuzzy.pcap" > > Would it be better to supply the full file name, rather than a fixed file name > and directory being concatenated? > Sure, would make the script usable

Re: [ovs-dev] [PATCH v5] tests/mfex: Improve pcap script for mfex tests.

2022-05-25 Thread Eelco Chaudron
On 24 May 2022, at 14:10, Kumar Amber wrote: > The mfex pcap generation script is improved for varied length > traffic and also removes the hard coded mfex_pcap and instead uses > the script itself to generate complex traffic patterns for testing. > > Signed-off-by: Kumar Amber > Acked-by:

Re: [ovs-dev] [ovs-discuss] Commit 355fef6f2 seems to break connectivity in my setup

2022-05-25 Thread Frode Nordahl
On Tue, May 24, 2022 at 1:32 PM Ilya Maximets wrote: > > On 5/24/22 12:54, Frode Nordahl wrote: > > On Mon, May 23, 2022 at 3:49 PM Ilya Maximets wrote: > >> > >> On 5/21/22 12:49, Frode Nordahl wrote: > >>> On Thu, May 19, 2022 at 3:39 PM Frode Nordahl > >>> wrote: > > On Sat, May

[ovs-dev] [PATCH ovn v2 2/2] binding.c: Make sure that localport is removed from local datapath

2022-05-25 Thread Ales Musil
When localport is removed from NB, and it is the last port remaining on the host, it is not part of local datapath anymore. Which can cause troubles when there is recompute happening in between the removal from NB and the removal of interface from host. The localport would stay in lport_ids set,

[ovs-dev] [PATCH ovn v2 1/2] physical.c: Move localport remote output flow definition

2022-05-25 Thread Ales Musil
The localport should always delegate traffic locally, move the definition into consider_port_binding as the physical_run is not evaluated during I-P. Reported-at: https://bugzilla.redhat.com/2076604 Signed-off-by: Ales Musil --- v2: Rebase on newer main --- controller/physical.c | 44

[ovs-dev] [PATCH ovn v2 0/2] This patch series fixes two issues with localport.

2022-05-25 Thread Ales Musil
The first one being that the table 37 flow is not populated on I-P updates and is being left behind on removal of localport. The second one is removal of localport from controller sets, not being removed prevent the flows to be created for newly acquired localport. --- v2: Rebase on newer main

Re: [ovs-dev] [PATCH ovn 1/2] physical.c: Move localport remote output flow definition

2022-05-25 Thread Ales Musil
On Tue, May 24, 2022 at 6:41 PM Numan Siddique wrote: > On Mon, May 23, 2022 at 4:46 AM Ales Musil wrote: > > > > The localport should always delegate traffic locally, > > move the definition into consider_port_binding as > > the physical_run is not evaluated during I-P. > > > > Reported-at: