[ovs-dev] [ovsdb speedup 00/18] improve ovsdb connection scaling

2015-03-19 Thread Andy Zhou
This patch set implements two ideas improve ovsdb connection scaling: * Allow multiple jsonrpc connection to share a single ovsdb monitor, thus maintaining a single set of changes. * With in the same monitor, cache the json object generated for an update. If the same update is requested by a

[ovs-dev] [ovsdb speedup 01/18] ovsdb: refactoring jsonrpc-server.c

2015-03-19 Thread Andy Zhou
jsonrpc-server.c has two main functions. One deals with handling the jsonrpc connections, the other deals with monitoring the database. Currently, each jsonrpc connections has its own set of DB monitors. This can be wasteful if a number of connections shares the same monitors. This patch, and a f

[ovs-dev] [ovsdb speedup 04/18] ovsdb: refactor ovsdb_monitor_add_column()

2015-03-19 Thread Andy Zhou
To hide ovsdb_monitor_table object from ovsdb_jsonrpc serve. Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-server.c | 22 ++ 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/jsonrpc-server.c index 1241537..973cc46 100644 --- a/ovsdb/j

[ovs-dev] [ovsdb speedup 03/18] ovsdb: refactor ovsdb_jsonrpc_parse_monitor_request

2015-03-19 Thread Andy Zhou
Change ovsdb_jsonrpc_parse_monitor_request() to make ovsdb_monitor_table an opaque object. Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-server.c | 73 +- 1 file changed, 54 insertions(+), 19 deletions(-) diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/j

[ovs-dev] [ovsdb speedup 02/18] ovsdb: make setting mt->select into its own functions

2015-03-19 Thread Andy Zhou
To make ovsdb_monitor an opaque to ovsdb_jsonrpc server object. Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-server.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/jsonrpc-server.c index 5fdf08b..ba0e28c 100644 --- a/ovsdb/jsonrpc-server

[ovs-dev] [ovsdb speedup 05/18] ovsdb: refactoring ovsdb_jsonrpc_monitor_compose_table_update()

2015-03-19 Thread Andy Zhou
Now it simply calls ovsdb_monitor_compose_table_update(), which is actually creates the json object. Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-server.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/jsonrpc-server.c index 973c

[ovs-dev] [ovsdb speedup 06/18] ovsdb: refactoring ovsdb_jsonrpc_monitor_needs_flush

2015-03-19 Thread Andy Zhou
split out per monitoring needs_flush() into ovsdb_monitor_needs_flush(). Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-server.c | 25 + 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/jsonrpc-server.c index a25a6f1..0630664 10064

[ovs-dev] [ovsdb speedup 07/18] ovsdb: rename ovsdb_jsonrpc_monitor_get_initial()

2015-03-19 Thread Andy Zhou
rename ovsdb_jsonrpc_monitor_get_initial() to ovsdb_monitor_get_initial() Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-server.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/ovsdb/jsonrpc-server.c b/ovsdb/jsonrpc-server.c index 0630664..886062c 100644 --- a/ovs

[ovs-dev] [ovsdb speedup 08/18] ovsdb: refactoring ovsdb_monitor_destroy()

2015-03-19 Thread Andy Zhou
Add ovsdb_minitor_destory() function to properly cleanup ovsdb_monitor. It is also responsible for unhook from the replica chain. The replica destroy callback is now called ovsdb_monitor_destroy_callback() Minor variable renaming in ovsdb_monitor_create() to make it more consistent. Signed-off-b

[ovs-dev] [ovsdb speedup 09/18] ovsdb: Split out monitor backend functions to ovsdb-monitor.c/h

2015-03-19 Thread Andy Zhou
Added new files ovsdb-monitor.[ch] for monitor backend functions. There is no functional changes. Signed-off-by: Andy Zhou --- ovsdb/automake.mk | 2 + ovsdb/jsonrpc-server.c | 577 +--- ovsdb/jsonrpc-server.h | 3 + ovsdb/ovsdb-monitor.c | 5

[ovs-dev] [PATCH 10/20] ovsdb: refactoring ovsdb_monitor_destroy()

2015-03-19 Thread Andy Zhou
Add ovsdb_minitor_destory() function to properly cleanup ovsdb_monitor. It is also responsible for unhook from the replica chain. The replica destroy callback is now called ovsdb_monitor_destroy_callback() Minor variable renaming in ovsdb_monitor_create() to make it more consistent. Signed-off-b

[ovs-dev] [ovsdb speedup 10/18] ovsdb: refactoring ovsdb_monitor_get_initial

2015-03-19 Thread Andy Zhou
Refactoring ovsdb_monitor_get_initial() to not generate JSON object. It only collect changes within the ovsdb_monitor(). ovsdb_jsonrpc_monitor_compose_table_update() is then used to generate JSON object. This change will also make future patch easier. Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-

