[ovs-dev] [PATCH] ovn-controller: add local address setting for ovn-remote connection

2016-04-27 Thread Huang Lei
From: Huang Lei In some environments, an interface may have multiple IP addresses in same subnet, if TCP client socket doesn't call bind() explicitly, OS will chooses an local IP and port for it, usually the primary IP of the subnet will be chosen. With this patch, a secondary IP of the s

Re: [ovs-dev] [PATCH 2/2] ovn-controller: add local address for ovn-remote connection

2016-04-22 Thread Huang, Lei
On 4/22/16, 11:21 PM, "dev on behalf of Ben Pfaff" wrote: >On Fri, Apr 22, 2016 at 04:14:25PM +0800, Huang Lei wrote: >> From: Huang Lei >> >> Add a local address option for ovn-controller's TCP socket which >> connect to southbound ovsdb-server. >

[ovs-dev] [PATCH 1/2] lib: parse_sockaddr_components() ignores bad port

2016-04-22 Thread Huang Lei
From: Huang Lei Bad port number erro is ignored in parse_sockaddr_components(), if port number is invalid, it ouputs a error log and set port to 0. Signed-off-by: Huang Lei --- lib/socket-util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/socket-util.c b/lib/socket-util.c index

[ovs-dev] [PATCH 2/2] ovn-controller: add local address for ovn-remote connection

2016-04-22 Thread Huang Lei
From: Huang Lei Add a local address option for ovn-controller's TCP socket which connect to southbound ovsdb-server. In a test environment, an interface may have multiple IP addresses in same subnet, if TCP client socket doesn't call bind() explicitly, OS chooses an ip and port for i

Re: [ovs-dev] [PATCH V4] ovn-controller: reload configured SB probe timer

2016-04-18 Thread Huang, Lei
obe_timer(const struct ovsrec_open_vswitch *cfg, >+char *key_name, >+int *ret_value_ptr) >+{ >+const char *probe_interval= smap_get(&cfg->external_ids, key_name); >+int ret_value_temp=0; /* Temporary location to hold the value, in case of >+

[ovs-dev] [PATCH v2] ovn-controller: optimize lex_token memory usage

2016-03-31 Thread Huang Lei
From: Huang Lei During our scalability test '2k HVs + 20k lports' we found that lexer is a major user of heap memory: - 5.22% ovn-controller libjemalloc.so.1[.] free - free + 27.46% lexer_get + 18.00% ofctrl_put ... - 1.85% ovn-controller libjem

[ovs-dev] [PATCH] ovn-controller: optimize lex_token memory usage

2016-03-24 Thread Huang Lei
From: Huang Lei During our scalability test '2k HVs + 20k lports' we found that lexer is a major user of heap memory: - 5.22% ovn-controller libjemalloc.so.1[.] free - free + 27.46% lexer_get + 18.00% ofctrl_put ... - 1.85% ovn-controller libjem

[ovs-dev] [PATH v4] ovn-controller: Add external-id 'ovn-remote-probe-interval'

2016-03-24 Thread Huang Lei
From: Huang Lei Add a external-id 'ovn-remote-probe-interval' for setting the activity probe interval of the json session from ovn-controller to the OVN southbound database. Signed-off-by: Huang Lei --- lib/ovsdb-idl.c | 9 + lib/o

Re: [ovs-dev] [PATCH v8 00/10] Implement incremental processing in ovn-controller

2016-03-20 Thread Huang, Lei
Hi Ryan, I plan to test this patch in our scalability test environment, but it conflicts with bce7cf on master, lfow_run()’s definition had been changed a lot. Would it be possible to get a rebase of this patch on current master? BR Huang Lei

Re: [ovs-dev] [PATCH] Add --enable-jemalloc argument to build

2016-03-13 Thread Huang, Lei
merged into mainstream. BR Huang Lei ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATH v3] ovn-controller: Add external-ids:ovn-remote-probe-interval

2016-02-29 Thread Huang Lei
From: Huang Lei For setting the inactivity probe interval of the json session from ovn-controller to the OVN southbound database. Signed-off-by: Huang Lei --- lib/ovsdb-idl.c | 10 ++ lib/ovsdb-idl.h | 4 ovn/controller/ovn-controller.8

Re: [ovs-dev] [PATCH v2] ovn-controller: Add external-ids:ovn-remote-probe-interval

2016-02-24 Thread Huang, Lei
Comments line. On Mon, Feb 22, 2016 at 12:50 AM, Huang Lei <148012...@qq.com<mailto:148012...@qq.com>> wrote: From: Huang Lei mailto:lhua...@ebay.com>> For setting the inactivity probe interval of the json session to the OVN southbound database. Signed-off-by: Hua

Re: [ovs-dev] [PATCH] ovn-controller: Add external-ids:ovn-remote-probe-interval

2016-02-22 Thread Huang, Lei
Thanks for your review. BR Huang Lei From: Andy Zhou mailto:az...@ovn.org>> Date: Monday, February 22, 2016 at 7:38 AM To: Huang Lei <148012...@qq.com<mailto:148012...@qq.com>> Cc: "dev@openvswitch.org<mailto:dev@openvswitch.org>" mailto:dev@openvswitc

[ovs-dev] [PATCH v2] ovn-controller: Add external-ids:ovn-remote-probe-interval

2016-02-22 Thread Huang Lei
From: Huang Lei For setting the inactivity probe interval of the json session to the OVN southbound database. Signed-off-by: Huang Lei --- lib/jsonrpc.c | 4 +++- lib/ovsdb-idl.c | 10 ++ lib/ovsdb-idl.h | 4 ovn

[ovs-dev] [PATCH] ovn-controller: Add external-ids:ovn-remote-probe-interval

2016-02-21 Thread Huang Lei
From: Huang Lei For setting the inactivity probe interval of the json session to the OVN southbound database. Signed-off-by: Huang Lei --- lib/ovsdb-idl.c | 10 ++ lib/ovsdb-idl.h | 3 +++ ovn/controller/ovn-controller.8.xml | 14

[ovs-dev] Need a probe_interval option for jsonrpc session to southbound ovsdb-server in ovn-controller

2016-02-16 Thread Huang, Lei
mote-inactivity-probe’ option, is it viable? Do you have other suggestions? BR. Huang Lei ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev