Re: [ovs-dev] [PATCH 3/3] netdev-dpdk: Fix tunnel type check during Tx offload preparation.

2024-03-15 Thread Ilya Maximets
On 3/14/24 15:17, Mike Pattrick wrote: > On Wed, Mar 13, 2024 at 1:29 PM Ilya Maximets wrote: >> >> Tunnel types are not flags, but 4-bit fields, so checking them with >> a simple binary 'and' is incorrect and may produce false-positive >> matches. >> >> While the current implementation is

Re: [ovs-dev] [PATCH v2] ovs-tcpdump: Fix cleanup mirror failed with twice fatal signals.

2024-03-15 Thread Ilya Maximets
On 2/23/24 04:37, Daniel Ding wrote: > After running ovs-tcpdump and inputs multiple CTRL+C, the program will > raise the following exception. > > Error in atexit._run_exitfuncs: > Traceback (most recent call last): > File "/usr/bin/ovs-tcpdump", line 421, in cleanup_mirror > ovsdb =

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Don't mirror packets that aren't modified.

2024-03-15 Thread Ilya Maximets
On 3/12/24 18:37, Mike Pattrick wrote: > Previously OVS reset the mirror contents when a packet is modified in > such a way that the packets contents changes. However, this change > incorrectly reset that mirror context when only metadata changes as > well. > > Now we check for all metadata

Re: [ovs-dev] [PATCH] ofproto: Fix mod flow table name not to take effect.

2024-03-15 Thread Ilya Maximets
On 3/16/24 01:44, Ilya Maximets wrote: > On 3/8/24 09:32, Yuhao zhou via dev wrote: >> From: "zhouyuhao.philozhou" >> >> When mod a flow table's name with table's prefix name, there >> will be no change. Because when check whether the new and old >> name are the same, only compare the length of

Re: [ovs-dev] [PATCH] ofproto: Fix mod flow table name not to take effect.

2024-03-15 Thread Ilya Maximets
On 3/8/24 09:32, Yuhao zhou via dev wrote: > From: "zhouyuhao.philozhou" > > When mod a flow table's name with table's prefix name, there > will be no change. Because when check whether the new and old > name are the same, only compare the length of the new name. > > Case: > table 10: "good"

Re: [ovs-dev] [PATCH] ofproto-dpif-xlate: Fix continuations with associated metering.

2024-03-15 Thread Ilya Maximets
On 3/7/24 18:25, Aaron Conole wrote: > Open vSwitch supports the ability to invoke a controller action by way > of a sample action with a specified meter. In the normal case, this > sample action is transparently generated during xlate processing. However, > when executing via a continuation,

[ovs-dev] [PATCH 4/5] ovsdb: raft: Fix assertion when 1-node cluster looses leadership.

2024-03-15 Thread Ilya Maximets
Some of the failure tests can make a single-node cluster to loose leadership. In this case the next raft_run() will trigger election with a pre-vore enabled. This is causing an assertion when this server attempts to vote for itself. Fix that by not using pre-voting if the is only one server. A

[ovs-dev] [PATCH 5/5] ovsdb: raft: Fix inability to join after leadership change round trip.

2024-03-15 Thread Ilya Maximets
Consider the following sequence of events: 1. Cluster with 2 nodes - A and B. A is a leader. 2. C connects to A and sends a join request. 3. A sends an append request to C. C is in CATCHUP phase for A. 4. A looses leadership to B. Sends join failure notification to C. 5. C sends append

[ovs-dev] [PATCH 3/5] ovsdb: raft: Fix permanent joining state on a cluster member.

2024-03-15 Thread Ilya Maximets
Consider the following chain of events: 1. Have a cluster with 2 members - A and B. A is a leader. 2. C connects to A, sends a request to join the cluster. 3. A catches up C, creates an update for the 'servers' list and sends it to B and C to apply. This entry is not committed yet. 4.

[ovs-dev] [PATCH 0/5] ovsdb: raft: Fixes for cluster joining state.

