Re: [ovs-dev] [PATCH v9 3/3] userspace: Add Generic Segmentation Offloading.

2023-12-01 Thread Ilya Maximets
On 11/22/23 11:16, Simon Horman wrote: > On Tue, Nov 21, 2023 at 02:26:52PM -0500, 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

Re: [ovs-dev] [PATCH v2] ofp-ct: Return error for unknown property in CT flush.

2023-12-01 Thread Ilya Maximets
On 11/30/23 08:31, Ales Musil wrote: > CT flush extension would silently ignore unknown properties, > which could lead to potential surprise by deleting more than > it was requested to. Return error on unknown property instead > to avoid this problem and at the same time inform the user > that the

Re: [ovs-dev] [PATCH] netdev-offload-tc: Fix offload of tunnel key tp_src.

2023-12-01 Thread Ilya Maximets
On 11/20/23 11:42, Vladislav Odintsov wrote: > Hi Ilya, > >> On 15 Nov 2023, at 21:51, Ilya Maximets wrote: >> >> On 11/15/23 14:13, Vladislav Odintsov wrote: >>> Hi Ilya, >>> On 13 Nov 2023, at 22:25, Ilya Maximets wrote: On 11/13/23 13:13, Eelco Chaudron wrote: > >

[ovs-dev] [PATCH v2] netdev-offload-tc: Fix offload of tunnel key tp_src.

2023-12-01 Thread Ilya Maximets
There is no TCA_TUNNEL_KEY_ENC_SRC_PORT in the kernel, so the offload should not be attempted if OVS_TUNNEL_KEY_ATTR_TP_SRC is requested by OVS. Current code just ignores the attribute in the tunnel(set()) action leading to a flow mismatch and potential incorrect datapath behavior:

[ovs-dev] [PATCH] tunnel: Do not carry source port from a previous tunnel.

2023-12-01 Thread Ilya Maximets
If a packet is received from a UDP tunnel, it has a source port populated in the tunnel metadata. This field cannot be read or changed with OpenFlow or the tunnel configuration. However, while sending this packet to a different tunnel, the value remains in the metadata and is being sent to the

[ovs-dev] [RFC PATCH 10/10] python: ovs: flowviz: Add datapath graph format.

2023-12-01 Thread Adrian Moreno
Graph view leverages the tree format (specially the tree-based filtering) and uses graphviz library to build a visual graph of the datapath in graphviz format. Conntrack zones are shown in random colors to help visualize connection tracking interdependencies. An html flag builds an HTML page

Re: [ovs-dev] [PATCH 0/7] python: Miscelaneous flow parsing fixes

2023-12-01 Thread Ilya Maximets
On 12/1/23 18:49, Adrian Moreno wrote: > this series contains some miscelaneous fixes in the flow parsing > library. > > Adrian Moreno (7): > python: Do not compare types, use 'insinstance'. > python: ovs: flow: Fix typo in n_packets. > python: ovs: flow: Add sample to nested actions. >

[ovs-dev] [RFC PATCH 09/10] python: ovs: flowviz: Add datapath html format.

2023-12-01 Thread Adrian Moreno
Using the existing FlowTree and HTMLFormatter, create an HTML tree visualization that also supports collapsing and expanding entire flow trees and subtrees. Signed-off-by: Adrian Moreno --- python/automake.mk | 1 + python/ovs/flowviz/odp/cli.py | 10 ++

[ovs-dev] [RFC PATCH 07/10] python: ovs: flowviz: Add OpenFlow logical view.

