[ovs-dev] [PATCH monitor_cond V6 01/11] ovsdb: create column index mapping between ovsdb row to monitor row

2016-05-17 Thread Liran Schour
Columns indexing is different in ovsdb_row then in ovsdb_monitor_row. We need mapping between the 2 for condition evaluation. signed-off-by: Liran Schour --- ovsdb/monitor.c | 29 +++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/ovsdb/monitor.c b

[ovs-dev] [PATCH monitor_cond V6 06/11] ovsdb: enable jsonrpc-server to service "monitor_cond_update" request

2016-05-17 Thread Liran Schour
) man page for details of monitor_cond_update. Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 152 +++-- ovsdb/monitor.c| 254 +++-- ovsdb/monitor.h| 23 +++-- 3 files changed, 368 insertions(+), 61

[ovs-dev] [PATCH monitor_cond V6 03/11] ovsdb: allow unmonitored columns in condition evaluation

2016-05-17 Thread Liran Schour
condition update for code simplicity. Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 23 +++ ovsdb/monitor.c| 42 -- ovsdb/monitor.h| 2 +- 3 files changed, 44 insertions(+), 23 deletions(-) diff --git a/ovsdb

[ovs-dev] [PATCH monitor_cond V6 08/11] lib: add monitor_cond_update API to C IDL lib

2016-05-17 Thread Liran Schour
Add API that allows the user to create condition iteratively and send condition_update to the server. Signed-off-by: Liran Schour --- lib/ovsdb-idl-provider.h | 13 ++ lib/ovsdb-idl.c | 205 - lib/ovsdb-idl.h | 38 ++ ovsdb/ovsdb-idlc.in

[ovs-dev] [PATCH monitor_cond V6 02/11] ovsdb: add conditions utilities to support monitor_cond

2016-05-17 Thread Liran Schour
Change ovsdb_condition to be a 3-element json array or a boolean value. Conditions utilities will be used later for conditional monitoring. Signed-off-by: Liran Schour --- ovsdb/condition.c| 186 --- ovsdb/condition.h| 41

[ovs-dev] [PATCH monitor_cond V6 04/11] ovsdb: generate update notifications for monitor_cond session

2016-05-17 Thread Liran Schour
Hold session's conditions in ovsdb_monitor_session_condition. Pass it to ovsdb_monitor for generating "update2" notifications. Add functions that can generate "update2" notification for a "monitor_cond" session. JSON cache is enabled only for session's with true condition only. "monitor_cond" and "

[ovs-dev] [PATCH monitor_cond V6 00/11] Implement conditional monitoring

2016-05-17 Thread Liran Schour
46321 | 80130285454 | 6.1% Liran Schour (11): ovsdb: create column index mapping between ovsdb row to monitor row ovsdb: add conditions utilities to support monitor_cond ovsdb: allow unmonitored columns in condition evaluation ovsdb: generate update notifications for monitor_cond se

[ovs-dev] [PATCH monitor_cond V6 10/11] tests: add testing for idl conditional monitoring

2016-05-17 Thread Liran Schour
Add tests for conditional monitoring to IDL. Signed-off-by: Liran Schour --- tests/ovsdb-idl.at | 136 tests/test-ovsdb.c | 193 +++- tests/test-ovsdb.py | 27 3 files changed, 355 insertions(+), 1

[ovs-dev] [PATCH monitor_cond V6 11/11] RFC OVN: Quick implementation of conditional monitoring

2016-05-17 Thread Liran Schour
be created on local bridge if there is no port binded to the logical datapath on the local host. Signed-off-by: Liran Schour --- ovn/controller/binding.c| 114 +++- ovn/controller/binding.h| 4 +- ovn/controller/lport.c | 124

[ovs-dev] [PATCH monitor_cond V6 05/11] ovsdb-client: support monitor-cond method

2016-05-17 Thread Liran Schour
Add monitor_cond method to ovsdb-client. Add unit tests. See ovsdb-client(1) man page for details. Replace monitor2 with monitor_cond. Signed-off-by: Liran Schour --- NEWS| 3 +- lib/ovsdb-idl.c | 28 +++ ovsdb/jsonrpc-server.c | 14 ++-- ovsdb/jsonrpc

[ovs-dev] [PATCH monitor_cond V6 07/11] lib: add to ovsdb-idl monitor_id

2016-05-17 Thread Liran Schour
IDL uses now a uuid to specify a monitoring session that is being sent to the server on "monitor_cond" request. This uuid will be used to issue ongoing "monitor_cond_change" requests for this monitoring session. Signed-off-by: Liran Schour --- lib/ovsdb-idl.c | 17

[ovs-dev] [PATCH monitor_cond V6 09/11] python: move Python idl to work with monitor_cond

2016-05-17 Thread Liran Schour
Python idl works now with "monitor_cond" method. Add test for backward compatibility with old "monitor" method. Signed-off-by: Liran Schour --- python/ovs/db/data.py | 16 - python/ovs/db/idl.py | 172 -- tests/o

Re: [ovs-dev] [PATCH monitor_cond V6 11/11] RFC OVN: Quick implementation of conditional monitoring

2016-05-23 Thread Liran Schour
Darrell Ball wrote on 18/05/2016 03:56:30 AM: > On Tue, May 17, 2016 at 7:27 AM, Liran Schour wrote: > Conditional monitor of: Port_Binding, Logical_Flow, Multicast_Group > MAC_Binding tables. As a result ovn-controller will be notified only about > records belongs to a datapath t

