Re: [ovs-dev] [PATCH ovn v5 09/14] northd: Use objdep mgr for lport to lflow references.

2023-08-18 Thread Numan Siddique
On Fri, Aug 18, 2023 at 2:33 PM Numan Siddique wrote: > > On Fri, Aug 18, 2023 at 11:38 AM Han Zhou wrote: > > > > On Wed, Aug 9, 2023 at 9:38 AM wrote: > > > > > > From: Numan Siddique > > > > > Thanks Numan for the enhancement. > > > > > Instead of maintaing the lport to lflow references

[ovs-dev] [PATCH v3 2/2] netdev-tc-offload: Add IPIP/GRE protocols to offload in ip rewrite

2023-08-18 Thread Faicker Mo via dev
The warning message is |1|tc(handler4)|WARN|can't offload rewrite of IP/IPV6 with ip_proto: X. IPIP and GRE only need the checksum recalculation of the IP header if the IP header is rewritten. Fixes: d6118e628988 ("netdev-tc-offloads: Verify csum flags on dump from tc") Signed-off-by:

[ovs-dev] [PATCH v3 0/2] Add more protocols to offload in ip rewrite

2023-08-18 Thread Faicker Mo via dev
v3: - add test case for 1/2. - more verbose commit message. v2: - seperated into two commits. - add the specific protocols to offload in ip rewrite. Faicker Mo (2): netdev-tc-offload: Add csum offload of IGMP/UDPLITE/SCTP in ip rewrite netdev-tc-offload: Add IPIP/GRE protocols to

[ovs-dev] [PATCH v3 1/2] netdev-tc-offload: Add csum offload of IGMP/UDPLITE/SCTP in ip rewrite

2023-08-18 Thread Faicker Mo via dev
When the IP header is rewritten like NAT or ttl/tos changed, the csum of IP header need recalculation. The UDPLITE checksum needs recalculation if src or dst changed in IP header. The tc-csum action is for this. Signed-off-by: Faicker Mo --- lib/tc.c | 7 ++-

[ovs-dev] [PATCH 1/1] tests: Add clang-analyzer-results to gitignore.

2023-08-18 Thread Nobuhiro MIKI
Fixes: 30b79363b967 ("Makefile.am: Add clang static analysis support") Signed-off-by: Nobuhiro MIKI --- tests/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/.gitignore b/tests/.gitignore index 83b1cb3b489e..3a8c45975645 100644 --- a/tests/.gitignore +++ b/tests/.gitignore

Re: [ovs-dev] [PATCH ovn v6 15/16] northd: Move router ports SB PB options sync to sync_to_sb_pb node.

2023-08-18 Thread 0-day Robot
Bleep bloop. Greetings Numan Siddique, 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 #229 FILE: northd/northd.c:4796: /* XXX

Re: [ovs-dev] [PATCH ovn v6 09/16] northd: Use objdep mgr for lport to lflow references.

2023-08-18 Thread 0-day Robot
Bleep bloop. Greetings Numan Siddique, 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 has non-spaces leading whitespace WARNING: Line has trailing whitespace #3073

Re: [ovs-dev] [PATCH ovn v5 09/14] northd: Use objdep mgr for lport to lflow references.

2023-08-18 Thread Numan Siddique
On Fri, Aug 18, 2023 at 11:38 AM Han Zhou wrote: > > On Wed, Aug 9, 2023 at 9:38 AM wrote: > > > > From: Numan Siddique > > > Thanks Numan for the enhancement. > > > Instead of maintaing the lport to lflow references using > > 'struct lflow_ref_list', this patch makes use of the existing > >

[ovs-dev] [PATCH ovn v6 16/16] northd: Handle NAT changes for a logical router incrementally.

2023-08-18 Thread numans
From: Numan Siddique This patch adds the I-P support for any changes to router NATs in both the northd and lflow engine nodes. Signed-off-by: Numan Siddique --- northd/en-lflow.c| 10 + northd/en-northd.c | 30 ++- northd/en-northd.h | 4 +- northd/inc-proc-northd.c |

[ovs-dev] [PATCH ovn v6 15/16] northd: Move router ports SB PB options sync to sync_to_sb_pb node.

2023-08-18 Thread numans
From: Numan Siddique With this we don't fall back to recompute of northd engine node when SB port bindings (of router ports) updates from SB ovsdb-server are received. Signed-off-by: Numan Siddique --- northd/en-northd.c | 2 +- northd/en-sync-sb.c | 3 +- northd/northd.c | 197

[ovs-dev] [PATCH ovn v6 14/16] northd: Handle load balancer change in lflow engine.

2023-08-18 Thread numans
From: Numan Siddique If a load balancer or load balancer group is changed, then the lflow engine handles these changes incrementally. This is possible because we maintain lb to lflow references (using objdep_mgr) for each lb in the 'struct lb_datapaths'. northd engine adds the changed load

[ovs-dev] [PATCH ovn v6 13/16] northd: Refactor the northd change tracking.

2023-08-18 Thread numans
From: Numan Siddique Previous commits made of objdep_mgr to store the lflow references for ovn_port, ovn_datapath and load balancers. This patch refactors the northd change tracking to make it easier to pass the northd changed data to lflow engine for lflow generation. In order to