2024-03-15 Thread Ilya Maximets
Issues discovered while working on: https://github.com/ovn-org/ovn/issues/235 Ilya Maximets (5): ovsdb: raft: Randomize leadership transfer. ovsdb: raft: Fix time intervals for multitasking while joining. ovsdb: raft: Fix permanent joining state on a cluster member. ovsdb: raft: Fix

[ovs-dev] [PATCH 2/5] ovsdb: raft: Fix time intervals for multitasking while joining.

2024-03-15 Thread Ilya Maximets
While joining, ovsdb-server may not wake up for a duration of a join timer, which is 1 second and is by default 3x larger than a heartbeat timer. This is causing unnecessary warnings from the cooperative multitasking module that thinks that we missed the heartbeat time by a lot. Use join timer

[ovs-dev] [PATCH 1/5] ovsdb: raft: Randomize leadership transfer.

2024-03-15 Thread Ilya Maximets
Each cluster member typically always transfers leadership to the same other member, which is the first in their list of servers. This may result in two servers in a 3-node cluster to transfer leadership to each other and never to the third one. Randomizing the selection to make the load more

[ovs-dev] [PATCH v12 3/6] dpif: Support atomic_bool field type.

2024-03-15 Thread Eric Garver
The next commit will convert a dp feature from bool to atomic_bool. As such we have to add support to the macros and functions. We must pass by reference instead of pass by value because all the atomic operations require a reference. Acked-by: Eelco Chaudron Signed-off-by: Eric Garver ---

[ovs-dev] [PATCH v12 5/6] tests: system-traffic: Add coverage for drop action.

2024-03-15 Thread Eric Garver
Exercise the drop action in the datapath. This specific tests triggers an xlate_error. For the kernel datapath skb drop reasons can then be seen while this test runs. # perf trace -e skb:kfree_skb --filter="reason >= 0x3" 0.000 ping/1275884 skb:kfree_skb(skbaddr: 0x8acd76546000, \

[ovs-dev] [PATCH v12 6/6] tests: system-offload-traffic: Verify re-probe of drop action.

2024-03-15 Thread Eric Garver
Verify that the explicit drop action is re-probed if the hw-offload flag is changed. Signed-off-by: Eric Garver --- tests/system-offloads-traffic.at | 12 1 file changed, 12 insertions(+) diff --git a/tests/system-offloads-traffic.at b/tests/system-offloads-traffic.at index

[ovs-dev] [PATCH v12 0/6] dpif: probe support for OVS_ACTION_ATTR_DROP

2024-03-15 Thread Eric Garver
v12: - new patch to verify re-probe - don't mention hw offload in the probe - changed log message to not mention HW offload v11: - move netdev and flow API check to lib - tweaked log message - use atomic store instead of cmpx - copy odp in copy_support() v10: - fix a sparse error

[ovs-dev] [PATCH v12 4/6] dpif: Probe support for OVS_ACTION_ATTR_DROP.

2024-03-15 Thread Eric Garver
Kernel support has been added for this action. As such, we need to probe the datapath for support. Signed-off-by: Eric Garver --- include/linux/openvswitch.h | 2 +- lib/dpif.c | 6 ++- lib/dpif.h | 2 +- ofproto/ofproto-dpif.c | 78

[ovs-dev] [PATCH v12 2/6] dpif: Make get_datapath_cap() access support by pointer.

2024-03-15 Thread Eric Garver
This avoids copying the support struct onto the stack. Acked-by: Eelco Chaudron Signed-off-by: Eric Garver --- ofproto/ofproto-dpif.c | 59 +- 1 file changed, 29 insertions(+), 30 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c

[ovs-dev] [PATCH v12 1/6] dpif: Stub out unimplemented action OVS_ACTION_ATTR_DEC_TTL.

2024-03-15 Thread Eric Garver
This is prep for adding a different OVS_ACTION_ATTR_ enum value. This action, OVS_ACTION_ATTR_DEC_TTL, is not actually implemented. However, to make -Werror happy we must add a case to all existing switches. Acked-by: Eelco Chaudron Signed-off-by: Eric Garver --- include/linux/openvswitch.h |

Re: [ovs-dev] [PATCH ovn] northd: Fix NAT configuration with --add-route option for gw-router.