Re: [ovs-dev] [PATCH monitor_cond V6 11/11] RFC OVN: Quick implementation of conditional monitoring

2016-05-23 Thread Liran Schour
Liran Schour/Haifa/IBM@IBMIL wrote on 17/05/2016 05:22:33 PM: > Conditional monitor of: Port_Binding, Logical_Flow, Multicast_Group > MAC_Binding tables. As a result ovn-controller will be notified only about > records belongs to a datapath that is being served by this hypervisor.

Re: [ovs-dev] [PATCH monitor_cond V6 11/11] RFC OVN: Quick implementation of conditional monitoring

2016-05-24 Thread Liran Schour
Ryan Moats/Omaha/IBM wrote on 23/05/2016 04:53:00 PM: > "dev" wrote on 05/23/2016 03:48:39 AM: > > > From: "Liran Schour" > > To: "Ben Pfaff" > > Cc: ovs-dev > > Date: 05/23/2016 03:49 AM > > Subject: Re: [ovs-dev] [

Re: [ovs-dev] [PATCH monitor_cond V6 01/11] ovsdb: create column index mapping between ovsdb row to monitor row

2016-06-06 Thread Liran Schour
Ben Pfaff wrote on 01/06/2016 09:18:46 PM: > On Tue, May 17, 2016 at 05:26:59PM +0300, Liran Schour wrote: > > Columns indexing is different in ovsdb_row then in ovsdb_monitor_row. > > We need mapping between the 2 for condition evaluation. > > > > signed-of

Re: [ovs-dev] [PATCH monitor_cond V6 02/11] ovsdb: add conditions utilities to support monitor_cond

2016-06-06 Thread Liran Schour
Ben Pfaff wrote on 01/06/2016 09:36:37 PM: > On Tue, May 17, 2016 at 05:27:00PM +0300, Liran Schour wrote: > > Change ovsdb_condition to be a 3-element json array or a boolean value. > > Conditions utilities will be used later for conditional monitoring. > > > >

Re: [ovs-dev] [PATCH monitor_cond V6 11/11] RFC OVN: Quick implementation of conditional monitoring

2016-06-06 Thread Liran Schour
Ben Pfaff wrote on 02/06/2016 08:38:10 PM: > On Tue, May 17, 2016 at 05:27:09PM +0300, Liran Schour wrote: > > Conditional monitor of: Port_Binding, Logical_Flow, Multicast_Group > > MAC_Binding tables. As a result ovn-controller will be notified only about > > records

Re: [ovs-dev] [PATCH monitor_cond V6 04/11] ovsdb: generate update notifications for monitor_cond session

2016-06-06 Thread Liran Schour
Ben Pfaff wrote on 02/06/2016 03:07:08 AM: > On Tue, May 17, 2016 at 05:27:02PM +0300, Liran Schour wrote: > > Hold session's conditions in ovsdb_monitor_session_condition. Pass it > > to ovsdb_monitor for generating "update2" notifications. > > Add

Re: [ovs-dev] [PATCH monitor_cond V6 05/11] ovsdb-client: support monitor-cond method

2016-06-06 Thread Liran Schour
Ben Pfaff wrote on 02/06/2016 03:15:57 AM: > On Tue, May 17, 2016 at 05:27:03PM +0300, Liran Schour wrote: > > Add monitor_cond method to ovsdb-client. Add unit tests. > > See ovsdb-client(1) man page for details. > > Replace monitor2 with monitor_cond. > > >

Re: [ovs-dev] [PATCH monitor_cond V6 07/11] lib: add to ovsdb-idl monitor_id

2016-06-06 Thread Liran Schour
Ben Pfaff wrote on 02/06/2016 07:47:20 PM: Seems like I review for 06/11 patch is missing... > On Tue, May 17, 2016 at 05:27:05PM +0300, Liran Schour wrote: > > IDL uses now a uuid to specify a monitoring session that is being > > sent to the server on "monitor_cond" re

Re: [ovs-dev] [PATCH monitor_cond V6 08/11] lib: add monitor_cond_update API to C IDL lib

2016-06-06 Thread Liran Schour
Ben Pfaff wrote on 02/06/2016 08:04:39 PM: > On Tue, May 17, 2016 at 05:27:06PM +0300, Liran Schour wrote: > > Add API that allows the user to create condition iteratively > > and send condition_update to the server. > > > > Signed-off-by: Liran Schour > >

Re: [ovs-dev] [PATCH monitor_cond V6 10/11] tests: add testing for idl conditional monitoring

2016-06-06 Thread Liran Schour
Ben Pfaff wrote on 02/06/2016 08:08:14 PM: > On Tue, May 17, 2016 at 05:27:08PM +0300, Liran Schour wrote: > > Add tests for conditional monitoring to IDL. > > > > Signed-off-by: Liran Schour > > Thanks for adding tests. > > Usually we squash tests for n

Re: [ovs-dev] [PATCH monitor_cond V6 11/11] RFC OVN: Quick implementation of conditional monitoring

2016-06-06 Thread Liran Schour
Ben Pfaff wrote on 06/06/2016 06:24:09 PM: > On Mon, Jun 06, 2016 at 01:05:19PM +0300, Liran Schour wrote: > > Ben Pfaff wrote on 02/06/2016 08:38:10 PM: > > > Looking at how all this fits together, it seems a little awkward to have > > > condition objects separa

[ovs-dev] [PATCH monitor_cond V9 03/12] ovsdb: allow unmonitored columns in condition evaluation

2016-07-18 Thread Liran Schour
condition update for code simplicity. Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 23 +++ ovsdb/monitor.c| 34 -- ovsdb/monitor.h| 2 +- 3 files changed, 36 insertions(+), 23 deletions(-) diff --git a/ovsdb/jsonrpc

[ovs-dev] [PATCH monitor_cond V9 08/12] lib: add to ovsdb-idl monitor_id

2016-07-18 Thread Liran Schour
IDL uses now a uuid to specify a monitoring session that is being sent to the server on "monitor_cond" request. This uuid will be used to issue ongoing "monitor_cond_change" requests for this monitoring session. Signed-off-by: Liran Schour --- lib/ovsdb-idl.c | 17

[ovs-dev] [PATCH monitor_cond V9 05/12] ovsdb: enable jsonrpc-server to service "monitor_cond_change" request

2016-07-18 Thread Liran Schour
details of monitor_cond_change. Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 147 +++- ovsdb/monitor.c | 254 +++- ovsdb/monitor.h | 32 +++--- ovsdb/ovsdb-server.1.in | 72 ++ 4 files ch

[ovs-dev] [PATCH monitor_cond V9 00/12] Conditional monitoring implementation

2016-07-18 Thread Liran Schour
. * Split added documentation according to patches. * Add to testing for monitor_cond_change method in ovsdb-client via unixctl command. * An update, if any, as a result of a condition change, will be sent to the client before the reply to the "monitor_cond_update" request. * Minor

[ovs-dev] [PATCH monitor_cond V9 04/12] ovsdb: generate update notifications for monitor_cond session

2016-07-18 Thread Liran Schour
Hold session's conditions in ovsdb_monitor_session_condition. Pass it to ovsdb_monitor for generating "update2" notifications. Add functions that can generate "update2" notification for a "monitor_cond" session. JSON cache is enabled only for session's with true condition only. "monitor_cond" and "

[ovs-dev] [PATCH monitor_cond V9 02/12] ovsdb: add conditions utilities to support monitor_cond

2016-07-18 Thread Liran Schour
Change ovsdb_condition to be a 3-element json array or a boolean value (see ovsdb-server man page). Conditions utilities will be used later for conditional monitoring. Signed-off-by: Liran Schour --- ovsdb/condition.c| 186 +++ ovsdb

[ovs-dev] [PATCH monitor_cond V9 06/12] ovsdb: optimize match_any_clause() condition evaluation

2016-07-18 Thread Liran Schour
Optimize ovsdb_condition_match_any_clause() to be in O(#columns in condition) and not O(#clauses) in case condition's caluses function is boolean or "==". Signed-off-by: Liran Schour --- ovsdb/condition.c | 114 +++- ovsdb/cond

[ovs-dev] [PATCH monitor_cond V9 11/12] ovn: Add datapath column to the MAC_Binding table

2016-07-18 Thread Liran Schour
This will allow ovn-controller to conditionally monitor MAC_Binding table according to datapath column. Signed-off-by: Liran Schour --- ovn/controller/pinctrl.c | 1 + ovn/ovn-sb.ovsschema | 6 -- ovn/ovn-sb.xml | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff

[ovs-dev] [PATCH monitor_cond V9 12/12] RFC OVN: Implementation of conditional monitoring usage

2016-07-18 Thread Liran Schour
| 37898342465 | 38647139083 | -1.9% 48 | 41637996229 | 41846616306 | -0.5% 50 | 41679995357 | 43455565977 | -4.2% Signed-off-by: Liran Schour --- ovn/controller/automake.mk | 4 +- ovn/controller/binding.c| 38 ++-- ovn/controller

[ovs-dev] [PATCH monitor_cond V9 07/12] ovsdb-client: support monitor-cond method

2016-07-18 Thread Liran Schour
Add monitor_cond method to ovsdb-client. Enable testing of monitor_cond_change via unixctl command.Add unit tests for monitor_cond and monitor_cond_change. See ovsdb-client(1) man page for details. Replace monitor2 with monitor_cond. Signed-off-by: Liran Schour --- NEWS| 3

[ovs-dev] [PATCH monitor_cond V9 01/12] ovsdb: create column index mapping between ovsdb row to monitor row

2016-07-18 Thread Liran Schour
Columns indexing is different in ovsdb_row then in ovsdb_monitor_row. We need mapping between the 2 for condition evaluation. signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 26 ++-- ovsdb/monitor.c| 65 +++--- ovsdb

[ovs-dev] [PATCH monitor_cond V9 09/12] python: move Python idl to work with monitor_cond

2016-07-18 Thread Liran Schour
Python idl works now with "monitor_cond" method. Add test for backward compatibility with old "monitor" method. Signed-off-by: Liran Schour --- python/ovs/db/data.py | 16 - python/ovs/db/idl.py | 172 -- tests/o

[ovs-dev] [PATCH monitor_cond V9 10/12] lib: add monitor_cond_change API to C IDL lib

2016-07-18 Thread Liran Schour
Add to IDL API that allows the user to add and remove clauses on a table's condition iteratively. IDL maintain tables condition and send monitor_cond_change to the server upon condition change. Add tests for conditional monitoring to IDL. Signed-off-by: Liran Schour --- lib/automa

[ovs-dev] [PATCH monitor_cond V9 04/12] ovsdb: generate update notifications for monitor_cond session

2016-07-18 Thread Liran Schour
| 41846616306 | -0.5% 50 | 41679995357 | 43455565977 | -4.2% Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 39 ++- ovsdb/monitor.c | 285 +++- ovsdb/monitor.h | 30 - ovsdb/ovsdb-server.1.in | 1

[ovs-dev] [PATCH monitor_cond V10] RFC OVN: Implementation of conditional monitoring usage

2016-07-19 Thread Liran Schour
| 37898342465 | 38647139083 | -1.9% 48 | 41637996229 | 41846616306 | -0.5% 50 | 41679995357 | 43455565977 | -4.2% Signed-off-by: Liran Schour --- ovn/controller/automake.mk | 4 +- ovn/controller/binding.c| 48 +++--- ovn/controller

Re: [ovs-dev] [PATCH monitor_cond V10] RFC OVN: Implementation of conditional monitoring usage

2016-07-21 Thread Liran Schour
Mickey Spiegel/San Jose/IBM wrote on 20/07/2016 08:53:42 AM: > From: Mickey Spiegel/San Jose/IBM > To: Liran Schour/Haifa/IBM@IBMIL > Cc: Ben Pfaff , dev@openvswitch.org > Date: 20/07/2016 08:53 AM > Subject: Re: [ovs-dev] [PATCH monitor_cond V10] RFC OVN: > Implementat

Re: [ovs-dev] Valgrind memory leak at ovsdb_monitor_table_condition_create

2016-07-24 Thread Liran Schour
William Tu wrote on 23/07/2016 04:20:10 AM: > From: William Tu > To: "" > Cc: Liran Schour/Haifa/IBM@IBMIL > Date: 23/07/2016 04:20 AM > Subject: Valgrind memory leak at ovsdb_monitor_table_condition_create > > Hi, > > Testcases which exercises this c

Re: [ovs-dev] [PATCH monitor_cond V10] RFC OVN: Implementation of conditional monitoring usage

2016-07-24 Thread Liran Schour
Ryan Moats/Omaha/IBM wrote on 24/07/2016 11:03:21 PM: > From: Ryan Moats/Omaha/IBM > To: Liran Schour > Cc: Ben Pfaff , dev@openvswitch.org > Date: 24/07/2016 11:03 PM > Subject: Re: [ovs-dev] [PATCH monitor_cond V10] RFC OVN: > Implementation of conditional monitoring usage

Re: [ovs-dev] [PATCH monitor_cond V10] RFC OVN: Implementation of conditional monitoring usage

2016-07-24 Thread Liran Schour
"dev" wrote on 25/07/2016 09:03:55 AM: > From: Liran Schour/Haifa/IBM@IBMIL > To: "Ryan Moats" > Cc: dev@openvswitch.org > Date: 25/07/2016 09:04 AM > Subject: Re: [ovs-dev] [PATCH monitor_cond V10] RFC OVN: > Implementation of conditional monitoring u

Re: [ovs-dev] [PATCH] ovn-controller: Handle physical changes correctly

2016-07-25 Thread Liran Schour
> From: Ryan Moats > To: dev@openvswitch.org > Date: 23/07/2016 12:57 AM > Subject: [ovs-dev] [PATCH] ovn-controller: Handle physical changes correctly > Sent by: "dev" > > [1] reported increased failure rates in certain tests > with incremental processing (the numbers are the number of failure

[ovs-dev] [PATCH] ovsdb: Fix memory leak reported by valgrind.

2016-07-25 Thread Liran Schour
Destroy shash on destroy of session's condition structure. Reported here: http://openvswitch.org/pipermail/dev/2016-July/075968.html Signed-off-by: Liran Schour --- ovsdb/monitor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ovsdb/monitor.c b/ovsdb/monitor.c index 99083e1..9a

Re: [ovs-dev] [ovs-dev,ovn-controller] Physical: persist tunnels

2016-07-26 Thread Liran Schour
t-ovn-nodes/blob/master/README.md > > > > [1] http://openvswitch.org/pipermail/dev/2016-July/076058.html > > > > Signed-off-by: Ryan Moats > > Acked-by: Flavio Fernandes > Tested-by: Flavio Fernandes > Tested this fix with a cluster of 50 hosts

[ovs-dev] [PATCH monitor_cond V11] ovn: implementation of conditional monitoring usage

2016-07-28 Thread Liran Schour
% 42 | 37898342465 | 38647139083 | -1.9% 48 | 41637996229 | 41846616306 | -0.5% 50 | 41679995357 | 43455565977 | -4.2% Signed-off-by: Liran Schour --- ovn/controller/automake.mk | 4 +- ovn/controller/binding.c| 45

Re: [ovs-dev] [patch_v1] ovn: Add datapaths of interest filtering (RFC).

2016-07-30 Thread Liran Schour
"dev" wrote on 29/07/2016 11:46:09 AM: > From: Darrell Ball > To: dlu...@gmail.com, d...@openvswitch.com, b...@ovn.org > Date: 29/07/2016 11:46 AM > Subject: [ovs-dev] [patch_v1] ovn: Add datapaths of interest filtering (RFC). > Sent by: "dev" > > This patch adds datapaths of interest support

Re: [ovs-dev] [PATCH monitor_cond V11] ovn: implementation of conditional monitoring usage

2016-08-02 Thread Liran Schour
Mickey Spiegel/San Jose/IBM wrote on 31/07/2016 08:59:29 PM: > > Comments inline with > > -"dev" wrote: - > To: Ben Pfaff > From: Liran Schour > Sent by: "dev" > Date: 07/28/2016 04:49AM > Cc: dev@openvswitch.org > Subject: [ovs-de

[ovs-dev] [PATCH monitor_cond V12 1/2] lib: fix bug on ovsdb_idl_condition_remove_clause()

2016-08-02 Thread Liran Schour
Call for poll_immediate_wake() when condition is changed. Signed-off-by: Liran Schour --- lib/ovsdb-idl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index d70fb10..7f4167c 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -811,6 +811,7 @@ void

[ovs-dev] [PATCH monitor_cond V12 2/2] ovn: implementation of conditional monitoring usage

2016-08-02 Thread Liran Schour
table to reduce the number of hops that is required to retrieve all datapaths. Signed-off-by: Liran Schour --- ovn/controller/automake.mk | 4 +- ovn/controller/binding.c| 35 +-- ovn/controller/binding.h| 4 +- ovn/controller/filter.c | 207

Re: [ovs-dev] [patch_v3] ovn: Add datapaths of interest filtering.

2016-08-04 Thread Liran Schour
"dev" wrote on 03/08/2016 09:09:48 AM: > From: Darrell Ball > To: dlu...@gmail.com, d...@openvswitch.com, b...@ovn.org > Date: 03/08/2016 09:10 AM > Subject: [ovs-dev] [patch_v3] ovn: Add datapaths of interest filtering. > Sent by: "dev" > > This patch adds datapaths of interest support where

[ovs-dev] ovn: conditional monitor feature

2016-08-08 Thread Liran Schour
Hi, Do we plan to include the ovn conditional monitoring usage in 2.6.0? Performance evaluation shows up to 75% reduction of computation at the ovn-controller and also a reduction of computation at the server side, depending at the spread of the logical networks over the physical hosts. (number

Re: [ovs-dev] [patch_v3] ovn: Add datapaths of interest filtering.

2016-08-10 Thread Liran Schour
Darrell Ball wrote on 09/08/2016 08:02:06 PM: > On Thu, Aug 4, 2016 at 3:26 AM, Liran Schour wrote: > "dev" wrote on 03/08/2016 09:09:48 AM: > > > From: Darrell Ball > > To: dlu...@gmail.com, d...@openvswitch.com, b...@ovn.org > > Date: 03/08/2016 09:1

Re: [ovs-dev] [PATCH monitor_cond V6 01/11] ovsdb: create column index mapping between ovsdb row to monitor row

2016-06-06 Thread Liran Schour
Ben Pfaff wrote on 06/06/2016 06:13:44 PM: > On Mon, Jun 06, 2016 at 01:11:44PM +0300, Liran Schour wrote: > > Ben Pfaff wrote on 01/06/2016 09:18:46 PM: > > > This new columns_index_map means that it's no longer necessary to work > > > so hard to find d

[ovs-dev] [PATCH monitor_cond V7 06/10] ovsdb-client: support monitor-cond method

2016-06-13 Thread Liran Schour
Add monitor_cond method to ovsdb-client. Enable testing of monitor_cond_change via unixctl command.Add unit tests for monitor_cond and monitor_cond_change. See ovsdb-client(1) man page for details. Replace monitor2 with monitor_cond. Signed-off-by: Liran Schour --- NEWS| 3

[ovs-dev] [PATCH monitor_cond V7 10/10] RFC OVN: Quick implementation of conditional monitoring

2016-06-13 Thread Liran Schour
by that conditions should be composed only from logical datapath IDs. In the meantime we first add the logical port to the conditions and on retrieval of port binding record, we add the logical datapath to the conditions. Signed-off-by: Liran Schour --- ovn/controller/binding.c| 108

[ovs-dev] [PATCH monitor_cond V7 04/10] ovsdb: generate update notifications for monitor_cond session

2016-06-13 Thread Liran Schour
Hold session's conditions in ovsdb_monitor_session_condition. Pass it to ovsdb_monitor for generating "update2" notifications. Add functions that can generate "update2" notification for a "monitor_cond" session. JSON cache is enabled only for session's with true condition only. "monitor_cond" and "

[ovs-dev] [PATCH monitor_cond V7 00/10] Conditional monitor implementation

2016-06-13 Thread Liran Schour
before the reply to the "monitor_cond_update" request. * Minor fixes due to review. Liran Schour (10): ovsdb: create column index mapping between ovsdb row to monitor row ovsdb: add conditions utilities to support monitor_cond ovsdb: allow unmonitored columns in condition evaluation ovsdb:

[ovs-dev] [PATCH monitor_cond V7 03/10] ovsdb: allow unmonitored columns in condition evaluation

2016-06-13 Thread Liran Schour
condition update for code simplicity. Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 23 +++ ovsdb/monitor.c| 34 -- ovsdb/monitor.h| 2 +- 3 files changed, 36 insertions(+), 23 deletions(-) diff --git a/ovsdb/jsonrpc

[ovs-dev] [PATCH monitor_cond V7 10/10] RFC OVN: Quick implementation of conditional monitoring

2016-06-13 Thread Liran Schour
by that conditions should be composed only from logical datapath IDs. In the meantime we first add the logical port to the conditions and on retrieval of port binding record, we add the logical datapath to the conditions. Signed-off-by: Liran Schour --- ovn/controller/binding.c| 108

[ovs-dev] [PATCH monitor_cond V7 02/10] ovsdb: add conditions utilities to support monitor_cond

2016-06-13 Thread Liran Schour
Change ovsdb_condition to be a 3-element json array or a boolean value (see ovsdb-server man page). Conditions utilities will be used later for conditional monitoring. Signed-off-by: Liran Schour --- ovsdb/condition.c| 188 +++ ovsdb

[ovs-dev] [PATCH monitor_cond V7 06/10] ovsdb-client: support monitor-cond method

2016-06-13 Thread Liran Schour
Add monitor_cond method to ovsdb-client. Enable testing of monitor_cond_change via unixctl command.Add unit tests for monitor_cond and monitor_cond_change. See ovsdb-client(1) man page for details. Replace monitor2 with monitor_cond. Signed-off-by: Liran Schour --- NEWS| 3

[ovs-dev] [PATCH monitor_cond V7 08/10] python: move Python idl to work with monitor_cond

2016-06-13 Thread Liran Schour
Python idl works now with "monitor_cond" method. Add test for backward compatibility with old "monitor" method. Signed-off-by: Liran Schour --- python/ovs/db/data.py | 16 - python/ovs/db/idl.py | 172 -- tests/o

[ovs-dev] [PATCH monitor_cond V7 01/10] ovsdb: create column index mapping between ovsdb row to monitor row

2016-06-13 Thread Liran Schour
Columns indexing is different in ovsdb_row then in ovsdb_monitor_row. We need mapping between the 2 for condition evaluation. signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 26 ++-- ovsdb/monitor.c| 65 +++--- ovsdb

[ovs-dev] [PATCH monitor_cond V7 05/10] ovsdb: enable jsonrpc-server to service "monitor_cond_change" request

2016-06-13 Thread Liran Schour
details of monitor_cond_change. Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 147 +++- ovsdb/monitor.c | 254 +++- ovsdb/monitor.h | 32 +++--- ovsdb/ovsdb-server.1.in | 72 ++ 4 files ch

[ovs-dev] [PATCH monitor_cond V7 09/10] lib: add monitor_cond_change API to C IDL lib

2016-06-13 Thread Liran Schour
Add to IDL API that allows the user to add and remove clauses on a table's condition iteratively. IDL maintain tables condition and send monitor_cond_change to the server upon condition change. Add tests for conditional monitoring to IDL. Signed-off-by: Liran Schour --- lib/automa

[ovs-dev] [PATCH monitor_cond V7 07/10] lib: add to ovsdb-idl monitor_id

2016-06-13 Thread Liran Schour
IDL uses now a uuid to specify a monitoring session that is being sent to the server on "monitor_cond" request. This uuid will be used to issue ongoing "monitor_cond_change" requests for this monitoring session. Signed-off-by: Liran Schour --- lib/ovsdb-idl.c | 17

[ovs-dev] [PATCH monitor_cond V7 04/10] ovsdb: generate update notifications for monitor_cond session

2016-06-13 Thread Liran Schour
Hold session's conditions in ovsdb_monitor_session_condition. Pass it to ovsdb_monitor for generating "update2" notifications. Add functions that can generate "update2" notification for a "monitor_cond" session. JSON cache is enabled only for session's with true condition only. "monitor_cond" and "

[ovs-dev] [PATCH monitor_cond V7 09/10] lib: add monitor_cond_change API to C IDL lib

2016-06-13 Thread Liran Schour
Add to IDL API that allows the user to add and remove clauses on a table's condition iteratively. IDL maintain tables condition and send monitor_cond_change to the server upon condition change. Add tests for conditional monitoring to IDL. Signed-off-by: Liran Schour --- lib/automa

[ovs-dev] [PATCH monitor_cond V7 00/10] Conditional monitor implementation

2016-06-13 Thread Liran Schour
before the reply to the "monitor_cond_update" request. * Minor fixes due to review. Liran Schour (10): ovsdb: create column index mapping between ovsdb row to monitor row ovsdb: add conditions utilities to support monitor_cond ovsdb: allow unmonitored columns in condition evaluation ovsdb:

[ovs-dev] [PATCH monitor_cond V7 07/10] lib: add to ovsdb-idl monitor_id

2016-06-13 Thread Liran Schour
IDL uses now a uuid to specify a monitoring session that is being sent to the server on "monitor_cond" request. This uuid will be used to issue ongoing "monitor_cond_change" requests for this monitoring session. Signed-off-by: Liran Schour --- lib/ovsdb-idl.c | 17

[ovs-dev] [PATCH monitor_cond V7 08/10] python: move Python idl to work with monitor_cond

2016-06-13 Thread Liran Schour
Python idl works now with "monitor_cond" method. Add test for backward compatibility with old "monitor" method. Signed-off-by: Liran Schour --- python/ovs/db/data.py | 16 - python/ovs/db/idl.py | 172 -- tests/o

[ovs-dev] [PATCH monitor_cond V7 02/10] ovsdb: add conditions utilities to support monitor_cond

2016-06-13 Thread Liran Schour
Change ovsdb_condition to be a 3-element json array or a boolean value (see ovsdb-server man page). Conditions utilities will be used later for conditional monitoring. Signed-off-by: Liran Schour --- ovsdb/condition.c| 188 +++ ovsdb

[ovs-dev] [PATCH monitor_cond V7 03/10] ovsdb: allow unmonitored columns in condition evaluation

2016-06-13 Thread Liran Schour
condition update for code simplicity. Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 23 +++ ovsdb/monitor.c| 34 -- ovsdb/monitor.h| 2 +- 3 files changed, 36 insertions(+), 23 deletions(-) diff --git a/ovsdb/jsonrpc

[ovs-dev] [PATCH monitor_cond V7 05/10] ovsdb: enable jsonrpc-server to service "monitor_cond_change" request

2016-06-13 Thread Liran Schour
details of monitor_cond_change. Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 147 +++- ovsdb/monitor.c | 254 +++- ovsdb/monitor.h | 32 +++--- ovsdb/ovsdb-server.1.in | 72 ++ 4 files ch

[ovs-dev] [PATCH monitor_cond V7 01/10] ovsdb: create column index mapping between ovsdb row to monitor row

2016-06-13 Thread Liran Schour
Columns indexing is different in ovsdb_row then in ovsdb_monitor_row. We need mapping between the 2 for condition evaluation. signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 26 ++-- ovsdb/monitor.c| 65 +++--- ovsdb

Re: [ovs-dev] [PATCH monitor_cond V7 00/10] Conditional monitor implementation

2016-06-13 Thread Liran Schour
Hui Kang/Watson/IBM wrote on 13/06/2016 07:58:41 PM: > "dev" wrote on 06/13/2016 07:19:25 AM: > > > From: Liran Schour > > To: b...@ovn.org > > Cc: d...@openvswitch.com > > Date: 06/13/2016 08:29 AM > > Subject: [ovs-dev] [PATCH monitor_cond V7

[ovs-dev] [PATCH monitor_cond V8 05/11] ovsdb: enable jsonrpc-server to service "monitor_cond_change" request

2016-06-27 Thread Liran Schour
details of monitor_cond_change. Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 147 +++- ovsdb/monitor.c | 254 +++- ovsdb/monitor.h | 32 +++--- ovsdb/ovsdb-server.1.in | 72 ++ 4 files ch

[ovs-dev] [PATCH monitor_cond V8 07/11] lib: add to ovsdb-idl monitor_id

2016-06-27 Thread Liran Schour
IDL uses now a uuid to specify a monitoring session that is being sent to the server on "monitor_cond" request. This uuid will be used to issue ongoing "monitor_cond_change" requests for this monitoring session. Signed-off-by: Liran Schour --- lib/ovsdb-idl.c | 17

[ovs-dev] [PATCH monitor_cond V8 03/11] ovsdb: allow unmonitored columns in condition evaluation

2016-06-27 Thread Liran Schour
condition update for code simplicity. Signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 23 +++ ovsdb/monitor.c| 34 -- ovsdb/monitor.h| 2 +- 3 files changed, 36 insertions(+), 23 deletions(-) diff --git a/ovsdb/jsonrpc

[ovs-dev] [PATCH monitor_cond V8 01/11] ovsdb: create column index mapping between ovsdb row to monitor row

2016-06-27 Thread Liran Schour
Columns indexing is different in ovsdb_row then in ovsdb_monitor_row. We need mapping between the 2 for condition evaluation. signed-off-by: Liran Schour --- ovsdb/jsonrpc-server.c | 26 ++-- ovsdb/monitor.c| 65 +++--- ovsdb

[ovs-dev] [PATCH monitor_cond V8 00/11] Conditional monitoring Implementation

2016-06-27 Thread Liran Schour
dd_column(). * Split added documentation according to patches. * Add to testing for monitor_cond_change method in ovsdb-client via unixctl command. * An update, if any, as a result of a condition change, will be sent to the client before the reply to the "monitor_cond_update" request. * Minor fi

[ovs-dev] [PATCH monitor_cond V8 06/11] ovsdb-client: support monitor-cond method

2016-06-27 Thread Liran Schour
Add monitor_cond method to ovsdb-client. Enable testing of monitor_cond_change via unixctl command.Add unit tests for monitor_cond and monitor_cond_change. See ovsdb-client(1) man page for details. Replace monitor2 with monitor_cond. Signed-off-by: Liran Schour --- NEWS| 3

[ovs-dev] [PATCH monitor_cond V8 11/11] RFC OVN: Implementation of conditional monitoring usage

2016-06-27 Thread Liran Schour
Conditional monitor of: Port_Binding, Logical_Flow, Multicast_Group MAC_Binding tables. As a result ovn-controller will be notified only about records belongs to a datapath that is being served by this hypervisor. Evaluation on simulated environment of 50 hosts and 1000 logical ports shows the fol

[ovs-dev] [PATCH monitor_cond V8 02/11] ovsdb: add conditions utilities to support monitor_cond

2016-06-27 Thread Liran Schour
Change ovsdb_condition to be a 3-element json array or a boolean value (see ovsdb-server man page). Conditions utilities will be used later for conditional monitoring. Signed-off-by: Liran Schour --- ovsdb/condition.c| 186 +++ ovsdb

[ovs-dev] [PATCH monitor_cond V8 08/11] python: move Python idl to work with monitor_cond

2016-06-27 Thread Liran Schour
Python idl works now with "monitor_cond" method. Add test for backward compatibility with old "monitor" method. Signed-off-by: Liran Schour --- python/ovs/db/data.py | 16 - python/ovs/db/idl.py | 172 -- tests/o

[ovs-dev] [PATCH monitor_cond V8 04/11] ovsdb: generate update notifications for monitor_cond session

2016-06-27 Thread Liran Schour
Hold session's conditions in ovsdb_monitor_session_condition. Pass it to ovsdb_monitor for generating "update2" notifications. Add functions that can generate "update2" notification for a "monitor_cond" session. JSON cache is enabled only for session's with true condition only. "monitor_cond" and "

[ovs-dev] [PATCH monitor_cond V8 10/11] ovn: Add datapath column to the MAC_Binding table

2016-06-27 Thread Liran Schour
This will allow ovn-controller to conditionally monitor MAC_Binding table according to datapath column. Signed-off-by: Liran Schour --- ovn/controller/pinctrl.c | 1 + ovn/ovn-sb.ovsschema | 6 -- ovn/ovn-sb.xml | 3 +++ 3 files changed, 8 insertions(+), 2 deletions(-) diff

[ovs-dev] [PATCH monitor_cond V8 09/11] lib: add monitor_cond_change API to C IDL lib

2016-06-27 Thread Liran Schour
Add to IDL API that allows the user to add and remove clauses on a table's condition iteratively. IDL maintain tables condition and send monitor_cond_change to the server upon condition change. Add tests for conditional monitoring to IDL. Signed-off-by: Liran Schour --- lib/automa

[ovs-dev] [PATCH] ofproto: Fix consistent hashing

2016-07-11 Thread Liran Schour
Hashing will not be consistent as long as we use for hashing the index of the bucket in the list (for remove/insert of buckets not from/to the end of the bucket list). Use bucket_id for hashing instead. Signed-off-by: Liran Schour --- ofproto/ofproto-dpif-xlate.c | 5 ++--- 1 file changed, 2

[ovs-dev] [PATCH 2/2] ovsdb: Return NULL if prev_txn == next_txn

2016-02-20 Thread Liran Schour
In case that we flushed everything already, we can immeidately return NULL. Signed-off-by: Liran Schour --- ovsdb/monitor.c | 4 1 file changed, 4 insertions(+) diff --git a/ovsdb/monitor.c b/ovsdb/monitor.c index 5ae9cdb..1a07f19 100644 --- a/ovsdb/monitor.c +++ b/ovsdb/monitor.c

[ovs-dev] [PATCH 1/2] tests: Fix inconsistency tests in monitor

2016-02-20 Thread Liran Schour
In case of delete only: !initial,!insert,!modify. We can not be sure that we will see X if we have: insert X, delete X. In case of modify only: !initial,!insert,!delete. We can not be sure that we will see X modified if we have: insert X, modify X, delete X. Signed-off-by: Liran Schour

Re: [ovs-dev] [ovsdb monitor fix v2 1/3] ovsdb: Fix one off error in tracking monitor changes

2016-02-23 Thread Liran Schour
hmap_remove(&changes->rows, &change->hmap_node); free(change); -> Here we remove the entire change and the client never been notified about that } } } } Otherwise this patch series looks good and

Re: [ovs-dev] [ovsdb monitor fix v2 1/3] ovsdb: Fix one off error in tracking monitor changes

2016-02-23 Thread Liran Schour
gt; change->new = NULL; > > if (!change->old) { > /* This row was added then deleted. Forget about it. */ > hmap_remove(&changes->rows, &change->hmap_node); > free(change); >

Re: [ovs-dev] [PATCH monitor_cond V4 02/17] ovsdb: add conditions utilities to support monitor_cond

2016-02-24 Thread Liran Schour
Ben Pfaff wrote on 25/02/2016 02:25:32 AM: > On Thu, Feb 18, 2016 at 11:46:40AM +0000, Liran Schour wrote: > > Change ovsdb_condition to be a 3-element json array or a boolean value. > > Conditions utilities will be used later for conditional monitoring. > > > >

Re: [ovs-dev] [PATCH monitor_cond V4 01/17] ovsdb: create column index mapping between ovsdb row to monitor row

2016-02-25 Thread Liran Schour
Ben Pfaff wrote on 25/02/2016 06:47:36 PM: > On Thu, Feb 18, 2016 at 11:46:39AM +0000, Liran Schour wrote: > > Columns indexing is different in ovsdb_row then in ovsdb_monitor_row. > > We need mapping between the 2 for condition evaluation. > > > >

Re: [ovs-dev] [PATCH monitor_cond V4 03/17] ovsdb: allow none monitored columns for condition evaluation

2016-02-25 Thread Liran Schour
Ben Pfaff wrote on 25/02/2016 09:16:39 PM: > On Thu, Feb 18, 2016 at 11:46:41AM +0000, Liran Schour wrote: > > This commit allows to add none monitored columns to a monitored table > > due to condition update. > > It will be used to evaluate conditions on non-monitore

[ovs-dev] [PATCH monitor_cond V5 00/18] Implement conditional monitoring

2016-03-04 Thread Liran Schour
result of monitor_cond_update command. * Clarifications in ovsdb-server(1) man page. * Bug fix in ovsdb_monitor_get_all_rows() * Fix style issues Liran Schour (18): ovsdb: create column index mapping between ovsdb row to monitor row ovsdb: add conditions utilities to support monitor_cond

[ovs-dev] [PATCH monitor_cond V5 03/18] ovsdb: allow unmonitored columns in condition evaluation

2016-03-04 Thread Liran Schour
condition update to keep the code simple. Signed-off-by: Liran Schour --- v4->v5: * None monitored --> unmonitored v3->v4: * Do not add duplicated none-monitored column --- ovsdb/jsonrpc-server.c | 23 +++ ovsdb/monitor.c

  1   2   3   >