[ovs-dev] [ovsdb speedup 11/18] ovsdb: ovsdb-monitor stores jsonrpc-monitor in a linked-list

2015-03-19 Thread Andy Zhou
Currently, each ovsdb-monitor points to a single jsonrpc_monitor object. This means there is 1:1 relationship between them. In case multiple jsonrpc-monitors needs to monitor the same tables and the columns within them, then can share a single ovsdb-monitor, so the updates only needs to be maintai

[ovs-dev] [PATCH 11/20] ovsdb: Split out monitor backend functions to ovsdb-monitor.c/h

2015-03-19 Thread Andy Zhou
Added new files ovsdb-monitor.[ch] for monitor backend functions. There is no functional changes. Signed-off-by: Andy Zhou --- ovsdb/automake.mk | 2 + ovsdb/jsonrpc-server.c | 577 +--- ovsdb/jsonrpc-server.h | 3 + ovsdb/ovsdb-monitor.c | 5

[ovs-dev] [PATCH 12/20] ovsdb: refactoring ovsdb_monitor_get_initial

2015-03-19 Thread Andy Zhou
Refactoring ovsdb_monitor_get_initial() to not generate JSON object. It only collect changes within the ovsdb_monitor(). ovsdb_jsonrpc_monitor_compose_table_update() is then used to generate JSON object. This change will also make future patch easier. Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-

[ovs-dev] [ovsdb speedup 12/18] ovsdb: add transaction ids

2015-03-19 Thread Andy Zhou
With N:1 mappings, multiple jsonrpc server may be servicing the rpc connection at a different pace. ovsdb-monitor thus needs to maintain different change sets, depends on connection speed of each rpc connections. Connections servicing at the same speed can share the same change set. Transaction ID

[ovs-dev] [PATCH 13/20] ovsdb: ovsdb-monitor stores jsonrpc-monitor in a linked-list

2015-03-19 Thread Andy Zhou
Currently, each ovsdb-monitor points to a single jsonrpc_monitor object. This means there is 1:1 relationship between them. In case multiple jsonrpc-monitors needs to monitor the same tables and the columns within them, then can share a single ovsdb-monitor, so the updates only needs to be maintai

[ovs-dev] [ovsdb speedup 14/18] ovsdb: add ovsdb_monitor_changes

2015-03-19 Thread Andy Zhou
Currently, each monitor table contains a single hmap 'changes' to track updates. This patch introduces a new data structure 'ovsdb_monitor_changes' that stores the updates 'rows' tagged by its first commit transaction id. Each 'ovsdb_monitor_changes' is refenece counted allowing multiple jsonrpc_mo

[ovs-dev] [ovsdb speedup 18/18] ovsdb: add json cache

2015-03-19 Thread Andy Zhou
Although multiple jsonrpc monitor can share the same ovsdb monitor, each change still needs to transalted into json object from scratch. This can be wastful is mutiple jsonrpc monitors are interested in the same changes. Json chche impoves this by keeping an copy of json object generated for trans

[ovs-dev] [ovsdb speedup 15/18] ovsdb: allow a list of 'ovsdb_monitor_changes' in each ovsdb monitor table

2015-03-19 Thread Andy Zhou
Signed-off-by: Andy Zhou --- ovsdb/ovsdb-monitor.c | 124 ++ 1 file changed, 85 insertions(+), 39 deletions(-) diff --git a/ovsdb/ovsdb-monitor.c b/ovsdb/ovsdb-monitor.c index a1efa66..3259f3c 100644 --- a/ovsdb/ovsdb-monitor.c +++ b/ovsdb/ovsdb-mo

[ovs-dev] [PATCH 15/20] ovsdb: rename jsonrpc_monitor_compose_table_update()

2015-03-19 Thread Andy Zhou
jsonrpc_monitor_compse_update() seems fit better than jsonrpc_monitor_compose_table_update(), since it composes changes from all tables. Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-server.c | 12 ++-- ovsdb/ovsdb-monitor.c | 4 ++-- ovsdb/ovsdb-monitor.h | 4 ++-- 3 files changed, 10

[ovs-dev] [PATCH 16/20] ovsdb: add ovsdb_monitor_changes

2015-03-19 Thread Andy Zhou
Currently, each monitor table contains a single hmap 'changes' to track updates. This patch introduces a new data structure 'ovsdb_monitor_changes' that stores the updates 'rows' tagged by its first commit transaction id. Each 'ovsdb_monitor_changes' is refenece counted allowing multiple jsonrpc_mo

[ovs-dev] [ovsdb speedup 16/18] ovsdb: refactor ovsdb_monitor_create()

