Re: [ovs-dev] [PATCH ovn v2 1/3] northd: Introduce ECMP_Nexthop table in SB db.

2024-05-29 Thread Han Zhou
On Wed, Mar 13, 2024 at 12:00 AM Lorenzo Bianconi < lorenzo.bianc...@redhat.com> wrote: > > Introduce ECMP_Nexthop table in the SB db in order to track active > ecmp-symmetric-reply connections and flush stale ones. > > Signed-off-by: Lorenzo Bianconi > --- > northd/en-northd.c | 4 +++ >

Re: [ovs-dev] [PATCH ovn] Do not reply on unicast arps for targets.

2024-05-23 Thread Han Zhou
ff:ff:ff:ff to the IPv6 NS responder flows, which is obviously wrong. Please ignore my feedback for the current patch and we can address IPv6 in a separate patch if it is required. Thanks, Han > On Wed, May 22, 2024 at 12:16 AM Han Zhou wrote: >> >> >> >> On Tue, May 21, 2024 a

Re: [ovs-dev] [PATCH ovn] Do not reply on unicast arps for targets.

2024-05-21 Thread Han Zhou
On Tue, May 21, 2024 at 9:56 PM Numan Siddique wrote: > > On Mon, May 20, 2024 at 1:47 AM Vasyl Saienko wrote: > > > > Thanks for feedback Numan. > > > > On Wed, May 15, 2024 at 12:04 AM Numan Siddique wrote: > > > > > On Mon, May 13, 2024 at 9:00 AM Dumitru Ceara wrote: > > > > > > > > On

Re: [ovs-dev] [PATCH ovn v3] northd: Fix an issue wrt mac binding aging.

2024-05-21 Thread Han Zhou
On Mon, May 20, 2024 at 5:32 PM Indrajitt Valsaraj < indrajitt.valsa...@nutanix.com> wrote: > > Issue: > In case of a Logical_Router without mac_binding_age_threshold set or a > Logical_Router with an incorrectly formatted mac_binding_threshold > option, entries were not being purged from the Mac

Re: [ovs-dev] [PATCH ovn v2] northd: Fix an issue wrt mac binding aging.

2024-05-17 Thread Han Zhou
On Thu, May 16, 2024 at 10:09 PM Indrajitt Valsaraj < indrajitt.valsa...@nutanix.com> wrote: > > Issue: > In case of a Logical_Router without mac_binding_age_threshold set or a > Logical_Router with an incorrectly formatted mac_binding_threshold > option, entries were not being purged from the Mac

Re: [ovs-dev] [PATCH ovn] northd: Add bfd and bfd_consumer nodes to I-P engine.

2024-05-16 Thread Han Zhou
On Thu, May 2, 2024 at 8:22 AM Lorenzo Bianconi wrote: > > Introduce bfd and bfd_consumer nodes to northd I-P engine to track bfd > connections and northd static_route/policy_route changes. > > Reported-at: https://issues.redhat.com/browse/FDP-600 > Signed-off-by: Lorenzo Bianconi Hi Lorenzo,

Re: [ovs-dev] [PATCH ovn v4] controller: Track individual address set constants.

2024-05-10 Thread Han Zhou
On Fri, May 10, 2024 at 9:23 AM Numan Siddique wrote: > > On Fri, May 10, 2024 at 2:37 AM Han Zhou wrote: > > > > On Thu, May 9, 2024 at 10:32 AM Mark Michelson wrote: > > > > > > On 5/7/24 02:12, Han Zhou wrote: > > > > > >

Re: [ovs-dev] [PATCH ovn v4] controller: Track individual address set constants.

2024-05-10 Thread Han Zhou
On Thu, May 9, 2024 at 10:32 AM Mark Michelson wrote: > > On 5/7/24 02:12, Han Zhou wrote: > > > > > > On Mon, May 6, 2024 at 10:37 PM Ales Musil > <mailto:amu...@redhat.com>> wrote: > > > > > > > > > > > >

Re: [ovs-dev] [PATCH ovn v4] controller: Track individual address set constants.

2024-05-07 Thread Han Zhou
On Mon, May 6, 2024 at 10:37 PM Ales Musil wrote: > > > > On Mon, May 6, 2024 at 8:41 PM Han Zhou wrote: >> >> >> >> On Thu, May 2, 2024 at 10:35 PM Ales Musil wrote: >> > >> > On Thu, May 2, 2024 at 6:23 PM Han Zhou wrote: >> > &

Re: [ovs-dev] [PATCH ovn v4] controller: Track individual address set constants.

2024-05-06 Thread Han Zhou
On Thu, May 2, 2024 at 10:35 PM Ales Musil wrote: > > On Thu, May 2, 2024 at 6:23 PM Han Zhou wrote: > > > > > > > > On Thu, May 2, 2024 at 6:29 AM Ales Musil wrote: > > > > > > Instead of tracking address set per struct expr_constant_set tr

Re: [ovs-dev] [PATCH ovn] northd: Fix the comment about route priorities.

2024-05-02 Thread Han Zhou
On Thu, May 2, 2024 at 9:01 AM Numan Siddique wrote: > > On Mon, Apr 22, 2024 at 2:41 AM Han Zhou wrote: > > > > The current comments are obviously conflicting. Fixing it according the > > current implementation - static route overrides src-ip route. > > > >

Re: [ovs-dev] [PATCH ovn v4] controller: Track individual address set constants.

2024-05-02 Thread Han Zhou
On Thu, May 2, 2024 at 6:29 AM Ales Musil wrote: > > Instead of tracking address set per struct expr_constant_set track it > per individual struct expr_constant. This allows more fine grained > control for I-P processing of address sets in controller. It helps with > scenarios like matching on

Re: [ovs-dev] [PATCH ovn v3] controller: Track individual address set constants.

