[ovs-dev] [PATCH] FAQ: Mention conntrack capability for packet filtering.

2016-10-28 Thread Han Zhou
The exiting explanation didn't tell user the conntrack capability and user may be unaware of the stateful feature of OVS. Signed-off-by: Han Zhou --- FAQ.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FAQ.md b/FAQ.md index 420e40e..776b8f6 100644 --- a/FAQ.md

Re: [ovs-dev] ovn: Improving southbound database security

2016-10-20 Thread Han Zhou
On Thu, Oct 20, 2016 at 11:51 AM, Russell Bryant wrote: > > On Thu, Oct 20, 2016 at 1:47 PM, Ben Pfaff wrote: > > > On Thu, Oct 13, 2016 at 07:32:53PM +0530, Numan Siddique wrote: > > > > > 5) Remove support from ovn-controller updating the 'Chassis.hv_cfg' > > > column and handle the side effect

Re: [ovs-dev] [patch_v4] ovn: Add additional comments regarding arp responders.

2016-10-07 Thread Han Zhou
packets, as there would be some additional flow cost for this > +and the value appears limited. Maybe we don't even need to mention this if we don't want to skip this kind of packet. If there is no such case, it means we don't need to add flows to skip it; if there is such

Re: [ovs-dev] [patch_v2 1/3] ovn: Skip logical switch "router type" port arp responder install.

2016-10-04 Thread Han Zhou
On Tue, Oct 4, 2016 at 10:16 AM, Darrell Ball wrote: > > > > On Mon, Oct 3, 2016 at 3:16 PM, Han Zhou wrote: >> >> >> >> On Mon, Oct 3, 2016 at 2:21 PM, Darrell Ball wrote: >> > >> > >> > >> > On Mon, Oct 3, 2016 at 10:54

Re: [ovs-dev] [patch_v2 1/3] ovn: Skip logical switch "router type" port arp responder install.

2016-10-03 Thread Han Zhou
On Mon, Oct 3, 2016 at 2:21 PM, Darrell Ball wrote: > > > > On Mon, Oct 3, 2016 at 10:54 AM, Han Zhou wrote: >> >> >> >> On Sun, Oct 2, 2016 at 2:14 PM, Darrell Ball wrote: >> > >> > >> > >> > On Sun, Oct 2, 2016 at 11:27

Re: [ovs-dev] [patch_v2 1/3] ovn: Skip logical switch "router type" port arp responder install.

2016-10-03 Thread Han Zhou
On Sun, Oct 2, 2016 at 2:14 PM, Darrell Ball wrote: > > > > On Sun, Oct 2, 2016 at 11:27 AM, Han Zhou wrote: >> >> On Sat, Oct 1, 2016 at 4:34 PM, Darrell Ball wrote: >> > >> > Do not install any potential logical switch "router type"

Re: [ovs-dev] [patch_v2 3/3] ovn: Adjust test for lack of arp responder.

2016-10-02 Thread Han Zhou
This change should belong to the 1/3 patch. Each individual patch should be complete and independent to future patches. On Sat, Oct 1, 2016 at 4:34 PM, Darrell Ball wrote: > If arp responders are unnecessay for logical switch > "router type" ports. then an adjustment is necessary > for a test. >

Re: [ovs-dev] [patch_v2 2/3] ovn: Add additional comments regarding arp responders.

2016-10-02 Thread Han Zhou
On Sat, Oct 1, 2016 at 4:34 PM, Darrell Ball wrote: > > > - These flows are omitted for logical ports (other than router ports) > - that are down. > + These flows are omitted for router type ports and other > + logical ports that are down. This part

Re: [ovs-dev] [patch_v2 1/3] ovn: Skip logical switch "router type" port arp responder install.

2016-10-02 Thread Han Zhou
On Sat, Oct 1, 2016 at 4:34 PM, Darrell Ball wrote: > > Do not install any potential logical switch "router type" > port arp responders. Logical router port arp responders > should be sufficient in this respect. > It seems a little wierd for a logical switch not proxying > for a remote VIF to be

Re: [ovs-dev] [PATCH] ovn: Do not reply to ARP or ND NS for a VM's own IP address.

2016-09-29 Thread Han Zhou
On Thu, Sep 29, 2016 at 11:31 AM, Ben Pfaff wrote: > > When a VM sends an ARP or an ND NS for its own IP address, it is trying to > check for a duplicate address in the network. OVN needs to suppress the > reply in such a case, otherwise the VM thinks that its address is a > duplicate. > > Report

Re: [ovs-dev] [CudaMailTagged] [patch_v1] ovn: Add additional comments regarding arp responders.

2016-09-27 Thread Han Zhou
quot;These port types are skipped. Otherwise the arp > request is received by multiple hypervisors, which all have the > same mac binding downloaded from northd, which will cause > redundant arp replies, confusing the originator of the arp request. " > Sounds good to me. Acked

Re: [ovs-dev] [CudaMailTagged] [patch_v1] ovn: Add additional comments regarding arp responders.

2016-09-27 Thread Han Zhou
On Tue, Sep 27, 2016 at 2:36 PM, Darrell Ball wrote: > > There has been enough confusion regarding arp responders in > ovn to warrant some additional comments; hence add a > general description regarding why they exist and document > the special cases. > > The patch goes along with patch fix for

[ovs-dev] [PATCH] ovn-trace: Temporary fix for segment fault