2015-03-19 Thread Andy Zhou
Add ovsdb_monitor_add_jsonrpc_monitor(). This change will allow ovsdb_monitor to be reference counted. Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-server.c | 2 ++ ovsdb/ovsdb-monitor.c | 16 +++- ovsdb/ovsdb-monitor.h | 3 +++ 3 files changed, 16 insertions(+), 5 deletions(-) di

[ovs-dev] [PATCH 17/20] ovsdb: allow a list of 'ovsdb_monitor_changes' in each ovsdb monitor table

2015-03-19 Thread Andy Zhou
Signed-off-by: Andy Zhou --- ovsdb/ovsdb-monitor.c | 124 ++ 1 file changed, 85 insertions(+), 39 deletions(-) diff --git a/ovsdb/ovsdb-monitor.c b/ovsdb/ovsdb-monitor.c index a1efa66..3259f3c 100644 --- a/ovsdb/ovsdb-monitor.c +++ b/ovsdb/ovsdb-mo

[ovs-dev] [PATCH 18/20] ovsdb: refactor ovsdb_monitor_create()

2015-03-19 Thread Andy Zhou
Add ovsdb_monitor_add_jsonrpc_monitor(). This change will allow ovsdb_monitor to be reference counted. Signed-off-by: Andy Zhou --- ovsdb/jsonrpc-server.c | 2 ++ ovsdb/ovsdb-monitor.c | 16 +++- ovsdb/ovsdb-monitor.h | 3 +++ 3 files changed, 16 insertions(+), 5 deletions(-) di

[ovs-dev] [PATCH 19/20] ovsdb: allow multiple jsonrpc monitors to share a single ovsdb monitor

2015-03-19 Thread Andy Zhou
Store ovsdb monitor in global hmap. A newly created ovsdb monitor object will first search the global hmap for a possible match. If one is found, the existing ovsdb monitor is used instead. With this patch, jsonrpc monitor and ovsdb monitor now have N:1 mapping. Signed-off-by: Andy Zhou --- ovs

[ovs-dev] [PATCH 20/20] ovsdb: add json cache

2015-03-19 Thread Andy Zhou
Although multiple jsonrpc monitor can share the same ovsdb monitor, each change still needs to transalted into json object from scratch. This can be wastful is mutiple jsonrpc monitors are interested in the same changes. Json chche impoves this by keeping an copy of json object generated for trans

[ovs-dev] [PATCH 14/20] ovsdb: add transaction ids

2015-03-19 Thread Andy Zhou
With N:1 mappings, multiple jsonrpc server may be servicing the rpc connection at a different pace. ovsdb-monitor thus needs to maintain different change sets, depends on connection speed of each rpc connections. Connections servicing at the same speed can share the same change set. Transaction ID

Re: [ovs-dev] [ovsdb speedup 00/18] improve ovsdb connection scaling

2015-03-19 Thread Andy Zhou
It appears that I sent out some old patch files in error. Sorry. The set of 18 is the set for review. The set of 20 is an older set, please disregard them. On Thu, Mar 19, 2015 at 12:08 AM, Andy Zhou wrote: > This patch set implements two ideas improve ovsdb connection scaling: > > * Allow mul

[ovs-dev] Returned mail: see transcript for details

2015-03-19 Thread Returned mail
The original message was received at Thu, 19 Mar 2015 16:59:42 +0800 from openvswitch.org [142.149.211.165] - The following addresses had permanent fatal errors - dev@openvswitch.org - Transcript of session follows - ... while talking to 18.174.192.14: 554 5.0.0 Service unavailab

Re: [ovs-dev] Costumoized actions

2015-03-19 Thread Raul Suarez Marin
Hello again, At lib/dpif.c in function "dpif_operate" there is a line that is being called. dpif->dpif_class->operate(dpif, ops, chunk); This is possibly the actions are performed, but I have no clue how to know what function this line leads to. In lib/dpif-provider.h I can find the definition f

Re: [ovs-dev] [PATCH v2] automake.mk: Improve schema checksum error message.

2015-03-19 Thread O Mahony, Billy
Hi Ben, This was originally authored by Mark as part of an earlier patch set - http://openvswitch.org/pipermail/dev/2015-March/052123.html I am handling the rework of same hence the dual sign-off. Is there a preferred way to handled situations like this? Cheers, Billy -Original Message--

Re: [ovs-dev] [PATCH v2] automake.mk: Improve schema checksum error message.

2015-03-19 Thread Ben Pfaff
To indicate that the author is different from the submitter, the first line in the body of the email should be: From: Author Name "git send-email" does that automatically if the author and submitter are different. On Thu, Mar 19, 2015 at 11:41:19AM +, O Mahony, Billy wrote: > Hi Ben,

Re: [ovs-dev] [PATCH v2] automake.mk: Improve schema checksum error message.

2015-03-19 Thread Ben Pfaff
I change the author to Mark and applied this to master. Thank you! On Thu, Mar 19, 2015 at 06:34:09AM -0700, Ben Pfaff wrote: > To indicate that the author is different from the submitter, the first > line in the body of the email should be: > From: Author Name > "git send-email" does th

Re: [ovs-dev] [ovsdb speedup 00/18] improve ovsdb connection scaling

2015-03-19 Thread Ben Pfaff
Thanks for the hint! I was starting to get confused. On Thu, Mar 19, 2015 at 01:50:31AM -0700, Andy Zhou wrote: > It appears that I sent out some old patch files in error. Sorry. > > The set of 18 is the set for review. The set of 20 is an older set, > please disregard them. > > > > On Thu, M

Re: [ovs-dev] [PATCH v2] automake.mk: Improve schema checksum error message.

2015-03-19 Thread O Mahony, Billy
Thanks, Ben. I'll follow the method you outlined for subsequent patches. Billy. -Original Message- From: Ben Pfaff [mailto:b...@nicira.com] Sent: Thursday, March 19, 2015 1:39 PM To: O Mahony, Billy Cc: dev@openvswitch.org Subject: Re: [ovs-dev] [PATCH v2] automake.mk: Improve schema ch

[ovs-dev] (no subject)

2015-03-19 Thread dev-bounces
___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] IBSP Project Attached Letter

2015-03-19 Thread F.T FAGEBUDER
View IBSP/UNESCO Attached Letter ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] ovn: Design and Schema changes for Container integration.

2015-03-19 Thread Gurucharan Shetty
The design was come up after inputs and discussions with multiple people, including (in alphabetical order) Aaron Rosen, Ben Pfaff, Ganesan Chandrashekhar, Justin Pettit, Russell Bryant and Somik Behera. Signed-off-by: Gurucharan Shetty --- ovn/CONTAINERS.OpenStack.md | 114

[ovs-dev] [PATCH] ovn-architecture: Provide the correct daemon name.

2015-03-19 Thread Gurucharan Shetty
It is ovn-nbd and not ovs-nbd. Signed-off-by: Gurucharan Shetty --- ovn/ovn-architecture.7.xml |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ovn/ovn-architecture.7.xml b/ovn/ovn-architecture.7.xml index a5b0807..035527f 100644 --- a/ovn/ovn-architecture.7.xml +++

Re: [ovs-dev] [PATCH] ovn-architecture: Provide the correct daemon name.

2015-03-19 Thread Justin Pettit
Looks good. It looks like there's another one in "ovn-nb.xml". Acked-by: Justin Pettit --Justin > On Mar 19, 2015, at 7:32 AM, Gurucharan Shetty wrote: > > It is ovn-nbd and not ovs-nbd. > > Signed-off-by: Gurucharan Shetty > --- > ovn/ovn-architecture.7.xml |8 > 1 file chang

Re: [ovs-dev] [PATCH] ovn-architecture: Provide the correct daemon name.

2015-03-19 Thread Ben Pfaff
On Thu, Mar 19, 2015 at 07:32:28AM -0700, Gurucharan Shetty wrote: > It is ovn-nbd and not ovs-nbd. > > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] dpif-netdev: Wait for threads to quiesce before freeing port.

2015-03-19 Thread Daniele Di Proietto
port_unref() shouldn't immediately free the port and close the netdev, because otherwise threads that still have a pointer to the port would crash. This commit fixes the problem by introducing an ovsrcu_synchronize() call in port_unref(). I chose not to use ovsrcu_postpone(), because postponing t

[ovs-dev] (no subject)

2015-03-19 Thread dev-bounces
___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] ovn: Design and Schema changes for Container integration.

2015-03-19 Thread Russell Bryant
On 03/19/2015 10:31 AM, Gurucharan Shetty wrote: > The design was come up after inputs and discussions with multiple > people, including (in alphabetical order) Aaron Rosen, Ben Pfaff, > Ganesan Chandrashekhar, Justin Pettit, Russell Bryant and Somik Behera. > > Signed-off-by: Gurucharan Shetty >

Re: [ovs-dev] [PATCH] ovn: Design and Schema changes for Container integration.

2015-03-19 Thread Gurucharan Shetty
> > Could you summarize the difference from v2? I don't recall any real > discussion about v2 on the list other than our brief exchange about the > 4096 CIFs limitation. Sorry about that. There are only 2 differences between the [RFC v2] and this more official patch. 1. Expanded introduction to CI

Re: [ovs-dev] [PATCH] ovn: Design and Schema changes for Container integration.

2015-03-19 Thread Ben Pfaff
On Thu, Mar 19, 2015 at 10:07:40AM -0700, Gurucharan Shetty wrote: > > > > Could you summarize the difference from v2? I don't recall any real > > discussion about v2 on the list other than our brief exchange about the > > 4096 CIFs limitation. > Sorry about that. There are only 2 differences betw