2024-05-01 Thread Han Zhou
On Tue, Apr 30, 2024 at 9:56 AM Ales Musil wrote: > > Instead of tracking address set per struct expr_constant_set track it > per individual struct expr_constant. This allows more fine grained > control for I-P processing of address sets in controller. It helps with > scenarios like matching on

Re: [ovs-dev] [PATCH ovn v2] controller: Track individual address set constants.

2024-04-29 Thread Han Zhou
On Fri, Apr 12, 2024 at 8:20 AM Ales Musil wrote: > > Instead of tracking address set per struct expr_constant_set track it > per individual struct expr_constant. This allows more fine grained > control for I-P processing of address sets in controller. It helps with > scenarios like matching on

Re: [ovs-dev] [Patch ovn] docs: Typo. Remove duplicated "to" in ovn-sb.xml.

2024-04-23 Thread Han Zhou
On Tue, Apr 23, 2024 at 2:50 AM Martin Kalcok wrote: > > Signed-off-by: Martin Kalcok > --- > ovn-sb.xml | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/ovn-sb.xml b/ovn-sb.xml > index f9fb6c304..bf4689f12 100644 > --- a/ovn-sb.xml > +++ b/ovn-sb.xml > @@ -1456,7

[ovs-dev] [PATCH ovn] northd: Fix the comment about route priorities.

2024-04-22 Thread Han Zhou
The current comments are obviously conflicting. Fixing it according the current implementation - static route overrides src-ip route. Signed-off-by: Han Zhou --- northd/northd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/northd/northd.c b/northd/northd.c index

Re: [ovs-dev] [PATCH ovn] controller: Remove the ovn-set-local-ip option.

2024-04-22 Thread Han Zhou
ould depend on the old behavior. Thinking it more carefully, for OVN it seems not possible because the ovn-encap-ip used as the local_ip is always the one shared to other chassis through SB DB. So now I think we should be safe to change the default behavior. Acked-by: Han Zhou

Re: [ovs-dev] [ANN] Primary OVS branch renamed as main development branch as main.

2024-04-10 Thread Han Zhou
On Wed, Apr 10, 2024 at 6:52 AM Simon Horman wrote: > > Hi, > > I would like to announce that the primary development branch for OvS > has been renamed main. > > The rename occurred a little earlier today. > > OVS is currently hosted on GitHub. We can expect the following behaviour > after the

Re: [ovs-dev] [PATCH v2] netdev-offload: make netdev-offload-tc work with flow-restore-wait

2024-04-09 Thread Han Zhou
On Thu, Mar 21, 2024 at 10:05 AM Ilya Maximets wrote: > > On 3/14/24 06:23, Han Zhou wrote: > > > > > > On Fri, Apr 22, 2022 at 1:41 AM Eelco Chaudron mailto:echau...@redhat.com>> wrote: > >> > >> > >> > >> On 15 Apr 2022, at 13:

Re: [ovs-dev] [PATCH ovn] ovn-controller.at: Fix flaky test "ofctrl wait before clearing flows".