2024-03-15 Thread Mark Michelson
Thanks for this Lorenzo, looks good to me. Acked-by: Mark Michelson On 2/16/24 09:23, Lorenzo Bianconi wrote: Enable automatic static route configuration when NAT is created with --ad-route option for gw routers similar to what is currently supported for distributed routers with

Re: [ovs-dev] [PATCH ovn] northd: Fix pmtud for non routed traffic.

2024-03-15 Thread Mark Michelson
Hi Lorenzo, Thanks for the fix. Acked-by: Mark Michelson When this is merged, the following should also be folded in: --- diff --git a/northd/ovn-northd.8.xml b/northd/ovn-northd.8.xml index 17b414144..0cf1c2bb5 100644 --- a/northd/ovn-northd.8.xml +++ b/northd/ovn-northd.8.xml @@ -338,7

[ovs-dev] [PATCH] route-table: Avoid routes from non-standard routing tables.

2024-03-15 Thread Ilya Maximets
Currently, ovs-vswitchd is subscribed to all the routing changes in the kernel. On each change, it marks the internal routing table cache as invalid, then resets it and dumps all the routes from the kernel from scratch. The reason for that is kernel routing updates not being reliable in a sense

[ovs-dev] [PATCH ovn] tests: Ignore transaction errors in MAC Binding.

2024-03-15 Thread Xavier Simonart
Fixes: 65f9f010b426 ("tests: Check unit tests logs for errors.") Signed-off-by: Xavier Simonart --- tests/ovn-macros.at | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ovn-macros.at b/tests/ovn-macros.at index 3410afb74..5c69facd2 100644 --- a/tests/ovn-macros.at +++

Re: [ovs-dev] [PATCH ovn v3] tests: Remove table numbers from "action parsing".

2024-03-15 Thread 0-day Robot
Bleep bloop. Greetings Xavier Simonart, 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 (tests/ovn.at). error: could not build fake

[ovs-dev] [PATCH ovn v3 2/2] tests: Remove table numbers from "action parsing".

2024-03-15 Thread Xavier Simonart
This patch uses the recently introduced macros defining openflow table numbers. Signed-off-by: Xavier Simonart --- v2: - Handled Ales' comments (i.e. fix few remaining hard-coded numbers) - Rebase on origin/main v3: - Rebase on origin/main --- tests/ovn-macros.at | 4 + tests/ovn.at

[ovs-dev] [PATCH ovn v3 1/2] tests: Make "action parsing" support expansion.

2024-03-15 Thread Xavier Simonart
There are only two changes: - The AT_DATA content is not double quoted between square brackets. - All '[' have been replaced by '[[' and all ']' by ']]' This patch will be used in subsequent patch to remove hard-coded table numbers. Signed-off-by: Xavier Simonart --- v2: - Rebase on origin/main

Re: [ovs-dev] [PATCH ovn v3] tests: Remove table numbers from "action parsing".

2024-03-15 Thread Xavier Simonart
Hi Mark Sorry, drop this patch - missing the 1/2. Will resend. Thanks Xavier On Fri, Mar 15, 2024 at 7:03 PM Xavier Simonart wrote: > This patch uses the recently introduced macros defining openflow table > numbers. > > Signed-off-by: Xavier Simonart > > --- > v2: - Handled Ales' comments

[ovs-dev] [PATCH ovn v3] tests: Remove table numbers from "action parsing".

2024-03-15 Thread Xavier Simonart
This patch uses the recently introduced macros defining openflow table numbers. Signed-off-by: Xavier Simonart --- v2: - Handled Ales' comments (i.e. fix few remaining hard-coded numbers) - Rebase on origin/main v3: - Rebase on origin/main --- tests/ovn-macros.at | 4 + tests/ovn.at

Re: [ovs-dev] [PATCH ovn v5 3/4] utilities: Add ovn-debug binary tool.

2024-03-15 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 lacks whitespace around operator #283 FILE: utilities/ovn-debug.c:87:

Re: [ovs-dev] [PATCH ovn v5 2/4] checkpatch: Add rule to check for hardcoded table numbers.

2024-03-15 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: Use of hardcoded table= or resubmit=(,) is discouraged in tests. Consider using MACRO