Re: [ovs-dev] [PATCH 1/6] netdev-dpdk: create smaller mempools in case of failure

2015-03-19 Thread Gray, Mark D
> From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Daniele Di > Proietto > Sent: Thursday, March 12, 2015 6:05 PM > > If rte_mempool_create() fails with ENOMEM, try asking for a smaller > mempools. This patch enables OVS DPDK to run on systems without 1GB > hugepages > > Signed-off-by

Re: [ovs-dev] [PATCH 0/6] DPDK: simplify configuration

2015-03-19 Thread Gray, Mark D
> -Original Message- > From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Traynor, > Kevin > Sent: Monday, March 16, 2015 6:46 PM [snip] > > > > > > Hi, I've reviewed this patchset - few comments/questions on it… > > > > Hi Kevin, thanks > > > > > I haven't tested yet - but I'm

Re: [ovs-dev] [PATCH 0/6] DPDK: simplify configuration

2015-03-19 Thread Gray, Mark D
> -Original Message- > From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Daniele Di > Proietto > Sent: Thursday, March 12, 2015 6:05 PM > This series improves OVS configuration with DPDK in three ways: > > * netdev-dpdk is patched to work on smaller systems (without 1GB > hugep

[ovs-dev] 3Com Users

2015-03-19 Thread Kina Lawrence
Hi, Would you be interested in Acquiring 3Com Users contacts list of 2015? Information Fields - Name, Title, Email, Phone, Company Name, Physical Address, City, State, Zip Code, Country, Web Address, Employee Size, Revenue Size and Industry. We also have other technology users like:

Re: [ovs-dev] [PATCH 1/6] netdev-dpdk: create smaller mempools in case of failure

2015-03-19 Thread Daniele Di Proietto
> On 19 Mar 2015, at 18:05, Gray, Mark D wrote: > >> From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Daniele Di >> Proietto >> Sent: Thursday, March 12, 2015 6:05 PM > >> >> If rte_mempool_create() fails with ENOMEM, try asking for a smaller >> mempools. This patch enables OVS DPDK

Re: [ovs-dev] [PATCH 0/6] DPDK: simplify configuration

2015-03-19 Thread Gray, Mark D
> From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Gray, Mark > D > Sent: Thursday, March 19, 2015 6:19 PM > To: Traynor, Kevin; Daniele Di Proietto > Subject: Re: [ovs-dev] [PATCH 0/6] DPDK: simplify configuration > > [snip] > > > > > > > > Hi, I've reviewed this patchset - few comment

Re: [ovs-dev] [PATCH] ovn: Design and Schema changes for Container integration.

2015-03-19 Thread Gurucharan Shetty
> It might be worth giving the back-story on rationale for change #2. Here is the backstory: Before the introduction to Container (spawned inside VMs) networking in OVN, OVN's architecture was designed with VMs in mind. In this case, ovn-controller could create a record in Bindings table as soon as

[ovs-dev] [PATCH RFC 0/1] netdev-dpdk.c: add dpdk vhost-user ports

2015-03-19 Thread Ciara Loftus
This RFC patch makes use of the vhost-user implementation that will be available in DPDK 2.0. Submitting as RFC as this implementation depends on a stable version of DPDK 2.0 and following that, OVS support for DPDK 2.0. As such, this patch can be considered experimental. This patch builds on top

[ovs-dev] [PATCH RFC 1/1] netdev-dpdk: add dpdk vhost-user ports

2015-03-19 Thread Ciara Loftus
This patch adds support for a new port type to the userspace datapath called dpdkvhostuser. It adds to the existing infrastructure of vhost-cuse, however disables vhost-cuse ports in favour of vhost-user ports. A new dpdkvhostuser port will create a unix domain socket which when provided to QEMU i

Re: [ovs-dev] [PATCH 1/6] netdev-dpdk: create smaller mempools in case of failure

2015-03-19 Thread Gray, Mark D
> > I wasn’t aware of this restriction. It’s (very) briefly stated in > INSTALL.DPDK.md under ‘Restrictions:’, though. > > Do you maybe want to send a patch to clarify this? You clearly have a better > understanding of the issue :-) > Sure thing, I will do this. ___

Re: [ovs-dev] Costumoized actions

2015-03-19 Thread Jarno Rajahalme
Raúl, The dip class functions are implemented by the different dip classes. Linux and Windows data paths are interfaced by lib/dpif-netlink.c and the userspace datapath is implemented in lib/dpif-netlink.c. You’ll find a class struct with the local function pointers in those files, just search

[ovs-dev] [PATCH] ovn: add start of ovn-nbctl