2024-04-04 Thread Han Zhou
On Thu, Apr 4, 2024 at 10:03 AM Mark Michelson wrote: > > Thanks for the fix, Han. > > Acked-by: Mark Michelson Thanks Mark. Applied to main and backported. Han > > On 4/4/24 02:47, Han Zhou wrote: > > Fixes: bbf2f941965a ("ofctrl: Wait at S_WAIT_BEFORE_CLEA

[ovs-dev] [PATCH ovn] ovn-controller.at: Fix flaky test "ofctrl wait before clearing flows".

2024-04-04 Thread Han Zhou
Fixes: bbf2f941965a ("ofctrl: Wait at S_WAIT_BEFORE_CLEAR only once.") Signed-off-by: Han Zhou --- tests/ovn-controller.at | 11 ++- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/ovn-controller.at b/tests/ovn-controller.at index 3202f0beff46..f2c792c9c

Re: [ovs-dev] [PATCH ovn v2] ofctrl: Wait at S_WAIT_BEFORE_CLEAR only once.

2024-04-03 Thread Han Zhou
On Tue, Apr 2, 2024 at 11:11 PM Han Zhou wrote: > > > > On Tue, Apr 2, 2024 at 10:48 PM Han Zhou wrote: > > > > > > > > On Thu, Mar 28, 2024 at 1:29 PM Mark Michelson wrote: > > > > > > Thanks Han, > > > > > > Acked-by: M

Re: [ovs-dev] [PATCH ovn v2] ofctrl: Wait at S_WAIT_BEFORE_CLEAR only once.

2024-04-03 Thread Han Zhou
On Tue, Apr 2, 2024 at 10:48 PM Han Zhou wrote: > > > > On Thu, Mar 28, 2024 at 1:29 PM Mark Michelson wrote: > > > > Thanks Han, > > > > Acked-by: Mark Michelson > > Thanks Mark. Applied to main. Also backported down to branch-23.06 Han > &

Re: [ovs-dev] [PATCH ovn v2] ofctrl: Wait at S_WAIT_BEFORE_CLEAR only once.

2024-04-02 Thread Han Zhou
On Thu, Mar 28, 2024 at 1:29 PM Mark Michelson wrote: > > Thanks Han, > > Acked-by: Mark Michelson Thanks Mark. Applied to main. Han > > On 3/28/24 02:58, Han Zhou wrote: > > The ovn-ofctrl-wait-before-clear setting is designed to minimize > > downtime during t

Re: [ovs-dev] [PATCH ovn] ofctrl: Wait at S_WAIT_BEFORE_CLEAR only once.

2024-03-28 Thread Han Zhou
On Wed, Mar 20, 2024 at 4:07 PM Han Zhou wrote: > > > > On Mon, Mar 18, 2024 at 11:27 AM Mark Michelson wrote: > > > > Hi Han, > > > > I have a comment below > > > > On 3/5/24 01:27, Han Zhou wrote: > > > The ovn-ofctrl-wait-before-cl

[ovs-dev] [PATCH ovn v2] ofctrl: Wait at S_WAIT_BEFORE_CLEAR only once.

2024-03-28 Thread Han Zhou
educe down time during upgrade.") Signed-off-by: Han Zhou --- v2: Addressed Mark's comments - made test case more reliable. controller/ofctrl.c | 1 - tests/ovn-controller.at | 9 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/controller/ofctrl.c b/controlle

Re: [ovs-dev] [PATCH ovn] controller: Track individual address set constants.

2024-03-27 Thread Han Zhou
On Wed, Mar 27, 2024 at 12:46 AM Ales Musil wrote: > > On Wed, Mar 27, 2024 at 7:14 AM Han Zhou wrote: > > > > > > > On Tue, Mar 19, 2024 at 9:45 AM Ales Musil wrote: > > > > > > > > > > > > On Tue, Mar 19, 2024 at 5:43 PM Ales

Re: [ovs-dev] [PATCH ovn] controller: Track individual address set constants.

2024-03-27 Thread Han Zhou
On Tue, Mar 19, 2024 at 9:45 AM Ales Musil wrote: > > > > On Tue, Mar 19, 2024 at 5:43 PM Ales Musil wrote: >> >> Instead of tracking address set per struct expr_constant_set track it >> per individual struct expr_constant. This allows more fine grained >> control for I-P processing of address

Re: [ovs-dev] [PATCH v2 1/5] ovsdb: raft: Avoid transferring leadership to unavailable servers.

2024-03-26 Thread Han Zhou
other servers that are not behind the majority. */ > +threshold = raft->commit_index; > +} else { > +/* Try any other server. It is safe, because they either have all > + * the append requests queued up for them before the leadership > +

Re: [ovs-dev] [PATCH ovn] controller: Fix ofctrl memory usage underflow.

2024-03-26 Thread Han Zhou
On Wed, Mar 20, 2024 at 12:48 PM Mark Michelson wrote: > > Thanks Ales, looks good to me. > > Acked-by: Mark Michelson > Thanks Ales and Mark. I applied to main and backported down to branch-23.06. Han > On 3/19/24 11:57, Ales Musil wrote: > > The memory usage would be increased for size of

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

2024-03-25 Thread Han Zhou
fter-starting-to-add \ > +| grep -q "engaged"]) > +done > + > +AT_CHECK([ovsdb-server -v -vconsole:off -vsyslog:off \ > + --detach --no-chdir --log-file=s$i.log \ > + --pidfile=s$i.pid --unixctl=s$i \ > + --remote=punix:s$i.ovsdb s$i.db]) > +done > + > +dnl Make sure that all servers joined the cluster. > +for i in $(seq $n); do > +AT_CHECK([ovsdb_client_wait unix:s$i.ovsdb $schema_name connected]) > +done > + > +for i in $(seq $n); do > +OVS_APP_EXIT_AND_WAIT_BY_TARGET([$(pwd)/s$i], [s$i.pid]) > +done > + > AT_CLEANUP > > > -- > 2.43.0 > Thanks Ilya. Looks good to me. Acked-by: Han Zhou ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

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

2024-03-25 Thread Han Zhou
o deal with disruptive server.") > Signed-off-by: Ilya Maximets Thanks for the fix. Acked-by: Han Zhou > --- > ovsdb/raft.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/ovsdb/raft.c b/ovsdb/raft.c > index 237d7ebf5..c41419052 100644 > --

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

2024-03-25 Thread Han Zhou
->data'. */ > raft_run_reconfigure(raft); > +} else if (e->servers && !raft_has_uncommitted_configuration(raft)) { > +struct ovsdb_error *error; > +struct raft_server *s; > +struct hmap servers; > + > +

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

2024-03-25 Thread Han Zhou
raft_reset_ping_timer(raft); > } > > +uint64_t interval = raft->joining > +? 1000 : RAFT_TIMER_THRESHOLD(raft->election_timer); nit: the hardcoded joining timer value 1000 is used at least 3 places, so probably better to define a macro for it. Ac

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

2024-03-25 Thread Han Zhou
On Tue, Mar 19, 2024 at 12:05 AM Felix Huettner via dev < ovs-dev@openvswitch.org> wrote: > > On Mon, Mar 18, 2024 at 05:52:12PM +0100, Ilya Maximets wrote: > > On 3/18/24 17:15, Felix Huettner wrote: > > > On Fri, Mar 15, 2024 at 09:14:49PM +0100, Ilya Maximets wrote: > > >> Each cluster member

Re: [ovs-dev] [PATCH ovn] ofctrl: Wait at S_WAIT_BEFORE_CLEAR only once.

2024-03-20 Thread Han Zhou
On Mon, Mar 18, 2024 at 11:27 AM Mark Michelson wrote: > > Hi Han, > > I have a comment below > > On 3/5/24 01:27, Han Zhou wrote: > > The ovn-ofctrl-wait-before-clear setting is designed to minimize > > downtime during the initial start-up of the ovn-controller.

Re: [ovs-dev] [PATCH ovn] ovn-controller: Fix busy loop when ofctrl is disconnected.

2024-03-20 Thread Han Zhou
On Wed, Mar 20, 2024 at 2:56 AM Dumitru Ceara wrote: > > On 3/20/24 06:41, Han Zhou wrote: > > ovn-controller runs at 100% cpu when OVS exits. This is because the > > ofctrl_run is not called while ofctrl_wait is always called in the main > > loop. Because of the missin

[ovs-dev] [PATCH ovn] ovn-controller: Fix busy loop when ofctrl is disconnected.

2024-03-19 Thread Han Zhou
a chance to run ofctrl_run as long as ofctrl_wait is called. Fixes: 1d6d953bf883 ("controller: Don't artificially limit group and meter IDs to 16bit.") Fixes: 94cbc59dc0f1 ("ovn-controller: Fix use of dangling pointers in I-P runtime_data.") Signed-off-by: Han Zhou ---