Re: [ovs-dev] [PATCH v11 4/5] dpif: Probe support for OVS_ACTION_ATTR_DROP.

2024-03-15 Thread Eric Garver
On Fri, Mar 15, 2024 at 12:37:54PM -0400, Eric Garver wrote: > On Fri, Mar 15, 2024 at 04:55:50PM +0100, Eelco Chaudron wrote: > > > > > > On 11 Mar 2024, at 18:51, Eric Garver wrote: > > > > > Kernel support has been added for this action. As such, we need to probe > > > the datapath for

Re: [ovs-dev] [PATCH ovn] tests: Fix flaky "lr multiple gw ports" test.

2024-03-15 Thread Mark Michelson
On 2/13/24 02:15, Ales Musil wrote: On Mon, Feb 12, 2024 at 5:27 PM Xavier Simonart wrote: The test was confused as 192.168.0.1 was configured for DR-S3 port (configured as a gateway-chassis hv4) as well as the encap_ip for hv1. Hence packets which were supposed to be sent towards hv1 got

[ovs-dev] [PATCH ovn v5 4/4] tests: Use the ovn-debug binary to determine table numbers.

2024-03-15 Thread Ales Musil
Use the ovn-debug commands to determine OpenFlow table numbers based on stage name. With this there is no need to hardcode them and it should be future proof for stage shifts/updates. Signed-off-by: Ales Musil Acked-by: Mark Michelson --- v5: Rebase on top of main. v4: Rebase on top of main.

[ovs-dev] [PATCH ovn v5 3/4] utilities: Add ovn-debug binary tool.

2024-03-15 Thread Ales Musil
Add ovn-debug binary tool that can be extended with commands that might be useful for tests/debugging of OVN environment. Currently the tool supports only two commands: 1) "lflow-stage-to-ltable STAGE_NAME" that converts stage name into logical flow table id. 2) "lflow-stage-to-oftable

[ovs-dev] [PATCH ovn v5 2/4] checkpatch: Add rule to check for hardcoded table numbers.

2024-03-15 Thread Ales Musil
To avoid issues with hardcoded table numbers in future add rule into check patch. The rule is only warning because there are still legitimate use cases and not everything can be abstracted. Signed-off-by: Ales Musil Acked-by: Mark Michelson --- v5: Rebase on top of main. v4: Rebase on top of

[ovs-dev] [PATCH ovn v5 1/4] tests: Remove hardcoded numbers from comments.

2024-03-15 Thread Ales Musil
There were some comments left with hardcoded numbers. Even if it wouldn't break any test table shift/change it would just leave the comment outdated. Signed-off-by: Ales Musil Acked-by: Mark Michelson --- v5: Rebase on top of main. v4: Rebase on top of main. Align the northd.at comment with

[ovs-dev] [PATCH ovn v5 0/4] Remove most of the hardcoded table numbers

2024-03-15 Thread Ales Musil
This series has the remaing patches that weren't yet accepted with addition that fixes table numbers in comments. A lot of tests were relying on exact table numbers for flow comparison either logical or OpenFlows. In order to take care of table references into OpenFlow through logical flow

Re: [ovs-dev] [PATCH ovn] pinctrl: Fix prefix delegation.

2024-03-15 Thread Mark Michelson
On 2/13/24 02:21, Ales Musil wrote: On Mon, Feb 12, 2024 at 5:12 PM Xavier Simonart wrote: Prefix delegation suffered from potential issues: - An unicast SOLICIT message was sometimes sent instead of a RENEW. - Pînctrl was sometimes not waking up as expected when timers such as T1 or T2

Re: [ovs-dev] [PATCH ovn v4 4/4] tests: Use the ovn-debug binary to determine table numbers.

2024-03-15 Thread Mark Michelson
Thanks Ales, Acked-by: Mark Michelson This is probably not a huge surprise given how long it has been, but this series no longer applies cleanly to main. Can you please post a rebased version of the series as a v5? Thanks! On 2/12/24 10:55, Ales Musil wrote: Use the ovn-debug commands to