2023-12-01 Thread Adrian Moreno
This view is interesting for debugging the logical pipeline. It arranges the flows in "logical" groups (not to be confused with OVN's Logical_Flows). A logical group of flows is a set of flows that: - Have the same table number and priority - Match on the same fields (regardless of the value they

[ovs-dev] [RFC PATCH 04/10] python: ovs: flowviz: Add default config file.

2023-12-01 Thread Adrian Moreno
It has two basic styles defined: "dark" and "light" intended for dark and light terminals. Signed-off-by: Adrian Moreno --- python/automake.mk | 5 +- python/ovs/flowviz/ovs-flowviz.conf | 94 + 2 files changed, 98 insertions(+), 1 deletion(-)

[ovs-dev] [RFC PATCH 08/10] python: ovs: flowviz: Add Openflow cookie format.

2023-12-01 Thread Adrian Moreno
When anaylizing OVN issues, it might be useful to see what OpenFlow flows were generated from each logical flow. In order to make it simpler to visualize this, add a cookie format that simply sorts the flows first by cookie, then by table. Signed-off-by: Adrian Moreno ---

[ovs-dev] [RFC PATCH 01/10] python: ovs: Add flowviz scheleton.

2023-12-01 Thread Adrian Moreno
Add a new python package (just the scheleton for now) to hold a flow visualization tool based on the flow parsing library. Signed-off-by: Adrian Moreno --- python/automake.mk | 12 +++-- python/ovs/flowviz/__init__.py | 0 python/ovs/flowviz/main.py | 41

[ovs-dev] [RFC PATCH 02/10] python: ovs: flowviz: Add file processing infra.

2023-12-01 Thread Adrian Moreno
process.py contains a useful base class that processes files odp.py and ofp.py: contain datapath and openflow subcommand definitions as well as the first formatting option: json. Also, this patch adds basic filtering support. Examples: $ ovs-ofctl dump-flows br-int | ovs-flowviz openflow json $

[ovs-dev] [RFC PATCH 03/10] python: ovs: flowviz: Add console formatting.

2023-12-01 Thread Adrian Moreno
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 be described by any class, highlighting and config-file based

[ovs-dev] [RFC PATCH 06/10] python: ovs: flowviz: Add datapath tree format.

2023-12-01 Thread Adrian Moreno
Datapath flows can be arranged into a "tree"-like structure based on recirculation ids, e.g: recirc(0),eth(...),ipv4(...) actions=ct,recirc(0x42) \-> recirc(42),ct_state(0/0),eth(...),ipv4(...) actions=1 \-> recirc(42),ct_state(1/0),eth(...),ipv4(...) actions=userspace(...) This patch

[ovs-dev] [RFC PATCH 05/10] python: ovs: flowviz: Add html formatting.

2023-12-01 Thread Adrian Moreno
Add a HTML Formatter and use it to print OpenFlow flows in an HTML list with table links. Signed-off-by: Adrian Moreno --- python/automake.mk | 3 +- python/ovs/flowviz/html_format.py | 136 python/ovs/flowviz/ofp/cli.py | 10 ++

[ovs-dev] [RFC PATCH 00/10] Add flow visualization utility

2023-12-01 Thread Adrian Moreno
This series introduces a python utility called ovs-flowviz. The goal of this utility is to read both datapath and Openflow flows (using the flow library already available) and print them in different formats and styles to make it easier to understand them and troubleshoot issues. The formats are

Re: [ovs-dev] [PATCH 7/7] python: ovs: flow: Add meter_id to controller.

2023-12-01 Thread 0-day Robot
Bleep bloop. Greetings Adrian Moreno, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error,

Re: [ovs-dev] [PATCH 6/7] python: ovs: flow: Make check_pkt_len action a list.

2023-12-01 Thread 0-day Robot
Bleep bloop. Greetings Adrian Moreno, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error,

Re: [ovs-dev] [PATCH 5/7] python: ovs: flow: Add idle_age to openflow flows.

2023-12-01 Thread 0-day Robot
Bleep bloop. Greetings Adrian Moreno, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error,

Re: [ovs-dev] [PATCH 4/7] python: ovs: flow: Add dp hash and meter actions.

2023-12-01 Thread 0-day Robot
Bleep bloop. Greetings Adrian Moreno, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error,

Re: [ovs-dev] [PATCH 3/7] python: ovs: flow: Add sample to nested actions.

2023-12-01 Thread 0-day Robot
Bleep bloop. Greetings Adrian Moreno, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error,

Re: [ovs-dev] [PATCH 2/7] python: ovs: flow: Fix typo in n_packets.

2023-12-01 Thread 0-day Robot
Bleep bloop. Greetings Adrian Moreno, 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. Patch skipped due to previous failure. Please check this out. If you feel there has been an error,

Re: [ovs-dev] [PATCH 1/7] python: Do not compare types, use 'insinstance'.

2023-12-01 Thread 0-day Robot
Bleep bloop. Greetings Adrian Moreno, 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: Failed to merge in the changes. hint: Use 'git am --show-current-patch=diff' to see the

[ovs-dev] [PATCH 7/7] python: ovs: flow: Add meter_id to controller.

2023-12-01 Thread Adrian Moreno
Add missing option to controller action. Signed-off-by: Adrian Moreno --- python/ovs/flow/ofp_act.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/ovs/flow/ofp_act.py b/python/ovs/flow/ofp_act.py index c540443ea..2c85076a3 100644 --- a/python/ovs/flow/ofp_act.py +++

[ovs-dev] [PATCH 6/7] python: ovs: flow: Make check_pkt_len action a list.

2023-12-01 Thread Adrian Moreno
In general, most actions must be lists since the keys can be repeated. Signed-off-by: Adrian Moreno --- python/ovs/flow/odp.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/ovs/flow/odp.py b/python/ovs/flow/odp.py index 46697a1bc..7d9b165d4 100644 ---

[ovs-dev] [PATCH 5/7] python: ovs: flow: Add idle_age to openflow flows.

2023-12-01 Thread Adrian Moreno
Add missing key. Signed-off-by: Adrian Moreno --- python/ovs/flow/ofp.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/ovs/flow/ofp.py b/python/ovs/flow/ofp.py index f1a720d75..3d3226c91 100644 --- a/python/ovs/flow/ofp.py +++ b/python/ovs/flow/ofp.py @@ -176,6 +176,7 @@ class

[ovs-dev] [PATCH 4/7] python: ovs: flow: Add dp hash and meter actions.

2023-12-01 Thread Adrian Moreno
Add missing actions. Signed-off-by: Adrian Moreno --- python/ovs/flow/odp.py | 9 + 1 file changed, 9 insertions(+) diff --git a/python/ovs/flow/odp.py b/python/ovs/flow/odp.py index ef7e5d6b8..46697a1bc 100644 --- a/python/ovs/flow/odp.py +++ b/python/ovs/flow/odp.py @@ -204,6 +204,7

[ovs-dev] [PATCH 3/7] python: ovs: flow: Add sample to nested actions.

2023-12-01 Thread Adrian Moreno
Add the sample action to those that can be called in nested actions (such as clone). Signed-off-by: Adrian Moreno --- python/ovs/flow/odp.py | 29 +++-- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/python/ovs/flow/odp.py b/python/ovs/flow/odp.py index

[ovs-dev] [PATCH 1/7] python: Do not compare types, use 'insinstance'.

2023-12-01 Thread Adrian Moreno
Recent versions of pycodestyle (used by flake8) flag these type comparisons accoding to flake rule E721 [1]. Comply with rule by replacing type comparisons with 'isinstance()'. https://www.flake8rules.com/rules/E721.html Signed-off-by: Adrian Moreno --- python/ovs/jsonrpc.py | 2 +-

[ovs-dev] [PATCH 2/7] python: ovs: flow: Fix typo in n_packets.

2023-12-01 Thread Adrian Moreno
They key used in flows is "n_packets". Signed-off-by: Adrian Moreno --- python/ovs/flow/ofp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ovs/flow/ofp.py b/python/ovs/flow/ofp.py index 20231fd9f..f1a720d75 100644 --- a/python/ovs/flow/ofp.py +++

[ovs-dev] [PATCH 0/7] python: Miscelaneous flow parsing fixes

2023-12-01 Thread Adrian Moreno
this series contains some miscelaneous fixes in the flow parsing library. Adrian Moreno (7): python: Do not compare types, use 'insinstance'. python: ovs: flow: Fix typo in n_packets. python: ovs: flow: Add sample to nested actions. python: ovs: flow: Add dp hash and meter actions.

Re: [ovs-dev] [PATCH ovn v2] controller: fix group_table and meter_table allocation

2023-12-01 Thread Xavier Simonart
Hi Dumitru Thanks for the detailed review. All comments make sense to me. Thanks Xavier On Thu, Nov 30, 2023 at 9:13 PM Dumitru Ceara wrote: > On 11/30/23 17:53, Xavier Simonart wrote: > > The group_table and meter_table are initialized in ovn-controller, with > n_ids = 0. > > Then they are

Re: [ovs-dev] [PATCH v5] system-dpdk: Test with mlx5 devices.

2023-12-01 Thread David Marchand
On Tue, Nov 28, 2023 at 9:40 AM David Marchand wrote: > > On Wed, Nov 22, 2023 at 5:34 PM David Marchand > wrote: > > > > The DPDK unit test only runs if vfio or igb_uio kernel modules are loaded: > > on systems with only mlx5, this test is always skipped. > > > > Besides, the test tries to grab

[ovs-dev] [PATCH v2] system-dpdk: Wait for MTU changes to be applied.

2023-12-01 Thread David Marchand
Because a DPDK backed netdev configuration is done in an asynchronous way, and a MTU change requires a reconfiguration, directly checking ovs-vswitchd logs or querying ovsdb for the interface current MTU value is racy. Add synchronisation points on the interface MTU value in ovsdb as it ensures

Re: [ovs-dev] [PATCH OVN 2/2] tests: Move SCTP test from kernel only to general OVN system tests.

2023-12-01 Thread Simon Horman
On Thu, Nov 30, 2023 at 03:18:22PM +0100, Eelco Chaudron wrote: > This patch moves the SCTP test from the kernel only, to the general OVN > system tests, enabling its execution in both the system-userspace and > system-dpdk test scenarios. > > Signed-off-by: Eelco Chaudron Acked-by: Simon

Re: [ovs-dev] [PATCH OVN 1/2] tests: Remove 'protoinfo' from the conntrack entries for SCTP tests.

2023-12-01 Thread Simon Horman
On Thu, Nov 30, 2023 at 03:18:03PM +0100, Eelco Chaudron wrote: > The userspace lacks the supplementary protocol state machine for SCTP, > resulting in the absence of 'protoinfo' fields. Nevertheless, this SCTP > test doesn't need this feature, making the check for it unnecessary. > >

Re: [ovs-dev] [PATCH] cirrus: Update from FreeBSD 12 to 14.

2023-12-01 Thread Ilya Maximets
On 11/29/23 19:16, Eelco Chaudron wrote: > > > On 29 Nov 2023, at 17:42, Ilya Maximets wrote: > >> FreeBSD 12 is going EOL in December [1] and will likley become > > nit: likely > >> unavailable shortly after. FreeBSD 14 was released recently, >> so replacing the old with the new. >> >> [1]

Re: [ovs-dev] [PATCH] system-dpdk: Wait for MTU changes to be applied.

2023-12-01 Thread Ilya Maximets
On 12/1/23 15:14, David Marchand wrote: > Because a DPDK backed netdev configuration is done in an asynchronous way, > and a MTU change requires a reconfiguration, directly checking > ovs-vswitchd logs or querying ovsdb for the interface current MTU value > is racy. > > $

Re: [ovs-dev] [PATCH] system-dpdk: Wait for MTU changes to be applied.

2023-12-01 Thread 0-day Robot
Bleep bloop. Greetings David Marchand, 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: patch fragment without header at line 4: @@ -1,2 +1,2 @@ error: could not build fake

[ovs-dev] [PATCH] system-dpdk: Wait for MTU changes to be applied.

2023-12-01 Thread David Marchand
Because a DPDK backed netdev configuration is done in an asynchronous way, and a MTU change requires a reconfiguration, directly checking ovs-vswitchd logs or querying ovsdb for the interface current MTU value is racy. $ DPDK_DIR=/root/ovs/dpdk-dir/v22.11 make -C build check-dpdk \

Re: [ovs-dev] [PATCH] appveyor: Use previous image to unblock CI.

2023-12-01 Thread Ilya Maximets
On 11/30/23 22:34, Alin Serdean wrote: > Thank you for fixing this! > > Acked-by: Alin Gabriel Serdean > > >> On 30 Nov 2023, at 22:12, Ilya Maximets wrote: >> >> It may take a few days for AppVeyor to fix their broken >> images [1], use the 'Previous' version of the image for now >> to

Re: [ovs-dev] [ovs-dev, v3, 2/3] conntrack: Use helpers from committed connections.

2023-12-01 Thread Aaron Conole
Viacheslav Galaktionov writes: > On 11/27/23 19:33, Aaron Conole wrote: >> Viacheslav Galaktionov writes: >> >>> On 11/22/23 16:14, Aaron Conole wrote: > Viacheslav Galaktionov writes: > > When a packet hits a flow rule without an explicitly specified helper, > OvS has to rely

Re: [ovs-dev] [PATCH v2] reconnect: Set defaults from environment variables.

2023-12-01 Thread Eelco Chaudron
On 8 Nov 2023, at 11:07, Felix Huettner via dev wrote: > this exposes the old constants regarding min backoff, max backoff and This > probe interval using environment variables. In case previously users > wanted to tune the probe interval for all connections this required > setting this

Re: [ovs-dev] [PATCH v5 2/2] mcast-snooping: Add group protocol to mdb/show output.

2023-12-01 Thread Eelco Chaudron
On 30 Nov 2023, at 16:38, Mohammad Heib wrote: > Expose the mcast group protocol via the mdb/show > command output. Thanks for adding this additional patch to help debugging. I have some comments regarding the output format, see below. Cheers. Eelco > Signed-off-by: Mohammad Heib > --- >

Re: [ovs-dev] [PATCH v5 1/2] mcast-snooping: Store IGMP/MLD protocol version.

2023-12-01 Thread Eelco Chaudron
On 30 Nov 2023, at 16:38, Mohammad Heib wrote: > Store igmp/mld protocol version into the > mcast_group internally, the multicast snooping feature > is used by many OVS consumers and those consumers heavily rely > on the OVS implementation to manage/deal with mcast groups, > some of those