2016-09-09 Thread Han Zhou
ovn-trace crashes when there are dhcp flows, which makes the tool unusable. This patch is to fix the crash with a dummy dhcp_opts, until dhcp_opts is completely supported by ovn-trace. Signed-off-by: Han Zhou --- ovn/utilities/ovn-trace.c | 8 +++- 1 file changed, 7 insertions(+), 1

[ovs-dev] [PATCH] ovn-nbctl: Update man page for missing tables.

2016-09-08 Thread Han Zhou
There are tables added recently in ovn-nb, but not mentioned in man page of ovn-nbctl. Signed-off-by: Han Zhou --- ovn/utilities/ovn-nbctl.8.xml | 33 + 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/ovn/utilities/ovn-nbctl.8.xml b/ovn/utilities

Re: [ovs-dev] [PATCH v1] ovn: rename Address_Set to Set to reflect a more broad purpose

2016-08-11 Thread Han Zhou
Make sense! Thanks for explain :) On Wednesday, August 10, 2016, Zong Kai Li wrote: > On Thu, Aug 11, 2016 at 1:51 PM, Han Zhou > wrote: > > > > > > On Tue, Aug 9, 2016 at 8:55 PM, Zong Kai LI > wrote: > >> > >> This patch renames table

Re: [ovs-dev] [PATCH v1] ovn: rename Address_Set to Set to reflect a more broad purpose

2016-08-10 Thread Han Zhou
On Tue, Aug 9, 2016 at 8:55 PM, Zong Kai LI wrote: > > This patch renames table Address_Set to Set, Address_Set.addresses to > Set.members to reflect a more broad purpose, that we can define other types > of sets than address set. > > Per discussion around [1] and [2], this patch only does rename

[ovs-dev] [PATCH] ovn-nbctl: fix help message for lsp-get/set-addresses

2016-07-30 Thread Han Zhou
Signed-off-by: Han Zhou --- ovn/utilities/ovn-nbctl.8.xml | 10 +- ovn/utilities/ovn-nbctl.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ovn/utilities/ovn-nbctl.8.xml b/ovn/utilities/ovn-nbctl.8.xml index 122a114..74e79a3 100644 --- a/ovn/utilities/ovn

Re: [ovs-dev] [PATCH v3 2/2] ovn: Add address_set() support for ACLs.

2016-06-27 Thread Han Zhou
On Sun, Jun 26, 2016 at 11:29 PM, Babu Shanmugam wrote: > > > > On Thursday 23 June 2016 12:03 PM, Han Zhou wrote: >> >> It may be good to have column "external_ids", so that external names, such as security-group name in neutron, can be recognized easily. > &

Re: [ovs-dev] [PATCH v3 2/2] ovn: Add address_set() support for ACLs.

2016-06-22 Thread Han Zhou
Thanks Babu for taking over this. I'd like to repost my comment here: On Wed, Jun 22, 2016 at 10:05 PM, wrote: > diff --git a/ovn/ovn-sb.ovsschema b/ovn/ovn-sb.ovsschema > index 06e8a07..22f7ad0 100644 > --- a/ovn/ovn-sb.ovsschema > +++ b/ovn/ovn-sb.ovsschema > @@ -1,7 +1,7 @@ > { > "name"

Re: [ovs-dev] [PATCH] doc: Fix an error in FAQ.