2015-03-19 Thread Russell Bryant
ovn-nbctl is intended to be a utility for manually interacting with the OVN northbound db. A real consumer of OVN, such as OpenStack, should be using ovsdb directly. However, a utility like this is useful during development and testing of both ovn itself as well as the OpenStack Neutron plugin.

Re: [ovs-dev] [PATCH 1/6] netdev-dpdk: create smaller mempools in case of failure

2015-03-19 Thread Ethan Jackson
I suppose my only question with this patch is why we can't just allocate MIN_NB_MBUF sized pools in the first place. Acked-by: Ethan Jackson On Thu, Mar 12, 2015 at 11:04 AM, Daniele Di Proietto wrote: > If rte_mempool_create() fails with ENOMEM, try asking for a smaller > mempools. This patch

Re: [ovs-dev] [PATCH] dpif-netdev: Wait for threads to quiesce before freeing port.

2015-03-19 Thread Jarno Rajahalme
Acked-by: Jarno Rajahalme Ben may also want to have a look, as commits 98de6bebb (dpif-netdev: Fix another use-after-free in port_unref().) and 87400a3d4cc4a (dpif-netdev: Fix use-after-free in port_unref().) by him have fixed earlier problems related to this. I did not check the changes in th

Re: [ovs-dev] Costumoized actions

2015-03-19 Thread Raul Suarez Marin
Thanks Jarno for the hints! I found this function looking for ", struct dpif_op " term in every file. static void dpif_linux_operate(struct dpif *dpif_, struct dpif_op **ops, size_t n_ops) The main lines in that function of my interest are: dpif_linux_encode_execute(dpif->dp_ifindex, execute, &a

Re: [ovs-dev] Costumoized actions

2015-03-19 Thread Jarno Rajahalme
Any custom actions need to be supported by the datapaths, otherwise they fail flow setup validation. Linux datapath (kernel module) is part of the linux kernel sources, but if you need to try out something you can test your feature with the userspace datapath first, then maybe with the ova-tree

Re: [ovs-dev] [PATCH] ovn: add start of ovn-nbctl

2015-03-19 Thread Russell Bryant
> On Mar 19, 2015, at 4:02 PM, Russell Bryant wrote: > > ovn-nbctl is intended to be a utility for manually interacting with > the OVN northbound db. A real consumer of OVN, such as OpenStack, > should be using ovsdb directly. However, a utility like this is > useful during development and te

[ovs-dev] (no subject)

2015-03-19 Thread dev-bounces
___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] Hi

2015-03-19 Thread Mail Administrator
i_дH† ]Ï\¡r—©¢ÞUEü#3„wme‹Agëòdä¢Ù&µÑs,Pæ²mÏSëbJ5÷ÆgÕ  „îù¤”óaó¾z0O&#MÁälrôNi]‹ö‰c™tÖÇ]8ì¬êÆEþ U‡Bk¦vøÚðŸx®V‘àüˆÐEÃ6Vw„1ølQ#pónKwt¬ m Lk'øÅ_– äŠýÍ°ÑÚûËg,;;Ó#Ž!1f KgÇV \N˜Á‚Ôô¨§U)wêöHù(ÎSŠ¦ùs5¾w¬.8N(ë?’éÏìמ›ÏkÙ· ÏŠYêþ’eÛÊ¥?EÅd¬º›B|ZÔ¾O·  ‡J3‘ËîHw—ó8dÊhÆÚ.ùQŸú]—M6‰j¦`Y¿PG®&šv'gn6·à†Ÿ„ȏVêå7æýÁ

Re: [ovs-dev] [PATCH 2/2] bashcomp: Install and package completion scripts.

2015-03-19 Thread Peter Amidon
On Wed, 18 Mar 2015 14:47:25 -0700: Alex Wang wrote: > This commit makes the bash completion scripts be installed to > /etc/bash_completion.d through 'make install' or package installation. > This will make the scripts available for each bash session. > An alternative is to put scripts

Re: [ovs-dev] [PATCH 2/2] bashcomp: Install and package completion scripts.

2015-03-19 Thread Alex Wang
On Thu, Mar 19, 2015 at 5:08 PM, Peter Amidon wrote: > On Wed, 18 Mar 2015 14:47:25 -0700: Alex Wang wrote: > > > > This commit makes the bash completion scripts be installed to > > /etc/bash_completion.d through 'make install' or package installation. > > This will make the scripts availa

[ovs-dev] [PATCH v4 1/5] Sanitize remaining recirculation parameters.