Re: [ovs-dev] [PATCH v2] netdev-offload: make netdev-offload-tc work with flow-restore-wait

2024-03-13 Thread Han Zhou
On Fri, Apr 22, 2022 at 1:41 AM Eelco Chaudron wrote: > > > > On 15 Apr 2022, at 13:25, wenx05124...@163.com wrote: > > > From: wenxu > > > > The netdev-offload in tc mode can't work with flow-restore-wait. > > When the vswitchd restart with flow-restore-wait, the tc qdisc > > will be delete in

Re: [ovs-dev] [PATCH] ofproto-dpif: Fix vxlan with different name del/add failed.

2024-03-13 Thread Han Zhou
ayer directly. > + * When a port deleted, the corresponding netdev is also removed from > + * netdev_shash. netdev_get_type_from_name returns NULL in such case. > + * We should try to get type from ofport->netdev. */ nit: this comment is better to be moved to the above

Re: [ovs-dev] [RFC] bridge: Retry tunnel port addition for conflict.

2024-03-10 Thread Han Zhou
On Fri, Mar 8, 2024 at 12:17 AM Tao Liu wrote: > > > On 3/7/24 5:39 AM, Ilya Maximets wrote: > > On 2/27/24 20:14, Han Zhou wrote: > >> For kernel datapath, when a new tunnel port is created in the same > >> transaction in which an old tunnel port with t

[ovs-dev] [PATCH ovn] ofctrl: Wait at S_WAIT_BEFORE_CLEAR only once.

2024-03-04 Thread Han Zhou
educe down time during upgrade.") Signed-off-by: Han Zhou --- controller/ofctrl.c | 1 - tests/ovn-controller.at | 9 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/controller/ofctrl.c b/controller/ofctrl.c index f14cd79a8dbb..0d72ecbaa167 100644 --- a/controlle

Re: [ovs-dev] [PATCH ovn] encaps: Support backward compatibility for tunnel chassis id change.

2024-03-01 Thread Han Zhou
On Fri, Mar 1, 2024 at 2:26 AM Dumitru Ceara wrote: > > On 2/16/24 07:52, Han Zhou wrote: > > In commit 41eefcb2807d, the format of external_ids:ovn-chassis-id for > > tunnels was modified to include the local encapsulation IP. This change > > can lead to the recr

[ovs-dev] [RFC] bridge: Retry tunnel port addition for conflict.

2024-02-27 Thread Han Zhou
pproach to just re-run the bridge_reconfigure() when there are any port creations encountered "File exists" error, which indicates a possible resource conflict may have happened due to a later deleted port, and retry may succeed. Signed-off-by: Han Zhou --- This is RFC because I am not sure i

Re: [ovs-dev] [PATCH ovn] controller: ofctrl: Use index for meter lookups.

2024-02-26 Thread Han Zhou
aintainers. But it is severe enough, IMO. > Thanks Ilya. The fix looks good to me. And I think it is ok to backport, since the change is simple enough. Acked-by: Han Zhou Just curious, how would the OVS perform with this large number of meters? Thanks, Han > controller/ofctrl.c | 37

Re: [ovs-dev] [PATCH ovn] physical: Don't reset encap ID across pipelines.

2024-02-20 Thread Han Zhou
On Fri, Feb 16, 2024 at 2:50 PM Numan Siddique wrote: > > On Mon, Feb 12, 2024 at 2:49 PM Han Zhou wrote: > > > > The MFF_LOG_ENCAP_ID register was defined to save the encap ID and avoid > > changing across pipelines, but in the function > > load_logical

[ovs-dev] [PATCH ovn] encaps: Support backward compatibility for tunnel chassis id change.

2024-02-15 Thread Han Zhou
reate separate tunnels for multiple local encap IPs.") Signed-off-by: Han Zhou --- controller/encaps.c | 83 - tests/ovn-controller.at | 44 ++ 2 files changed, 110 insertions(+), 17 deletions(-) diff --git a/controller/

Re: [ovs-dev] [PATCH ovn v1 4/4] northd: lflow-mgr: Allocate DP reference counters on a second use.