[ovs-dev] [PATCH ovn v6 12/16] Reference lb related lflows for lports in a separate objdep mgr type.

2023-08-18 Thread numans
From: Numan Siddique This will help in handling the lflows for logical switch ports or router ports incrementally. Upcoming patch will make use of this separtion. Signed-off-by: Numan Siddique --- northd/northd.c | 333 1 file changed, 221

[ovs-dev] [PATCH ovn v6 10/16] northd: Fix LSP incremental processing if dhcp options are set.

2023-08-18 Thread numans
From: Numan Siddique The flows to allow DHCP response from ovn-controller were missing if a logical VIF port had dhcp v4/v6 options set and were handled incrementally. Fixes: 8bbd67891f68 ("northd: Incremental processing of VIF additions in 'lflow' node.") Signed-off-by: Numan Siddique ---

[ovs-dev] [PATCH ovn v6 08/16] northd: Handle load balancer/group changes for a logical router.

2023-08-18 Thread numans
From: Numan Siddique When a logical router gets updated due to load balancer or load balancer groups changes, it is now incrementally handled first in 'lb_data' engine node similar to how logical switch changes are handled. The tracking data of 'lb_data' is updated similarly so that northd

[ovs-dev] [PATCH ovn v6 07/16] northd: Sync SB Port bindings NAT column in a separate engine node.

2023-08-18 Thread numans
From: Numan Siddique A new engine node 'sync_to_sb_pb' is added within 'sync_to_sb' node to sync NAT column of Port bindings table. This separation is required in order to add load balancer group I-P handling in 'northd' engine node (which is handled in the next commit). 'sync_to_sb_pb' engine

[ovs-dev] [PATCH ovn v6 06/16] northd: Handle load balancer group changes for a logical switch.

2023-08-18 Thread numans
From: Numan Siddique For every a given load balancer group 'A', northd engine data maintains a bitmap of datapaths associated to this lb group. So when lb group 'A' gets associated to a logical switch 's1', the bitmap index of 's1' is set in its bitmap. In order to handle the load balancer

[ovs-dev] [PATCH ovn v6 05/16] northd: Handle load balancer changes for a logical switch.

2023-08-18 Thread numans
From: Numan Siddique 'lb_data' engine node now also handles logical switch changes. Its data maintains ls to lb related information. i.e if a logical switch sw0 has lb1, lb2 and lb3 associated then it stores this info in its data. And when a new load balancer lb4 is associated to it, it stores

[ovs-dev] [PATCH ovn v6 04/16] northd: Refactor the 'northd' node code which handles logical switch changes.

2023-08-18 Thread numans
From: Numan Siddique This will help in handling other column changes of a logical switch. Acked-by: Han Zhou Signed-off-by: Numan Siddique --- northd/en-lb-data.c | 2 +- northd/northd.c | 356 ++-- 2 files changed, 209 insertions(+), 149

[ovs-dev] [PATCH ovn v6 03/16] northd: Add initial I-P for load balancer and load balancer groups

2023-08-18 Thread numans
From: Numan Siddique Any changes to load balancers and load balancer groups are handled incrementally in the newly added 'lb_data' engine node. 'lb_data' is input to 'northd' node and the handler - northd_lb_data_handler in 'northd' node handles the changes. If a load balancer or load balancer

[ovs-dev] [PATCH ovn v6 02/16] northd: Add a new engine node - lb_data.

2023-08-18 Thread numans
From: Numan Siddique This patch separates out the 'lbs' and 'lb_groups' from the 'northd' engine node data into a new engine node 'lb_data'. This new node becomes an input to the 'northd' node. This makes handling the NB load balancer and load balancer group changes easier. Prior to this

[ovs-dev] [PATCH ovn v6 01/16] northd I-P: Sync SB load balancers in a separate engine node.

2023-08-18 Thread numans
From: Numan Siddique Similar to the commit [1], a new sub-engine node "sync_to_sb_lb" is added with-in the "sync_to_sb" to sync the SB load balancers. Its main input nodes are "northd" (to access the "lbs" hmap built by this node) and "sb_load_balancer" to access the SB load balancer.

[ovs-dev] [PATCH ovn v6 00/16] northd: I-P for load balancer and lb groups

2023-08-18 Thread numans
From: Numan Siddique This patch series adds the support to handle load balancer and load balancer group changes incrementally in the "northd" engine node and "lflow" engine node. Changes to logical switches and router's load balancer and load balancer group columns are also handled

Re: [ovs-dev] [PATCH v2 1/2] netdev-tc-offload: Add csum offload of protocols IGMP/UDPLITE/SCTP

2023-08-18 Thread Faicker Mo via dev
No, I'll add a test case with this patch 1/2. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH ovn v5 09/14] northd: Use objdep mgr for lport to lflow references.

2023-08-18 Thread Han Zhou
On Wed, Aug 9, 2023 at 9:38 AM wrote: > > From: Numan Siddique > Thanks Numan for the enhancement. > Instead of maintaing the lport to lflow references using > 'struct lflow_ref_list', this patch makes use of the existing > objdep APIs. Since objdep_mgr is not thread safe, an instance > of