2016-06-06 Thread Han Zhou
Sorry, I think I just realized that the "not" here is optional in English. But it did take me sometime to figure out :( Han On Mon, Jun 6, 2016 at 10:56 PM, Han Zhou wrote: > Signed-off-by: Han Zhou > --- > FAQ.md | 2 +- > 1 file changed, 1 insertion(+), 1 deleti

[ovs-dev] [PATCH] doc: Fix an error in FAQ.

2016-06-06 Thread Han Zhou
Signed-off-by: Han Zhou --- FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index df6f225..cc4fdf6 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1056,7 +1056,7 @@ A: Yes. For traffic that egresses from a switch, OVS supports traffic Keep in mind that

Re: [ovs-dev] [PATCH v4 2/2] ovn: Apply ACL changes to existing connections.

2016-05-20 Thread Han Zhou
tch=(((ct.new && !ct.est) > || (!ct.new && ct.est && !ct.rpl && ct_label[0] == 1)) && (outport == > "0a7409c8-d179-4915-9eb2-f53426ae16dd" && ip4 && icmp4)), > action=(ct_commit(ct_label=0); next;) > > table=1(

Re: [ovs-dev] [PATCH v2 3/3] ovn: Add address_set() support for ACLs.

2016-05-01 Thread Han Zhou
One more comment, if you will be working on v3. On Thu, Apr 7, 2016 at 8:46 AM, Russell Bryant wrote: > diff --git a/ovn/ovn-nb.ovsschema b/ovn/ovn-nb.ovsschema > index 40a7a97..c26d8ae 100644 > --- a/ovn/ovn-nb.ovsschema > +++ b/ovn/ovn-nb.ovsschema > @@ -1,7 +1,7 @@ > { > "name": "OVN_Nor

Re: [ovs-dev] [PATCH RFC] ovn-controller: Optimize processing for non-local datapath without patch ports.

2016-04-13 Thread Han Zhou
On Wed, Apr 13, 2016 at 10:35 AM, Guru Shetty wrote: > > > On 28 March 2016 at 00:10, Han Zhou wrote: > >> For non-local datapaths, if there are no patch ports attached, it >> means the lflows and port bindings would never be needed on the >> Chassis. Skipping the

Re: [ovs-dev] [PATCH 3/3] ovn: Add address_set() support for ACLs.

2016-04-12 Thread Han Zhou
On Tue, Apr 12, 2016 at 11:02 AM, Russell Bryant wrote: > > On Tue, Apr 12, 2016 at 1:35 PM, Mickey Spiegel wrote: > > > One comment below. > > > > -"dev" wrote: - > > > > >To: Ben Pfaff > > >From: Russell Bryant > > >Sent by: "dev" > > >Date: 04/12/2016 09:37AM > > >Cc: ovs dev > > >S

Re: [ovs-dev] A proposal of ovn-scale-test tool

2016-04-11 Thread Han Zhou
On Mon, Apr 11, 2016 at 3:57 PM, Ben Pfaff wrote: > > [dropping some CCs for people I know to be on ovs-dev] > > On Sun, Apr 10, 2016 at 08:45:38PM -0700, Han Zhou wrote: > > As requested by several folks and also mentioned in last week's ovn > > meeting, we woul

Re: [ovs-dev] A proposal of ovn-scale-test tool

2016-04-10 Thread Han Zhou
On Sun, Apr 10, 2016 at 7:21 PM, Lei Huang wrote: > > Hi, > > In last few months we created a ovn scalability test tool, it is implemented based on openstack/rally project, its repo is https://github.com/l8huang/ovn-scale-test. > > Its basic usage is creating thounsands of ovs sandboxes(to simulat

Re: [ovs-dev] [PATCH] Add configurable OpenFlow port name.

2016-04-09 Thread Han Zhou
On Friday, April 8, 2016, Xiao Liang wrote: > > Add new column "ofname" in Interface table to configure port name reported > to controllers with OpenFlow protocol, thus decouple OpenFlow port name from > device name. > > For example: > # ovs-vsctl set Interface eth0 ofname=wan > # ovs-vsct

[ovs-dev] [PATCH 3/3] ovn: Add address_set() support for ACLs.

2016-04-06 Thread Han Zhou
On Wednesday, April 6, 2016, Russell Bryant > wrote: > > > On Tue, Apr 5, 2016 at 10:03 PM, Han Zhou wrote: > >> >> >> On Tue, Apr 5, 2016 at 2:24 PM, Russell Bryant wrote: >> >> +/* Return true if the address sets match, false otherwise. */ >

[ovs-dev] [PATCH v2] ovn: Add software l2 gateway.

2016-04-06 Thread Han Zhou
On Wednesday, April 6, 2016, Russell Bryant > wrote: > > > On Wed, Apr 6, 2016 at 3:10 AM, Han Zhou wrote: > >> >> On Mon, Apr 4, 2016 at 5:58 AM, Russell Bryant wrote: >> > - Each localnet logical port is implemented as a >> pair of >>

Re: [ovs-dev] [PATCH v2] ovn: Add software l2 gateway.

2016-04-06 Thread Han Zhou
On Mon, Apr 4, 2016 at 5:58 AM, Russell Bryant wrote: > - Each localnet logical port is implemented as a pair of > - patch ports, one in the integration bridge, one in a different > - bridge, with the same external-ids:ovn-localnet-port > - value. > + E

Re: [ovs-dev] [PATCH 3/3] ovn: Add address_set() support for ACLs.

2016-04-05 Thread Han Zhou
On Tue, Apr 5, 2016 at 2:24 PM, Russell Bryant wrote: > > This feature was originally proposed here: > > http://openvswitch.org/pipermail/dev/2016-March/067440.html > > A common use case for OVN ACLs involves needing to match a set of IP > addresses. > >outport == "lp1" && ip4.src == {10.0.0

Re: [ovs-dev] [PATCH v13 0/8] Add incremental processing

2016-04-01 Thread Han Zhou
On Thu, Mar 31, 2016 at 8:05 AM, Ryan Moats wrote: > From: RYAN D. MOATS > > It looks like v11 and v12 had some interesting rebase issues, > so v13 is a rebase back to master only > > RYAN D. MOATS (8): > Make flow table persistent in ovn controller > Persist lport and mcgroup indexes > Pe

[ovs-dev] (no subject)

2016-03-31 Thread Han Zhou
On Thu, Mar 31, 2016 at 2:29 PM, Russell Bryant wrote: > > On Thu, Mar 31, 2016 at 11:26 AM, Marcelo E. Magallon < > marcelo.magal...@hpe.com> wrote: > > > Hi Ben, > > > > On 03/30/2016 06:13 PM, Ben Pfaff wrote: > > > > I understand the technical differences between the approaches. My question >

Re: [ovs-dev] [PATCH] ovn-controller: Loopback prevention flows for local ports only.

2016-03-30 Thread Han Zhou
On Wed, Mar 30, 2016 at 4:48 PM, Ben Pfaff wrote: > > On Tue, Mar 29, 2016 at 04:55:11PM -0700, Han Zhou wrote: > > Currently in physical_run() we added per-port loopback prevention > > flows for all lports. The flows are actually required only for > > local ports on

Re: [ovs-dev] [PATCH] ovn-controller: Optimize processing for non-local datapath without patch ports.

2016-03-30 Thread Han Zhou
On Wed, Mar 30, 2016 at 2:01 PM, Ben Pfaff wrote: > > On Tue, Mar 29, 2016 at 12:26:18PM -0700, Han Zhou wrote: > > For non-local datapaths, if there are no patch ports attached, it > > means the lflows and port bindings would never be needed on the > > Chassis. Since lflo

[ovs-dev] [PATCH] ovn-controller: Loopback prevention flows for local ports only.

2016-03-29 Thread Han Zhou
Currently in physical_run() we added per-port loopback prevention flows for all lports. The flows are actually required only for local ports on the chassis. This change greatly reduces number of flows in table 34. Signed-off-by: Han Zhou --- ovn/controller/physical.c | 24

[ovs-dev] [PATCH] ovn-controller: Optimize processing for non-local datapath without patch ports.

2016-03-29 Thread Han Zhou
minutes. Step2 took 936 seconds. After the change: Step1 took less than 1 minute: 20x faster. Step2 took 464 seconds: 2x faster. Signed-off-by: Han Zhou --- ovn/controller/lflow.c | 38 +++--- ovn/controller/lflow.h | 3 ++- ovn/controller/ovn

Re: [ovs-dev] [PATCH RFC] ovn-controller: Optimize processing for non-local datapath without patch ports.

2016-03-29 Thread Han Zhou
On Tue, Mar 29, 2016 at 6:57 AM, Ryan Moats wrote: > > Acked-by: Ryan Moats > Ryan, thanks for the ack. Scale testing shows very good result: Test precondition: 2k hypervisors, 20k lports, 200 lswitches (each with a localnet port). Test case: step1: add 50 hypervisors (simulated on 1 BM with

[ovs-dev] [PATCH RFC] ovn-controller: Optimize processing for non-local datapath without patch ports.

2016-03-28 Thread Han Zhou
openflow tables. Signed-off-by: Han Zhou --- ovn/controller/lflow.c | 38 +++--- ovn/controller/lflow.h | 3 ++- ovn/controller/ovn-controller.c | 16 +--- ovn/controller/ovn-controller.h | 6 ++ ovn/controller/patch.c | 22

Re: [ovs-dev] [PATCH v9 06/10] Add incremental proessing to lflow_run

2016-03-23 Thread Han Zhou
On Wed, Mar 23, 2016 at 12:28 PM, Ryan Moats wrote: > > Han Zhou wrote on 03/23/2016 01:39:04 PM: > > > From: Han Zhou > > To: Ryan Moats/Omaha/IBM@IBMUS > > Cc: "dev@openvswitch.org" , Russell Bryant > > > > Date: 03/23/2016 01:39 PM > >

Re: [ovs-dev] [PATCH v9 06/10] Add incremental proessing to lflow_run

2016-03-23 Thread Han Zhou
On Tue, Mar 22, 2016 at 6:17 PM, Han Zhou wrote: > > > > On Fri, Mar 11, 2016 at 1:06 PM, Ryan Moats wrote: > > > > From: RYAN D. MOATS > > > > This code changes lflow_run to do incremental process of the > > logical flow table rather than processing t

Re: [ovs-dev] [PATCH v9 06/10] Add incremental proessing to lflow_run

2016-03-22 Thread Han Zhou
On Fri, Mar 11, 2016 at 1:06 PM, Ryan Moats wrote: > > From: RYAN D. MOATS > > This code changes lflow_run to do incremental process of the > logical flow table rather than processing the full table each run. > > Signed-off-by: RYAN D. MOATS > --- > ovn/controller/binding.c|3 ++ >

Re: [ovs-dev] [PATCH v2] lib/util.c: Optimise bitwise_rscan.

2016-03-20 Thread Han Zhou
On Sun, Mar 20, 2016 at 9:41 AM, William Tu wrote: > > Hi Han Zhou, > > Just curious and not related to the bitwise_rscan(). > Do you get a chance to know what this kernel symbol is? Here is the report with kernel symbols resolved. --- before optimization --- + 36.27% ovn-

[ovs-dev] [PATCH v2] ovn: Update the test case for localnet port.

2016-03-20 Thread Han Zhou
Localnet port is now able to connect vif ports on different HVs. Change the test case accordingly. Signed-off-by: Han Zhou --- Notes: v1->v2: Update according to Russell's comment: add test for connectivity between 2 lswitches on same physical network tests/ovn

[ovs-dev] [PATCH v2] lib/util.c: Optimise bitwise_rscan.

2016-03-20 Thread Han Zhou
+ 8.15% ovn-controller libc-2.19.so[.] _int_malloc + 5.77% ovn-controller ovn-controller [.] bitwise_rscan + 5.49% ovn-controller libc-2.19.so[.] _int_free Signed-off-by: Han Zhou --- Notes: v1->v2: - Refactor code and fixed a bug in v1 - U

[ovs-dev] [PATCH v2] ovn: Update the test case for localnet port.

2016-03-19 Thread Han Zhou
Localnet port is now able to connect vif ports on different HVs. Change the test case accordingly. Signed-off-by: Han Zhou --- Notes: v1->v2: Update according to Russell's comment: add test for connectivity between 2 lswitches on same physical network tests/ovn

[ovs-dev] [PATCH] lib/util.c: Optimise bitwise_rscan.

2016-03-19 Thread Han Zhou
-controller [.] lex_token_parse + 4.81% ovn-controller ovn-controller [.] bitwise_rscan + 3.62% ovn-controller ovn-controller [.] lflow_run Signed-off-by: Han Zhou --- lib/util.c | 33 - 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a

Re: [ovs-dev] [PATCH] lib/util.c: Optimise bitwise_rscan.

2016-03-19 Thread Han Zhou
On Wed, Mar 16, 2016 at 10:03 PM, Ben Pfaff wrote: > On Wed, Mar 16, 2016 at 08:55:35PM -0700, Han Zhou wrote: > > bitwise_rscan() is found to be hot spot in ovn-controller during OVN > > scalability tests. It is triggered by lflow_run() when processing > > lflow updates fr

Re: [ovs-dev] [PATCH] ovn: Update the test case for localnet port.

2016-03-19 Thread Han Zhou
On Tue, Mar 15, 2016 at 11:29 PM, Russell Bryant wrote: > > > On Sun, Mar 13, 2016 at 4:53 PM, Han Zhou wrote: > >> Localnet port is now able to connect vif ports on different HVs. >> Change the test case accordingly. >> >> Signed-off-by: Han Zhou >>

Re: [ovs-dev] [PATCH] lib/util.c: Optimise bitwise_rscan.

2016-03-18 Thread Han Zhou
On Thu, Mar 17, 2016 at 8:59 AM, Ben Pfaff wrote: > > On Wed, Mar 16, 2016 at 10:38:46PM -0700, Han Zhou wrote: > > On Wed, Mar 16, 2016 at 10:03 PM, Ben Pfaff wrote: > > > > > On Wed, Mar 16, 2016 at 08:55:35PM -0700, Han Zhou wrote: > > > > bitwise

[ovs-dev] [PATCH] ovn: Update the test case for localnet port.

2016-03-13 Thread Han Zhou
Localnet port is now able to connect vif ports on different HVs. Change the test case accordingly. Signed-off-by: Han Zhou --- tests/ovn.at | 34 +- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/tests/ovn.at b/tests/ovn.at index 5cb7d8b..ed84717

Re: [ovs-dev] RFCv2: OVN database options

2016-03-10 Thread Han Zhou
On Thu, Mar 10, 2016 at 5:45 PM, Ben Pfaff wrote: > > On Thu, Mar 10, 2016 at 05:31:18PM -0800, Ben Pfaff wrote: > > I have been considering this as a minimum interesting scale. It's hard > > for me to know what the interesting scale range is. I am really happy > > to hear what is important to y

Re: [ovs-dev] RFCv2: OVN database options

2016-03-10 Thread Han Zhou
I replied to the older version, repost it here: On Thu, Mar 10, 2016 at 4:01 PM, Ben Pfaff wrote: > > Beyond supporting this usage model, the basic requirements for the OVN > use case are: > > - Size: 20 MB to 100 MB of data (estimated database size to hold > data for our target scale o

Re: [ovs-dev] RFC: OVN database options

2016-03-10 Thread Han Zhou
On Wed, Mar 9, 2016 at 11:11 PM, Ben Pfaff wrote: > > Beyond supporting this usage model, the basic requirements for the OVN > use case are: > > - Size: 20 MB to 100 MB of data (estimated database size to hold > data for our target scale of 1,000 hypervisors and 20,000 > logical po

Re: [ovs-dev] [PATCH v2 1/3] ovn: Update ACL flow docs.

2016-03-09 Thread Han Zhou
if you want processing to continue in the next table, > + you must execute the next action after > +ct_commit. > + > > > > -- > 2.5.0 > Acked-by: Han Zhou -- Best regards, Han ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2 2/3] ovn: Add ct_commit(ct_mark=INTEGER); action.

2016-03-09 Thread Han Zhou
evious call to ct_next. > +with it by a previous call to ct_next. When > +the ct_mark=VALUE parameter is supplied, ct_mark will be set > +to the 32-bit integer indicated by VALUE on the connection > + tracking entry.

Re: [ovs-dev] [PATCH v2 3/3] ovn: Apply ACL changes to existing connections.

2016-03-09 Thread Han Zhou
S_EMPTY_INITIALIZER; > +/* XXX Need to support "reject", treat it as "drop;" for now. */ > + > +if (has_stateful) { > +/* The implementation of "drop" differs if stateful ACLs are in > + * use for this datapath. In that case, the ac

Re: [ovs-dev] [RFC] OVN northbound address sets

2016-03-09 Thread Han Zhou
On Wed, Mar 9, 2016 at 1:32 PM, Ryan Moats wrote: > > > > "dev" wrote on 03/09/2016 03:12:07 PM: > > > From: Russell Bryant > > To: ovs dev > > Date: 03/09/2016 03:12 PM > > Subject: [ovs-dev] [RFC] OVN northbound address sets > > Sent by: "dev" > > > > I'd like to propose a new feature for th

Re: [ovs-dev] [PATCH 3/3] ovn: Apply ACL changes to existing connections.

2016-03-07 Thread Han Zhou
On Wed, Mar 2, 2016 at 1:43 PM, Russell Bryant wrote: > > Prior to this commit, once a connection had been committed to the > connection tracker, the connection would continue to be allowed, even > if the policy defined in the ACL table changed. This patch changes > the implementation so that exi

Re: [ovs-dev] [PATCH] ovsdb-server: Fix a reference count leak bug

2016-03-07 Thread Han Zhou
_jsonrpc_monitor(struct ovsdb_monitor *dbmon, > - struct ovsdb_jsonrpc_monitor *jsonrpc_monitor); > - > -void ovsdb_monitor_remove_jsonrpc_monitor(struct ovsdb_monitor *dbmon, > - struct ovsdb_jsonrpc_monitor *jsonrpc_monitor); > +

Re: [ovs-dev] ovn northbound ovsdb-server’s memory usage problem

2016-03-07 Thread Han Zhou
On Sun, Mar 6, 2016 at 11:02 PM, Lei Huang wrote: > > Hi, > > > During a scalability test, we found that the ovn northbound ovsdb-server’s > memory usage becomes very high while creating and binding ports, the test > step is: > > 1. Create 1000 sandboxes > > 2. Create 5 lswitches and create 200 lp

Re: [ovs-dev] [PATCH 2/3] ovn: Add ct_commit(ct_mark=INTEGER); action.

2016-03-02 Thread Han Zhou
On Wed, Mar 2, 2016 at 1:43 PM, Russell Bryant wrote: > > Update the "ct_commit;" logical flow action to optionally take a > parameter, setting the value of "ct_mark" to a 32-bit integer. > Supported ct_commit syntax now includes: > > ct_commit; > ct_commit(); > ct_commit(ct_mark=1); >

Re: [ovs-dev] [OVS-dev]: OVN: RFC re: logical and physical endpoint separation proposal

2016-03-02 Thread Han Zhou
On Wed, Mar 2, 2016 at 11:27 AM, Darrell Ball wrote: > > Thanks Russell > > Pls see inline > > Darrell > > > From: Russell Bryant > Date: Wednesday, March 2, 2016 at 5:40 AM > To: Darrel Ball > Cc: Mickey Spiegel , Darrell Lu , " dev@openvswitch.org&q

Re: [ovs-dev] [PATCH v7 1/2] ovn: Avoid ARP responder for packets from localnet port

2016-02-26 Thread Han Zhou
On Fri, Feb 26, 2016 at 7:59 AM, Russell Bryant wrote: > > > > On Thu, Feb 25, 2016 at 11:26 PM, Han Zhou wrote: >> >> This is required by next commit that allows lswitch with localnet >> port to be attached to multiple chassises. Without this patch, if >> an

[ovs-dev] [PATCH] ovn-northd: Remove info log in extract_lport_addresses().

2016-02-25 Thread Han Zhou
When a lport is with address "unknown", the function will complain and print misleading logs. There is no need to print the log. Signed-off-by: Han Zhou --- ovn/northd/ovn-northd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn-nort

[ovs-dev] [PATCH] ovn-northd: Remove info log in extract_lport_addresses().

2016-02-25 Thread Han Zhou
When a lport is with address "unknown", the function will complain and print misleading logs. There is no need to print the log. --- ovn/northd/ovn-northd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ovn/northd/ovn-northd.c b/ovn/northd/ovn-northd.c index b2b1a45..63f3fcd 100644 --- a/o

[ovs-dev] [PATCH v7 2/2] ovn: Connect to remote lports through localnet port.

2016-02-25 Thread Han Zhou
lnet port configured on the lswitch. Signed-off-by: Han Zhou Acked-by: Russell Bryant --- Notes: v1->v2: rebase on master, and more updates on documents v2->v3: updated based on Russell's comments v3->v4: rebase on master, and updated ovn-nb.xml document v4-&g

[ovs-dev] [PATCH v7 1/2] ovn: Avoid ARP responder for packets from localnet port

2016-02-25 Thread Han Zhou
responder before ls_in_l2_lkup. Suggested-by: Russell Bryant Signed-off-by: Han Zhou --- ovn/northd/ovn-northd.8.xml | 27 +++ ovn/northd/ovn-northd.c | 40 +--- 2 files changed, 56 insertions(+), 11 deletions(-) diff --git a/ovn/northd

[ovs-dev] [PATCH v7 1/2] ovn: Avoid ARP responder for packets from localnet port

2016-02-25 Thread Han Zhou
responder before ls_in_l2_lkup. Suggested-by: Russell Bryant Signed-off-by: Han Zhou --- ovn/northd/ovn-northd.8.xml | 27 +++ ovn/northd/ovn-northd.c | 40 +--- 2 files changed, 56 insertions(+), 11 deletions(-) diff --git a/ovn/northd

Re: [ovs-dev] [PATCH v6] ovn: Connect to remote lports through localnet port.

2016-02-25 Thread Han Zhou
On Thu, Feb 25, 2016 at 12:43 PM, Russell Bryant wrote: > > > > On Thu, Feb 25, 2016 at 1:12 PM, Han Zhou wrote: >> >> Before this patch, inter-chassis communication between VIFs of same >> lswitch will always go through tunnel, which end up of modeling a >&g

[ovs-dev] [PATCH v6] ovn: Connect to remote lports through localnet port.

2016-02-25 Thread Han Zhou
lnet port configured on the lswitch. Signed-off-by: Han Zhou Acked-by: Russell Bryant --- Notes: v1->v2: rebase on master, and more updates on documents v2->v3: updated based on Russell's comments v3->v4: rebase on master, and updated ovn-nb.xml document v4-&g

Re: [ovs-dev] [PATCH v4] ovn: Connect to remote lports through localnet port.

2016-02-25 Thread Han Zhou
On Tue, Feb 23, 2016 at 11:27 PM, Han Zhou wrote: > > > > On Tue, Feb 23, 2016 at 3:38 PM, Han Zhou wrote: >> >> >> >> On Tue, Feb 23, 2016 at 1:04 PM, Ben Pfaff wrote: >> > >> > Will this have the desired effect? I think that putting

Re: [ovs-dev] [PATCH v5] ovn: Connect to remote lports through localnet port.

2016-02-25 Thread Han Zhou
On Wed, Feb 24, 2016 at 4:26 AM, Russell Bryant wrote: > > On Wed, Feb 24, 2016 at 2:12 AM, Han Zhou wrote: >> >> Before this patch, inter-chassis communication between VIFs of same >> lswitch will always go through tunnel, which end up of modeling a >> sin

Re: [ovs-dev] [PATCH v4] ovn: Connect to remote lports through localnet port.

2016-02-23 Thread Han Zhou
On Tue, Feb 23, 2016 at 3:38 PM, Han Zhou wrote: > > > On Tue, Feb 23, 2016 at 1:04 PM, Ben Pfaff wrote: > > > > Will this have the desired effect? I think that putting multiple VIFs > > on a logical switch and redirecting outputs to them through the localnet &g

[ovs-dev] [PATCH v5] ovn: Connect to remote lports through localnet port.

2016-02-23 Thread Han Zhou
lnet port configured on the lswitch. Signed-off-by: Han Zhou --- Notes: v1->v2: rebase on master, and more updates on documents v2->v3: updated based on Russell's comments v3->v4: rebase on master, and updated ovn-nb.xml document v4->v5: rebase and documents up

Re: [ovs-dev] [PATCH v4] ovn: Connect to remote lports through localnet port.

2016-02-23 Thread Han Zhou
On Tue, Feb 23, 2016 at 1:04 PM, Ben Pfaff wrote: > > Will this have the desired effect? I think that putting multiple VIFs > on a logical switch and redirecting outputs to them through the localnet > port will have surprising consequences in some cases. The first case > that comes to mind is on

Re: [ovs-dev] [PATCH v6 2/3] [ovn-controller] Make flow table persistent in ovn controller

2016-02-18 Thread Han Zhou
On Thu, Feb 18, 2016 at 6:52 AM, Ryan Moats wrote: > > Han Zhou wrote on 02/18/2016 01:34:03 AM: > > [snipped for BW] > > > > > > +/* loop through all the flows to see if there is an old flow to be > > > + * removed - do so if the old flow has

Re: [ovs-dev] [PATCH v6 2/3] [ovn-controller] Make flow table persistent in ovn controller

2016-02-17 Thread Han Zhou
On Wed, Feb 17, 2016 at 10:42 AM, Ryan Moats wrote: > > This is a prerequisite for incremental processing. > > Signed-off-by: Ryan Moats > --- > ovn/controller/ofctrl.c | 118 +++ > ovn/controller/ofctrl.h |2 + > ovn/controller/ovn-contro

[ovs-dev] [PATCH v4] ovn: Connect to remote lports through localnet port.

2016-02-11 Thread Han Zhou
lnet port configured on the lswitch. Signed-off-by: Han Zhou --- Notes: v1->v2: rebase on master, and more updates on documents v2->v3: updated based on Russell's comments v3->v4: rebase on master, and updated ovn-nb.xml document ovn/controller/binding.c| 14 ++

Re: [ovs-dev] [ovs-dev, v3] ovn: Connect to remote lports through localnet port.

2016-02-11 Thread Han Zhou
On Thu, Feb 11, 2016 at 12:58 PM, Russell Bryant wrote: > > On 02/05/2016 05:53 PM, Han Zhou wrote: > > Before this patch, inter-chassis communication between VIFs of same > > lswitch will always go through tunnel, which end up of modeling a > > single physical network

Re: [ovs-dev] [PATCH] ovsdb-server: Eliminating max session limit

2016-02-10 Thread Han Zhou
error(error)); > } > } > > @@ -358,7 +351,7 @@ ovsdb_jsonrpc_server_wait(struct ovsdb_jsonrpc_server *svr) > SHASH_FOR_EACH (node, &svr->remotes) { > struct ovsdb_jsonrpc_remote *remote = node->data; > > -if (remote->listener &

Re: [ovs-dev] [OVN] Applying ACL changes to existing connections

2016-02-08 Thread Han Zhou
On Fri, Feb 5, 2016 at 1:30 PM, Russell Bryant wrote: > > On 02/05/2016 02:22 AM, Justin Pettit wrote: > > Joe and I spent some time today discussing our options. This is > > pretty tricky to get right and most of the options that come > > immediately to mind have subtle corner cases. We're plan

Re: [ovs-dev] ovsdb-server servicing large number of idle connections

2016-02-08 Thread Han Zhou
On Mon, Feb 8, 2016 at 3:44 PM, Andy Zhou wrote: > > Hi, Han, > > This is to follow up on the Thursday OVN IRC chat. After the meeting, I was able replicate the test condition you mentioned where a single ovsdb-server services 1000 ovsdb-client connections. When there is no ovsdb transactions g

[ovs-dev] [PATCH v3] ovn: Connect to remote lports through localnet port.

2016-02-05 Thread Han Zhou
lnet port configured on the lswitch. Signed-off-by: Han Zhou --- Notes: v1->v2: rebase on master, and more updates on documents v2->v3: updated based on Russell's comments ovn/controller/binding.c| 14 - ovn/controller/ovn-controller.c | 18 +--

Re: [ovs-dev] [PATCH v2] ovn: Connect to remote lports through localnet port.

2016-02-05 Thread Han Zhou
On Fri, Feb 5, 2016 at 10:55 AM, Russell Bryant wrote: > > On 02/03/2016 07:03 PM, Han Zhou wrote: > > Before this patch, inter-chassis communication between VIFs of same > > lswitch will always go through tunnel, which end up of modeling a > > single physical network

Re: [ovs-dev] Problem in datapath flow: eth(bad key length 24, expected 12)

2016-02-03 Thread Han Zhou
OpenFlow > > > actions=pop_mpls:0x0800,push_vlan:0x8100,set_field:4100->vlan_vid,set_field:b6:ee:28:59:97:18->eth_src,set_field:fa:16:3e:a3:03:b8->eth_dst,output:2 > > > > The rule corresponding to the last action, is: > > > > # ovs-ofctl dump-flows

[ovs-dev] [PATCH v2] ovn: Connect to remote lports through localnet port.

2016-02-03 Thread Han Zhou
lnet port configured on the lswitch. Signed-off-by: Han Zhou --- Notes: v1->v2: rebase on master, and more updates on documents ovn/controller/binding.c| 10 +++--- ovn/controller/ovn-controller.c | 18 +-- ovn/controller/ovn-controller.h | 10 ++ ovn/contro

Re: [ovs-dev] OVN: Floating IP Support - Proposal

2016-02-03 Thread Han Zhou
al can state this use case at the beginning of the > proposal. Does this address your concern? > > Thanks > Amitabha > > > > From:Han Zhou > To:Amitabha Biswas/San Jose/IBM@IBMUS > Cc:ovs-dev > Date:02/0

Re: [ovs-dev] [PATCH] ovn: Connect to remote lports through localnet port.

2016-02-03 Thread Han Zhou
On Wed, Feb 3, 2016 at 11:35 AM, Russell Bryant wrote: > > On 01/30/2016 11:23 PM, Han Zhou wrote: > > Before this patch, inter-chassis communication between VIFs of same > > lswitch will always go through tunnel, which end up of modeling a > > single physical network

Re: [ovs-dev] OVN: Floating IP Support - Proposal

2016-02-03 Thread Han Zhou
On Mon, Feb 1, 2016 at 10:19 AM, Amitabha Biswas wrote: > Packet Traversal > > > Inbound Packet (from external) with Floating IP Processing > -- > > It is assumed that the ARP request for the Floating IP will be broadcast >

Re: [ovs-dev] [RFC] ovn-controller: Only process lflows for local datapaths.

2016-02-02 Thread Han Zhou
On Tue, Feb 2, 2016 at 2:01 PM, Russell Bryant wrote: > > On 02/02/2016 04:49 PM, Ben Pfaff wrote: > > On Thu, Jan 21, 2016 at 03:21:00PM -0500, Russell Bryant wrote: > >> Previously, ovn-controller translated logical flows into OpenFlow flows > >> for *every* logical datapath. This patch makes i

Re: [ovs-dev] [PATCH] ovn: Connect to remote lports through localnet port.

2016-01-30 Thread Han Zhou
On Sat, Jan 30, 2016 at 8:23 PM, Han Zhou wrote: > Before this patch, inter-chassis communication between VIFs of same > lswitch will always go through tunnel, which end up of modeling a > single physical network with many lswitches and pairs of lports, and > complexity in CMS li

[ovs-dev] [PATCH] ovn: Connect to remote lports through localnet port.

2016-01-30 Thread Han Zhou
ACLs are involved. With this patch, inter-chassis communication can go through physical networks via localnet port with a 1:1 mapping between lswitches and physical networks. The original tunneling mechanism will still be used if there is no localnet port configured on the lswitch. Signed-off-by: Han

Re: [ovs-dev] [PATCH v4 3/3] ovn-controller: Allocate ct zones for localnet ports.

2016-01-27 Thread Han Zhou
h for each physical network. When that is ready then the total number of localnet ports are very limited so we would not waste too many zone ids. So I am ok with the solution here and let's see if optimization is still needed later on. Acked-by: Han Zhou -- Best regards, Han

Re: [ovs-dev] [PATCH v4 3/3] ovn-controller: Allocate ct zones for localnet ports.

2016-01-26 Thread Han Zhou
On Mon, Jan 25, 2016 at 2:02 PM, Russell Bryant wrote: > > Previously, all ct() actions applied to localnet ports used the default > conntrack zone. We should allocate a ct zone ID for all localnet ports > just like we do for all local VIFs so that none of our connection > tracking interferes wit

Re: [ovs-dev] ovn-northd: Logical_Port.port_addresses format

2016-01-25 Thread Han Zhou
On Fri, Jan 22, 2016 at 6:17 PM, Han Zhou wrote: > > Regarding the functionality of port-security itself, I am not sure how would it be supported for ls_out_port_sec. If a dst MAC is not recognised in ls_in_l2_lkup stage, it is meaningless to have it allowed in ls_out_port_sec, because the

Re: [ovs-dev] [PATCH v3 2/2] ovn: Fix localnet ports on the same chassis.

2016-01-24 Thread Han Zhou
rt is on a logical switch with > another logical port with an associated local VIF. > > A nice side effect of this fix is that the code in physical.c got a lot > simpler, as localnet ports are now handled mostly like local VIFs. > > Fixes: c02819293d52 ("ovn: Add "localnet

[ovs-dev] Problem in datapath flow: eth(bad key length 24, expected 12)

2016-01-24 Thread Han Zhou
I went into the "bad key length" in below datapath flow in a test environment: recirc_id(0x109),in_port(5),ct_state(-new+est-rel-inv+trk),eth(src=fa:16:3e:00:49:66,dst=fa:16:3e:ca:4a:20),eth_type(0x0800),ipv4(src= 22.22.22.4/255.255.255.252,dst=22.22.23.4,tos=0/0x3,ttl=64,frag=no), packets:4, byte

Re: [ovs-dev] ovn-northd: Logical_Port.port_addresses format

2016-01-22 Thread Han Zhou
On Fri, Jan 22, 2016 at 7:06 AM, Numan Siddique wrote: > > Hi All, > > I am working on the port security feature in ovn and implementing as per the port security proposal defined here [1]. > > If a logical port has one mac and multiple IP addresses (both ipv4 and ipv6), as per this proposal, Logic

  1   2   >