Re: [ovs-dev] [PATCH v11 4/5] dpif: Probe support for OVS_ACTION_ATTR_DROP.

2024-03-15 Thread Eelco Chaudron
On 15 Mar 2024, at 17:37, Eric Garver wrote: > On Fri, Mar 15, 2024 at 04:55:50PM +0100, Eelco Chaudron wrote: >> >> >> On 11 Mar 2024, at 18:51, Eric Garver wrote: >> >>> Kernel support has been added for this action. As such, we need to probe >>> the datapath for support. >>> >>>

Re: [ovs-dev] [PATCH v11 4/5] dpif: Probe support for OVS_ACTION_ATTR_DROP.

2024-03-15 Thread Eric Garver
On Fri, Mar 15, 2024 at 04:55:50PM +0100, Eelco Chaudron wrote: > > > On 11 Mar 2024, at 18:51, Eric Garver wrote: > > > Kernel support has been added for this action. As such, we need to probe > > the datapath for support. > > > > Signed-off-by: Eric Garver > > Thanks for submitting the

Re: [ovs-dev] [PATCH v11 5/5] tests: system-traffic: Add coverage for drop action.

2024-03-15 Thread Eelco Chaudron
On 11 Mar 2024, at 18:51, Eric Garver wrote: > Exercise the drop action in the datapath. This specific tests triggers > an xlate_error. > > For the kernel datapath skb drop reasons can then be seen while this > test runs. > > # perf trace -e skb:kfree_skb --filter="reason >= 0x3" >

Re: [ovs-dev] [PATCH ovn v2 2/2] tests: Remove table numbers from "action parsing".

2024-03-15 Thread Mark Michelson
I tried to apply this series just now, but patch 2 fails to apply due to recent changes in tests/ovn.at in OVN main. Xavier, could you rebase and post a v3 of this series? I will merge this as soon as possible afterwards. On 2/13/24 02:39, Ales Musil wrote: On Mon, Feb 12, 2024 at 3:48 PM

Re: [ovs-dev] [PATCH v11 4/5] dpif: Probe support for OVS_ACTION_ATTR_DROP.

2024-03-15 Thread Eelco Chaudron
On 11 Mar 2024, at 18:51, Eric Garver wrote: > Kernel support has been added for this action. As such, we need to probe > the datapath for support. > > Signed-off-by: Eric Garver Thanks for submitting the changes requested. Some comments below. Cheers, Eelco > --- >

Re: [ovs-dev] [PATCH ovn v3] controller: Avoid double controller action for ICMP errors.

2024-03-15 Thread Mark Michelson
On 2/12/24 07:00, Dumitru Ceara wrote: On 2/6/24 10:15, Ales Musil wrote: The fields that are not directly supported by OvS were encoded via additional controller action that changed the required value. This was most notably needed for ICMP need frag messages. Encode the field value loads as

Re: [ovs-dev] [PATCH v11 3/5] dpif: Support atomic_bool field type.

2024-03-15 Thread Eelco Chaudron
On 11 Mar 2024, at 18:51, Eric Garver wrote: > The next commit will convert a dp feature from bool to atomic_bool. As > such we have to add support to the macros and functions. We must pass by > reference instead of pass by value because all the atomic operations > require a reference. > >

[ovs-dev] [PATCH ovn] ovn-ic: Avoid igmp/mld traffic flooding.

2024-03-15 Thread Lorenzo Bianconi
Avoid recirculating IGMP/MLD packets more than one time from stage ls_out_pre_lb in the egress pipeline to ovn table 37 in order to avoid packet looping for ovn-ic deployment. Acked-by: Mohammad Heib Signed-off-by: Lorenzo Bianconi --- controller/pinctrl.c | 2 ++

Re: [ovs-dev] [PATCH v11 2/5] dpif: Make get_datapath_cap() access support by pointer.

2024-03-15 Thread Eelco Chaudron
On 11 Mar 2024, at 18:51, Eric Garver wrote: > This avoids copying the support struct onto the stack. > > Signed-off-by: Eric Garver > --- This change looks good to me. Thanks for catching this. //Eelco Acked-by: Eelco Chaudron ___ dev mailing