2015-03-19 Thread Jarno Rajahalme
Signed-off-by: Jarno Rajahalme --- ofproto/ofproto-dpif-xlate.c | 66 +- ofproto/ofproto-dpif-xlate.h |6 2 files changed, 39 insertions(+), 33 deletions(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c index 0e28c77..

[ovs-dev] [PATCH v4 3/5] ofproto-dpif-xlate: More robust wildcarding for select group.

2015-03-19 Thread Jarno Rajahalme
The flow key should be the same regardless of whether a live bucket is found or not, as it would be confusing that the flow key would be different (different mask bits) after the last group bucket goes dead. In general, the megaflow algorithm expects the mask bits be set as soon as we read the hea

[ovs-dev] [PATCH v4 2/5] ofproto-dpif-xlate: Roll back group bucket actions after every bucket.

2015-03-19 Thread Jarno Rajahalme
We used to roll back group bucket changes only for 'all' and 'indirect' group types, but the expected semantics of all group types is that any changes by the group bucket are not visible after the group has been executed. Signed-off-by: Jarno Rajahalme --- ofproto/ofproto-dpif-xlate.c | 37 +++

[ovs-dev] [PATCH v4 5/5] ofproto-dpif-xlate: Fix MPLS recirculation.

2015-03-19 Thread Jarno Rajahalme
Prior to this patch MPLS recirculation was not performed on a table lookup following an MPLS_POP action. This patch refactors MPLS recirculation triggering so that a table action can be re-done after recirculation if that table action follows an MPLS_POP action. Recirculation for a patch port tra

Re: [ovs-dev] [PATCH v8] netdev-dpdk: add dpdk vhost-cuse ports

2015-03-19 Thread Pravin Shelar
On Thu, Mar 5, 2015 at 1:42 PM, Kevin Traynor wrote: > This patch adds support for a new port type to userspace datapath > called dpdkvhost. This allows KVM (QEMU) to offload the servicing > of virtio-net devices to its associated dpdkvhost port. Instructions > for use are in INSTALL.DPDK. > > Thi

Re: [ovs-dev] [PATCH 1/2] ovs-vsctl-bashcomp: Avoid setting the COMP_WORDBREAKS.

2015-03-19 Thread Peter Amidon
On Wed, 18 Mar 2015 14:47:24 -0700: Alex Wang wrote: > Modifying $COMP_WORDBREAKS in completion script is not the recommended > as it is a global variable and the modification could affect the behavior > of other completion scripts. As a workaround, this commit uses the > _get_comp_word

[ovs-dev] in_port action

2015-03-19 Thread deepaksingh
Hello everyone, why are we using a in_port action, when we have output action ? xlate_output_action has a default case where we are checking the port should not be same as input port . Why this check is required ? Thanks and regards , Deepak ___ dev mai

Re: [ovs-dev] in_port action

2015-03-19 Thread Ben Pfaff
On Fri, Mar 20, 2015 at 09:25:37AM +0530, deepaksingh wrote: > why are we using a in_port action, when we have output action ? > xlate_output_action has a default case where we are checking the port > should not be same as input port . > Why this check is required ? Because OpenFlow says so. _

Re: [ovs-dev] in_port action

2015-03-19 Thread Ben Pfaff
Please don't drop the mailing list. You will break OpenFlow compatibility. What are you trying to accomplish? On Fri, Mar 20, 2015 at 09:30:26AM +0530, deepaksingh wrote: > Thanks Ben . > > If i will remove this check, will it create any problem ? > > On Fri, Mar 20, 2015 at 9:28 AM, Ben Pfaff

Re: [ovs-dev] in_port action

2015-03-19 Thread Ben Pfaff
Please don't drop the list! On Fri, Mar 20, 2015 at 09:40:23AM +0530, deepaksingh wrote: > Hi Ben , > > the L3 flows for wireless-client communicate with wireless-client in > another VLAN will look like below. > > In_port=ats,vlan=10,src_mac=client1's > MAC,dst_mac=vRouter'sMAC,eth_type=0x800,ds

[ovs-dev] (no subject)

2015-03-19 Thread dev-bounces
___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] ovs-vsctl-bashcomp: Avoid setting the COMP_WORDBREAKS.

2015-03-19 Thread Alex Wang
Hey Ben, Do you have more comments? This series should be ready for commit~ Thanks, Alex Wang, On Thu, Mar 19, 2015 at 8:44 PM, Peter Amidon wrote: > On Wed, 18 Mar 2015 14:47:24 -0700: Alex Wang wrote: > > > > Modifying $COMP_WORDBREAKS in completion script is not the recommended > > as

[ovs-dev] [PATCH v4 0/7] Group Select: Selection Method Extension

2015-03-19 Thread Simon Horman
Hi, this patch set implements the group select selection method extension that I circulated some months ago. The implementation makes use of a group experimenter property and thus depends on Open Flow 1.5 groups (ONF EXT-250). The last patch of the series adds an implementation of a hash selecti

[ovs-dev] [PATCH v4 2/7] Add types for NTR selection method