2024-02-12 Thread Han Zhou
oup_add_with_reference(lflow, od, dp_bitmap, bitmap_len); > - > if (parallelization_state != STATE_USE_PARALLELIZATION) { > hmap_insert(_table->entries, >hmap_node, hash); > } else { > @@ -1350,8 +1349,10 @@ dp_refcnt_use(struct hmap *dp_refcnts_map, size_t dp

Re: [ovs-dev] [PATCH ovn v1 3/4] northd: Fix lflow ref node's reference counting.

2024-02-12 Thread Han Zhou
->linked = true; > } > > -- > 2.43.0 > > ___ > dev mailing list > d...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-dev Thanks Numan for the fix. Acked-by: Han Zhou ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Re: [ovs-dev] [PATCH ovn v1 2/4] northd: Don't add ARP request responder flows for NAT multiple times.

2024-02-12 Thread Han Zhou
witch_rport_arp_req_flow( > nat->external_ip, AF_INET, sw_op, sw_od, 80, lflows, > diff --git a/northd/northd.h b/northd/northd.h > index b5c175929e..3f1cd83413 100644 > --- a/northd/northd.h > +++ b/northd/northd.h > @@ -293,6 +293,7 @@ struct ovn_datapath

Re: [ovs-dev] [PATCH ovn v1 1/4] northd: Don't add lr_out_delivery default drop flow for each lrp.

2024-02-12 Thread Han Zhou
/listinfo/ovs-dev Thanks Numan. The patch LGTM except that the function build_lr_nat_defrag_and_lb_default_flows() doesn't seem to be the right place to add the flow. I'd either add a new function, or just call the ovn_lflow_add_default_drop directly in build_lswitch_and_lrouter_iterate_by_lr for this flow. With this addressed: Acked-by: Han Zhou Regards, Han ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev

[ovs-dev] [PATCH ovn] physical: Don't reset encap ID across pipelines.

2024-02-12 Thread Han Zhou
it by ensuring the register is loaded only in the flows of table 0, which is where packets from VIFs enter the pipeline for the first time. Fixes: 17b6a12fa286 ("ovn-controller: Support VIF-based local encap IPs selection.") Signed-off-by: Han Zhou --- controller/physical.c | 28 --- te

Re: [ovs-dev] [PATCH ovn v6 00/13] northd lflow incremental processing

2024-02-06 Thread Han Zhou
On Mon, Feb 5, 2024 at 7:47 PM Numan Siddique wrote: > > On Mon, Feb 5, 2024 at 9:41 PM Han Zhou wrote: > > > > On Mon, Feb 5, 2024 at 4:12 PM Numan Siddique wrote: > > > > > > On Mon, Feb 5, 2024 at 5:54 PM Han Zhou wrote: > > > > >

Re: [ovs-dev] [PATCH ovn v6 00/13] northd lflow incremental processing

2024-02-05 Thread Han Zhou
On Mon, Feb 5, 2024 at 4:12 PM Numan Siddique wrote: > > On Mon, Feb 5, 2024 at 5:54 PM Han Zhou wrote: > > > > On Mon, Feb 5, 2024 at 10:15 AM Ilya Maximets wrote: > > > > > > On 2/5/24 15:45, Ilya Maximets wrote: > > > > On 2/5/24 11:34, Ilya M

Re: [ovs-dev] [PATCH ovn v6 00/13] northd lflow incremental processing

2024-02-05 Thread Han Zhou
On Mon, Feb 5, 2024 at 10:15 AM Ilya Maximets wrote: > > On 2/5/24 15:45, Ilya Maximets wrote: > > On 2/5/24 11:34, Ilya Maximets wrote: > >> On 2/5/24 09:23, Dumitru Ceara wrote: > >>> On 2/5/24 08:13, Han Zhou wrote: > >>>> On S

Re: [ovs-dev] [PATCH ovn v6 00/13] northd lflow incremental processing

2024-02-04 Thread Han Zhou
On Sun, Feb 4, 2024 at 9:26 PM Numan Siddique wrote: > > On Sun, Feb 4, 2024 at 9:53 PM Han Zhou wrote: > > > > On Sun, Feb 4, 2024 at 5:46 AM Ilya Maximets wrote: > > > > > > >>> > > > >>> > 35 files changed, 9681 inser

Re: [ovs-dev] [PATCH ovn v6 00/13] northd lflow incremental processing

2024-02-04 Thread Han Zhou
ch-24.03 was created. I'm more than happy to submit > > follow up patches if you have any comments to address. Please let me know. > >> > > > > Hi Numan, > > > > I was writing the reply and saw your email just now. Thanks a lot for > > taking a huge effort t

Re: [ovs-dev] [PATCH ovn v3 2/2] northd: Explicitly handle SNAT for ICMP need frag.

2024-02-01 Thread Han Zhou
On Thu, Feb 1, 2024 at 5:30 PM Han Zhou wrote: > > > > On Mon, Jan 29, 2024 at 1:36 AM Dumitru Ceara wrote: > > > > On 1/29/24 07:20, Ales Musil wrote: > > > Considering following topology: > > > client - sw0 - lrp0 - lr - lrp1 - sw1 - server &g

Re: [ovs-dev] [PATCH ovn v3 2/2] northd: Explicitly handle SNAT for ICMP need frag.

2024-02-01 Thread Han Zhou
On Mon, Jan 29, 2024 at 1:36 AM Dumitru Ceara wrote: > > On 1/29/24 07:20, Ales Musil wrote: > > Considering following topology: > > client - sw0 - lrp0 - lr - lrp1 - sw1 - server > > sw0 in subnet 192.168.0.0/24 > > sw1 in subnet 172.168.0.0/24 > > SNAT configured for client > > gateway_mtu=1400

Re: [ovs-dev] [PATCH ovn] tests: Fix grep warning

2024-01-30 Thread Han Zhou
On Tue, Jan 30, 2024 at 3:35 AM Dumitru Ceara wrote: > > On 1/30/24 08:59, Ales Musil wrote: > > On Tue, Jan 30, 2024 at 8:58 AM Ales Musil wrote: > > > >> The Fedora version of grep (grep (GNU grep) 3.11) complains > >> about the syntax grep "output\:": grep: warning: stray \ before : > >> > >>

Re: [ovs-dev] [PATCH ovn 3/3] ovn-controller: Support VIF-based local encap IPs selection.

2024-01-29 Thread Han Zhou
On Mon, Jan 29, 2024 at 2:41 AM Ales Musil wrote: > > > > On Fri, Jan 26, 2024 at 8:05 PM Han Zhou wrote: >> >> >> >> On Thu, Jan 25, 2024 at 10:54 PM Ales Musil wrote: >> > >> > >> > >> > On Fri, Jan 26, 2024 at 4:07 AM

Re: [ovs-dev] [PATCH ovn v5 08/16] northd: Refactor lflow management into a separate module.

2024-01-29 Thread Han Zhou
On Mon, Jan 29, 2024 at 7:11 PM Numan Siddique wrote: > On Thu, Jan 25, 2024 at 1:08 AM Han Zhou wrote: > > > > On Thu, Jan 11, 2024 at 7:32 AM wrote: > > > > > > From: Numan Siddique > > > > > > ovn_lflow_add() and other related function

Re: [ovs-dev] [PATCH ovn 3/3] ovn-controller: Support VIF-based local encap IPs selection.

2024-01-26 Thread Han Zhou
On Thu, Jan 25, 2024 at 10:54 PM Ales Musil wrote: > > > > On Fri, Jan 26, 2024 at 4:07 AM Han Zhou wrote: >> >> >> >> On Tue, Jan 23, 2024 at 5:29 AM Ales Musil wrote: >> > >> > >> > >> > On Wed, Jan 17, 2024 at 6:48

Re: [ovs-dev] [PATCH ovn v5 05/16] northd: Add a new engine 'lr_stateful' to manage lr's stateful data.

2024-01-26 Thread Han Zhou
On Thu, Jan 25, 2024 at 8:22 AM Numan Siddique wrote: > > On Tue, Jan 23, 2024 at 2:40 AM Han Zhou wrote: > > > > On Mon, Jan 22, 2024 at 7:11 PM Numan Siddique wrote: > > > > > > On Mon, Jan 22, 2024 at 4:03 PM Han Zhou wrote: > > > > > &

Re: [ovs-dev] [PATCH v8 1/2] revalidator: Add a USDT probe during flow deletion with purge reason.

2024-01-26 Thread Han Zhou
On Fri, Jan 26, 2024 at 10:26 AM Han Zhou wrote: > > > > On Fri, Jan 26, 2024 at 7:53 AM Aaron Conole wrote: > > > > Han Zhou writes: > > > > > On Thu, Jan 25, 2024 at 12:55 PM Aaron Conole wrote: > > >> > > >> From: Kevi

Re: [ovs-dev] [PATCH v8 1/2] revalidator: Add a USDT probe during flow deletion with purge reason.

2024-01-26 Thread Han Zhou
On Fri, Jan 26, 2024 at 7:53 AM Aaron Conole wrote: > > Han Zhou writes: > > > On Thu, Jan 25, 2024 at 12:55 PM Aaron Conole wrote: > >> > >> From: Kevin Sprague > >> > >> During normal operations, it is useful to understand when a particul

Re: [ovs-dev] [PATCH v8 1/2] revalidator: Add a USDT probe during flow deletion with purge reason.

2024-01-25 Thread Han Zhou
On Thu, Jan 25, 2024 at 12:55 PM Aaron Conole wrote: > > From: Kevin Sprague > > During normal operations, it is useful to understand when a particular flow > gets removed from the system. This can be useful when debugging performance > issues tied to ofproto flow changes, trying to determine

Re: [ovs-dev] [PATCH ovn 3/3] ovn-controller: Support VIF-based local encap IPs selection.

2024-01-25 Thread Han Zhou
On Tue, Jan 23, 2024 at 5:29 AM Ales Musil wrote: > > > > On Wed, Jan 17, 2024 at 6:48 AM Han Zhou wrote: >> >> Commit dd527a283cd8 partially supported multiple encap IPs. It supported >> remote encap IP selection based on the destination VIF's encap_ip >

Re: [ovs-dev] [PATCH ovn 1/4] rbac: MAC_Bindings can only be updated by the inserting chassis.

2024-01-25 Thread Han Zhou
On Mon, Jan 22, 2024 at 6:36 AM Ales Musil wrote: > > On Mon, Jan 22, 2024 at 9:09 AM Felix Huettner via dev < > ovs-dev@openvswitch.org> wrote: > > > On Fri, Jan 19, 2024 at 04:33:28PM -0500, Mark Michelson wrote: > > > With this change, a chassis may only update MAC Binding records that it > >

Re: [ovs-dev] [PATCH ovn v5 00/16] northd lflow incremental processing

2024-01-24 Thread Han Zhou
scenario for both lflows (p8) and SB load balancers (p15) . Thanks Numan. I went through this version of the series. I tried my best to review in details but I can't say I examined every lines of the changes. The major comments are about the implicit dependency related to p4, p5, p6, p7, and so

Re: [ovs-dev] [PATCH ovn v5 11/16] northd: Handle lb changes in lflow engine.

2024-01-24 Thread Han Zhou
lflow->dp_refcnts_map, > - lrn->dp_index)) { > - bitmap_set0(lrn->lflow->dpg_bitmap, lrn->dp_index); > +if (lrn->dpgrp_lflow) { > +size_t index; > +BITMAP_FOR_EACH_1 (index, lrn-&g

Re: [ovs-dev] [PATCH ovn v5 08/16] northd: Refactor lflow management into a separate module.

2024-01-24 Thread Han Zhou
On Wed, Jan 24, 2024 at 10:07 PM Han Zhou wrote: > > > > On Thu, Jan 11, 2024 at 7:32 AM wrote: > > > > From: Numan Siddique > > > > ovn_lflow_add() and other related functions/macros are now moved > > into a separate module - lflow-mgr.c. This module

Re: [ovs-dev] [PATCH ovn v5 08/16] northd: Refactor lflow management into a separate module.

2024-01-24 Thread Han Zhou
On Thu, Jan 11, 2024 at 7:32 AM wrote: > > From: Numan Siddique > > ovn_lflow_add() and other related functions/macros are now moved > into a separate module - lflow-mgr.c. This module maintains a > table 'struct lflow_table' for the logical flows. lflow table > maintains a hmap to store the

Re: [ovs-dev] [PATCH ovn v5 08/16] northd: Refactor lflow management into a separate module.

2024-01-24 Thread Han Zhou
On Wed, Jan 24, 2024 at 8:39 PM Numan Siddique wrote: > > On Wed, Jan 24, 2024 at 10:53 PM Han Zhou wrote: > > > > On Wed, Jan 24, 2024 at 4:23 AM Dumitru Ceara wrote: > > > > > > On 1/24/24 06:01, Han Zhou wrote: > > > > On F

Re: [ovs-dev] [PATCH ovn v5 08/16] northd: Refactor lflow management into a separate module.

2024-01-24 Thread Han Zhou
On Wed, Jan 24, 2024 at 4:23 AM Dumitru Ceara wrote: > > On 1/24/24 06:01, Han Zhou wrote: > > On Fri, Jan 19, 2024 at 2:50 AM Dumitru Ceara wrote: > >> > >> On 1/11/24 16:31, num...@ovn.org wrote: > >>> + > >>> +void > &

Re: [ovs-dev] [PATCH ovn v5 08/16] northd: Refactor lflow management into a separate module.

2024-01-23 Thread Han Zhou
On Fri, Jan 19, 2024 at 2:50 AM Dumitru Ceara wrote: > > On 1/11/24 16:31, num...@ovn.org wrote: > > + > > +void > > +lflow_table_add_lflow(struct lflow_table *lflow_table, > > + const struct ovn_datapath *od, > > + const unsigned long *dp_bitmap, size_t

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

2024-01-21 Thread Han Zhou
tats lflow recompute nocompute > +check_engine_stats sync_to_sb_pb recompute nocompute > CHECK_NO_CHANGE_AFTER_RECOMPUTE > > # Create a dnat_and_snat NAT with external_mac and logical_port > check as northd ovn-appctl -t ovn-northd inc-engine/clear-stats >

Re: [ovs-dev] [PATCH ovn v5 02/16] tests: Add a couple of tests in ovn-northd for I-P.

2024-01-21 Thread Han Zhou
nat-del lr0 dnat_and_snat 172.168.0.150 > +check_engine_stats northd recompute nocompute > +check_engine_stats lflow recompute nocompute > +CHECK_NO_CHANGE_AFTER_RECOMPUTE > + > +check as northd ovn-appctl -t ovn-northd inc-engine/clear-stats > +check ovn-nbct

Re: [ovs-dev] [PATCH ovn v5 01/16] northd: Refactor the northd change tracking.

2024-01-21 Thread Han Zhou
n, > +op->od->sb, MC_FLOOD, OVN_MCAST_FLOOD_TUNNEL_KEY); > +} > +sbrec_multicast_group_update_ports_addvalue(sbmc_flood, op->sb); > + > +if (!sbmc_flood_l2) { > +sbmc_flood_l2 = create_sb_multicast_group(ovnsb_txn, > +

Re: [ovs-dev] [PATCH ovn v5 04/16] northd: Add a new engine 'lr_nat' to manage lr NAT data.

2024-01-21 Thread Han Zhou
On Thu, Jan 11, 2024 at 7:29 AM wrote: > > From: Numan Siddique > > This new engine now maintains the NAT related data for each > logical router which was earlier maintained by the northd > engine node in the 'struct ovn_datapath'. The input to > this engine node is 'northd'. > > A record for

Re: [ovs-dev] OVN 24.03 Soft Freeze 19 January

2024-01-18 Thread Han Zhou
On Tue, Jan 16, 2024 at 5:45 AM Mark Michelson wrote: > > Hi everyone, > > The soft freeze for OVN 24.03 is this Friday, 19 January, 2024. Please > ensure that any patches that introduce new features are posted to the > mailing list by that date if you wish to have them included in OVN 24.03. > >

Re: [ovs-dev] [PATCH ovn 2/3] encaps: Create separate tunnels for multiple local encap IPs.

2024-01-16 Thread Han Zhou
On Tue, Jan 16, 2024 at 9:48 PM Han Zhou wrote: > > In commit dd527a283cd8, it created separate tunnels for different remote > encap IPs of the same remote chassis, but when the current chassis is > the one that has multiple encap IPs configured, it only uses the first > encap

[ovs-dev] [PATCH ovn 3/3] ovn-controller: Support VIF-based local encap IPs selection.

2024-01-16 Thread Han Zhou
-off-by: Lei Huang Signed-off-by: Han Zhou --- NEWS| 3 + controller/chassis.c| 2 +- controller/local_data.c | 2 +- controller/local_data.h | 2 +- controller/ovn-controller.8.xml | 30 ++- controller/ovn-controller.c | 49

[ovs-dev] [PATCH ovn 2/3] encaps: Create separate tunnels for multiple local encap IPs.

2024-01-16 Thread Han Zhou
encap IPs in current chassis and sets corresponding local_ip for each tunnel interface in such cases. Co-authored-by: Lei Huang Signed-off-by: Lei Huang Signed-off-by: Han Zhou --- controller/bfd.c| 4 +- controller/encaps.c | 158

[ovs-dev] [PATCH ovn 1/3] encaps: Refactor the naming related to tunnels.

2024-01-16 Thread Han Zhou
Rename vars and structs to reflect the fact that there can be multiple tunnels for each individual chassis. Also update the documentation of external_ids:ovn-encap-ip. Signed-off-by: Han Zhou --- controller/encaps.c | 77 - controller/ovn-controller.8

[ovs-dev] [PATCH ovn 0/3] Support VIF-based local encap IPs selection.

2024-01-16 Thread Han Zhou
Han Zhou (3): encaps: Refactor the naming related to tunnels. encaps: Create separate tunnels for multiple local encap IPs. ovn-controller: Support VIF-based local encap IPs selection. NEWS| 3 + controller/bfd.c| 4 +- controller/chassis.c

Re: [ovs-dev] [PATCH ovn v2] pinctrl: Directly retrieve desired port_binding MAC.

2024-01-10 Thread Han Zhou
mac; j++) { > -if (extract_lsp_addresses(pb->mac[j], _addrs)) { > - break; > -} > +if (!extract_lsp_addresses(pb->mac[0], _addrs)) { > +continue; > } > > pfd = shash_find_data(_prefixd, pb->logical_

Re: [ovs-dev] [PATCH ovn] pinctrl: Directly retrieve desired port_binding MAC.

2024-01-09 Thread Han Zhou
On Tue, Jan 9, 2024 at 10:32 AM Mark Michelson wrote: > > A static analyzer determined that if pb->n_mac was 0, then the c_addrs > lport_addresses struct would never be initialized. We would then use > and attempt to free uninitialized memory. > > In reality, pb->n_mac will always be 1. This is

Re: [ovs-dev] [PATCH ovn v3 16/16] northd: Add northd change handler for sync_to_sb_lb node.

2024-01-08 Thread Han Zhou
On Mon, Jan 8, 2024 at 3:52 PM Numan Siddique wrote: > > On Fri, Jan 5, 2024 at 11:36 AM Numan Siddique wrote: > > > > On Tue, Dec 19, 2023 at 2:37 AM Han Zhou wrote: > > > > > > On Mon, Nov 27, 2023 at 6:39 PM wrote: > > > > > > > >

Re: [ovs-dev] [PATCH ovn v2] northd: Support CIDR-based MAC binding aging threshold.

2023-12-29 Thread Han Zhou
IDRs shows itself. > Thanks Mark. I applied it to main. Regards, Han > On 11/7/23 23:36, Han Zhou wrote: > > Enhance MAC_Binding aging to allow CIDR-based threshold configurations. > > This enables distinct threshold settings for different IP ranges, > > applying the longest

Re: [ovs-dev] [PATCH ovn v3 16/16] northd: Add northd change handler for sync_to_sb_lb node.

2023-12-18 Thread Han Zhou
On Mon, Nov 27, 2023 at 6:39 PM wrote: > > From: Numan Siddique > > Any changes to northd engine node due to load balancers > are now handled in 'sync_to_sb_lb' node to sync the changed > load balancers to SB load balancers. > > The logic to sync the SB load balancers is changed a bit and it >

Re: [ovs-dev] [PATCH ovn v3 15/16] northd: Add a noop handler for northd SB mac binding.

2023-12-18 Thread Han Zhou
On Mon, Dec 18, 2023 at 12:22 PM Numan Siddique wrote: > > On Wed, Dec 13, 2023 at 9:57 AM Dumitru Ceara wrote: > > > > On 11/28/23 03:38, num...@ovn.org wrote: > > > From: Numan Siddique > > > > > > Signed-off-by: Numan Siddique > > > --- > > > northd/inc-proc-northd.c | 9 - > > > 1

Re: [ovs-dev] [PATCH ovn v3 14/16] northd: Add I-P for NB_Global and SB_Global.

2023-12-18 Thread Han Zhou
On Wed, Dec 13, 2023 at 6:47 AM Dumitru Ceara wrote: > > On 11/28/23 03:37, num...@ovn.org wrote: > > From: Numan Siddique > > > > A new engine node "global_config" is added which handles the changes > > to NB_Global an SB_Global tables. It also creates these rows if > > not present. > > > >

Re: [ovs-dev] [PATCH ovn v3 12/16] northd: Add lr_stateful handler for lflow engine node.

2023-12-18 Thread Han Zhou
On Mon, Nov 27, 2023 at 6:38 PM wrote: > > From: Numan Siddique > > Signed-off-by: Numan Siddique > --- > northd/en-lflow.c| 29 +++ > northd/en-lflow.h| 1 + > northd/en-lr-stateful.c | 39 - > northd/en-lr-stateful.h | 26 +++ > northd/inc-proc-northd.c | 3 +- >

Re: [ovs-dev] [PATCH ovn v3 11/16] northd: Handle lb changes in lflow engine.

2023-12-17 Thread Han Zhou
On Mon, Nov 27, 2023 at 6:38 PM wrote: > > From: Numan Siddique > > Since northd tracked data has the changed lb data, northd > engine handler for lflow engine now handles the lb changes > incrementally. All the lflows generated for each lb is > stored in the ovn_lb_datapaths->lflow_ref and

Re: [ovs-dev] [PATCH ovn v2 07/18] northd: Generate logical router's LB and NAT flows using lr_lbnat_data.

2023-12-14 Thread Han Zhou
On Tue, Nov 14, 2023 at 10:42 PM Han Zhou wrote: > > > > On Thu, Oct 26, 2023 at 11:16 AM wrote: > > > > From: Numan Siddique > > > > Previous commits added new engine nodes to store logical router's lb > > and NAT data. Make use of the data stored by

Re: [ovs-dev] [PATCH ovn v2 00/18] northd lflow incremental processing

2023-11-16 Thread Han Zhou
On Wed, Nov 15, 2023 at 7:32 PM Numan Siddique wrote: > > On Wed, Nov 15, 2023 at 2:59 AM Han Zhou wrote: > > > > On Thu, Oct 26, 2023 at 11:12 AM wrote: > > > > > > From: Numan Siddique > > > > > > This patch series adds incremental proce

Re: [ovs-dev] [PATCH ovn v2 00/18] northd lflow incremental processing

2023-11-14 Thread Han Zhou
On Thu, Oct 26, 2023 at 11:12 AM wrote: > > From: Numan Siddique > > This patch series adds incremental processing in the lflow engine > node to handle changes to northd and other engine nodes. > Changed related to load balancers and NAT are mainly handled in > this patch series. > > This patch

Re: [ovs-dev] [PATCH ovn v2 09/18] northd: Add a new node ls_lbacls.

2023-11-14 Thread Han Zhou
On Thu, Oct 26, 2023 at 11:17 AM wrote: > > From: Numan Siddique > > This new engine now maintains the load balancer and ACL data of a > logical switch which was earlier part of northd engine node data. > The main inputs to this engine are: > - northd node > - NB logical switch node >

Re: [ovs-dev] [PATCH ovn v2 08/18] northd: Don't commit dhcp response flows in the conntrack.

2023-11-14 Thread Han Zhou
On Thu, Oct 26, 2023 at 11:16 AM wrote: > > From: Numan Siddique > > This is not required. > Thanks Numan for the fix. Could you provide a little more detail why this is not required: - Is it a bug fix? What's the impact? - Shall we update the ovn-northd documentation for the related lflow

  1   2   3   4   5   6   7   8   9   10   >