Re: [ovs-dev] [RFC ovn] ovn-ic: avoid igmp/mld traffic flooding

2024-03-15 Thread Lorenzo Bianconi
> Hi Lorenzo, Hi Mohammad, > > i have applied and tested this change and i can confirm that it fixes the > issue. > if you please can rebase on top of the main. > > > Acked-by: Mohammad Heib thx for reviewing the patch. I will post v1 soon. Regards, Lorenzo > > On Thu, Oct 19, 2023 at

Re: [ovs-dev] [PATCH v11 1/5] dpif: Stub out unimplemented action OVS_ACTION_ATTR_DEC_TTL.

2024-03-15 Thread Eelco Chaudron
On 11 Mar 2024, at 18:51, Eric Garver wrote: > This is prep for adding a different OVS_ACTION_ATTR_ enum value. This > action, OVS_ACTION_ATTR_DEC_TTL, is not actually implemented. However, > to make -Werror happy we must add a case to all existing switches. > > Signed-off-by: Eric Garver

Re: [ovs-dev] [PATCH ovn v3] controller: Release container lport when releasing parent port.

2024-03-15 Thread Numan Siddique
On Wed, Feb 28, 2024 at 5:43 AM Mohammad Heib wrote: > > Currently if the user sets the container parent_port:requested-chassis > option after the VIF/CIF is bonded to the chassis, this will migrate > the VIF/CIF flows to the new chassis but will still have the > container flows installed in the

Re: [ovs-dev] [PATCH v2 12/12] documentation: Document ovs-flowviz.

2024-03-15 Thread Eelco Chaudron
On 13 Mar 2024, at 10:03, Adrian Moreno wrote: > Add a man page for ovs-flowviz as well as a topic page with some more > detailed examples. > > Signed-off-by: Adrian Moreno Thank you for including this documentation. It provides a nice insight into how to use the ovs-flowviz tool. I have a

Re: [ovs-dev] [PATCH v2 03/12] python: ovs: flowviz: Add console formatting.

2024-03-15 Thread Adrian Moreno
On 3/15/24 12:29, Eelco Chaudron wrote: On 13 Mar 2024, at 10:03, Adrian Moreno wrote: Add a flow formatting framework and one implementation for console printing using rich. The flow formatting framework is a simple set of classes that can be used to write different flow formatting

Re: [ovs-dev] [PATCH v2 03/12] python: ovs: flowviz: Add console formatting.

2024-03-15 Thread Eelco Chaudron
On 13 Mar 2024, at 10:03, Adrian Moreno wrote: > Add a flow formatting framework and one implementation for console > printing using rich. > > The flow formatting framework is a simple set of classes that can be > used to write different flow formatting implementations. It supports > styles to

Re: [ovs-dev] [PATCH ovn 2/2] IC: Tansit switch don't flood mcast traffic to router ports if matches igmp group.

2024-03-15 Thread 0-day Robot
Bleep bloop. Greetings Mohammad Heib, 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., 82. Subject: IC: Tansit switch don't

[ovs-dev] [PATCH ovn 2/2] IC: Tansit switch don't flood mcast traffic to router ports if matches igmp group.

2024-03-15 Thread Mohammad Heib
Crrently ovn transit switch forward mcast traffic that match an igmp group to all ports participating in this group and to all router ports that are connected to this TS switch and have mcast_flood enabled. The above behavior can lead to packet duplicate if we have a VM in a specific AZ that

[ovs-dev] [PATCH ovn 1/2] northd: Don't skip transit switch LSP when creating mcast groups.

2024-03-15 Thread Mohammad Heib
Currently when we enable IGMP on OVN-IC cluster with two or more AZs and one vm from AZ1 send IGMP report, northd will create the following multicast_group on each AZ: AZ1: 1. multicast_group that forward the mcast traffic from LS1 to the VM. 2. multicast_group that forward the mcast traffic

Re: [ovs-dev] [RFC ovn] ovn-ic: avoid igmp/mld traffic flooding