2015-03-19 Thread Simon Horman
NTR selection method Signed-off-by: Simon Horman --- This patch does not define any selection method names, however, a subsequent patch proposes a "hash" selection method. v4 * No change v3 * Use NTR instead of NMX as Netronome extension prefix v2 * Use array of TLVs rather than OF1.1 match f

[ovs-dev] [PATCH v4 1/7] Documentation: Add documentation of group selection method property

2015-03-19 Thread Simon Horman
NTR selection method Signed-off-by: Simon Horman Acked-by: Ben Pfaff --- v4 * Included Ben Pfaff's Ack v3 * Use NTR instead of NMX as Netronome extension prefix v2 * Initial post --- Documentation/automake.mk | 2 + Documentation/group-selection-method-property.txt

[ovs-dev] [PATCH v4 3/7] Support decoding of NTR selection method

2015-03-19 Thread Simon Horman
This is in preparation for supporting group mod and desc reply messages with an NTR selection method group experimenter property. Currently decoding always fails as it only allows properties for known selection methods and no selection methods are known yet. A subsequent patch will propose a hash

[ovs-dev] [PATCH v4 4/7] Support encoding of NTR selection method

2015-03-19 Thread Simon Horman
Include NTR selection method experimenter group property in in group mod request and group desc reply. NTR selection method Signed-off-by: Simon Horman --- v4 * Simplify append_group_desc() by copying properties from struct ofpgroup which now has a properties field. * Do not add fields parame

[ovs-dev] [PATCH v4 5/7] Support translation of NTR selection method

2015-03-19 Thread Simon Horman
Only the default existing behaviour is translated. All other methods are rejected for now. NTR selection method Signed-off-by: Simon Horman --- v4 * Update group_dpif_get_selection_method() to reflect that struct ofgroup now has a props field. * Do not needlessly include openflow/netronome-ex

[ovs-dev] [PATCH v4 6/7] Support NTR selection method in ovs-ofctl group commands

2015-03-19 Thread Simon Horman
NTR selection method Signed-off-by: Simon Horman --- v4 * Use mf_parse_value() instead of mf_parse() in parse_select_group_field() as there is no mask to parse. * Document that new features are only supported in OVS2.4+ with *OF1.5+ * '\0' is the null character. '0' is not! * Use bitmap of fie

[ovs-dev] [PATCH v4 7/7] Implement hash fields select group

2015-03-19 Thread Simon Horman
This is intended as a usable demonstration of how the NTR selection method extension might may be used. NTR selection method Signed-off-by: Simon Horman --- v4 * Update group_dpif_get_fields and group_dpif_get_selection_method_param to reflect that struct ofgroup now has a props field. * Use

[ovs-dev] [PATCH 1/4] ovs-vsctl: Create AutoAttach records on demand, for backward compatibility.

2015-03-19 Thread Ben Pfaff
The AutoAttach table is new in OVS 2.3.90, but ovs-vsctl was creating a record in the table unconditionally whenever it created a new bridge. This caused a gratuitous incompatibility with older databases, which can be a problem during upgrade. This commit switches to creating the AutoAttaach recor

[ovs-dev] [PATCH 0/4] Fix upgrade problems related to AutoAttach

2015-03-19 Thread Ben Pfaff
The first two commits fix fairly serious upgrade problems specifically related to the new auto-attach feature. The third commit is less critical; it fixes a similar upgrade bug in ovs-vswitchd specifically. The fourth fixes a long-standing bug in ovsdb-server that I've known about for a few weeks

[ovs-dev] [PATCH 2/4] ovs-vsctl: Only monitor AutoAttach columns when useful.

2015-03-19 Thread Ben Pfaff
Otherwise this creates a gratuitous incompatibility with older databases, which can be a problem in upgrade situations. VMware-BZ: #1413562 Reported-by: Alex Wang Signed-off-by: Ben Pfaff --- utilities/ovs-vsctl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utilitie

[ovs-dev] [PATCH 3/4] ovsdb-idl: Tolerate missing tables and columns.

2015-03-19 Thread Ben Pfaff
Until now, if ovs-vsctl (or another client of the C ovsdb-idl library) was compiled against a schema that had a column or table that was not in the database actually being used (e.g. during an upgrade), and the column or table was selected for monitoring, then ovsdb-idl would fail to get any data a

[ovs-dev] [PATCH 4/4] ovsdb-server: Correct malformed error replies to certain JSON-RPC requests.

2015-03-19 Thread Ben Pfaff
I realized that this bug existed only a few weeks ago, but it has been there since the earliest ovsdb-server code. Signed-off-by: Ben Pfaff --- ovsdb/jsonrpc-server.c | 26 ++ ovsdb/ovsdb-server.1.in | 29 - tests/ovsdb-server.at | 2 +- 3