2024-03-15 Thread Mohammad Heib
Hi Lorenzo, i have applied and tested this change and i can confirm that it fixes the issue. if you please can rebase on top of the main. Acked-by: Mohammad Heib On Thu, Oct 19, 2023 at 7:47 PM Lorenzo Bianconi < lorenzo.bianc...@redhat.com> wrote: > Avoid recirculating IGMP/MLD packets more

Re: [ovs-dev] [PATCH v7 6/6] appctl: Add tests for unsupported output formats.

2024-03-15 Thread Eelco Chaudron
On 18 Jan 2024, at 16:26, jm...@redhat.com wrote: > From: Jakob Meng > > Signed-off-by: Jakob Meng Some comments below, you might want to consider adding a commit message. > --- > tests/pmd.at| 5 + > tests/unixctl-py.at | 7 +++ > 2 files changed, 12 insertions(+) > > diff

Re: [ovs-dev] [PATCH v7 5/6] appctl: Add option '--pretty' for pretty-printing JSON output.

2024-03-15 Thread Eelco Chaudron
On 18 Jan 2024, at 16:26, jm...@redhat.com wrote: > From: Jakob Meng > > Signed-off-by: Jakob Meng Some comments below and you might want to add a commit message to this patch. //Eelco > --- > NEWS | 3 +++ > lib/unixctl.c | 4 ++-- > lib/unixctl.h | 1

Re: [ovs-dev] [PATCH v7 4/6] ofproto: Add JSON output for 'dpif/show' command.

2024-03-15 Thread Eelco Chaudron
On 18 Jan 2024, at 16:26, jm...@redhat.com wrote: > From: Jakob Meng > > The 'dpif/show' command now supports machine-readable JSON output in > addition to the plain-text output for humans. An example would be: > > ovs-appctl --format json dpif/show > > Reported-at:

Re: [ovs-dev] [PATCH v7 2/6] python: Add global option for JSON output to Python tools.

2024-03-15 Thread Eelco Chaudron
> From: Jakob Meng > > This patch introduces support for different output formats to the > Python code, as did the previous commit for ovs-xxx tools like > 'ovs-appctl --format json dpif/show'. > In particular, tests/appctl.py gains a global option '-f,--format' > which allows users to request

Re: [ovs-dev] [PATCH v7 1/6] Add global option for JSON output to ovs-appctl.

2024-03-15 Thread Eelco Chaudron
On 18 Jan 2024, at 16:26, jm...@redhat.com wrote: > From: Jakob Meng > > For monitoring systems such as Prometheus it would be beneficial if > OVS would expose statistics in a machine-readable format. > > This patch introduces support for different output formats to ovs-xxx > tools. They gain a

[ovs-dev] [PATCH v3] ofproto-dpif-upcall: Try lock for udpif_key map during sweep.

2024-03-15 Thread LIU Yulong
A potential race condition happened with the following 3 threads: * PMD thread replaced the old_ukey and transitioned the state to UKEY_DELETED. * RCU thread is freeing the old_ukey mutex. * While the revalidator thread is trying to lock the old_ukey mutex. We added some timestamp to udpif_key

Re: [ovs-dev] [FYI][PATCH] tracing/treewide: Remove second parameter of __assign_str()

2024-03-15 Thread Alison Schofield
On Fri, Feb 23, 2024 at 12:56:34PM -0500, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > [ >This is a treewide change. I will likely re-create this patch again in >the second week of the merge window of v6.9 and submit it then. Hoping >to keep the conflicts that it will

Re: [ovs-dev] [PATCH] ofproto-dpif-upcall: Try lock for umap iteration during sweep.

2024-03-15 Thread Eelco Chaudron
Hi, Thanks for submitting a patch and researching the problem. I haven't had the chance to review your patch yet, as I still need to dedicate some time to review it, based on the complexity. However, if you've sent a new version in the meantime, please make sure to label it with a version

[ovs-dev] [PATCH] ofproto-dpif-upcall: Try lock for umap iteration during sweep.

2024-03-15 Thread LIU Yulong
A potential race condition happened with the following 3 threads: * PMD thread replaced the old_ukey and transitioned the state to UKEY_DELETED. * RCU thread is freeing the old_ukey mutex. * While the revalidator thread is trying to lock the old_ukey mutex. Then vswitchd process aborts at the