[ovs-dev] [PATCH 1/2] classifier: Avoid need for 64-bit priority temporary values in lookup.

2014-10-29 Thread Ben Pfaff
I have mixed feelings about this change. I think it might be better to change the classifier priority type to "int", then document that negative values are reserved for use by the classifier. Signed-off-by: Ben Pfaff --- lib/classifier.c | 11 +-- lib/pvector.h| 18 +

[ovs-dev] [PATCH 2/2] [RFC] classifier: Add support for conjunctive matches.

2014-10-29 Thread Ben Pfaff
A "conjunctive match" allows higher-level matches in the flow table, such as set membership matches, without causing a cross-product explosion for multidimensional matches. Please refer to the documentation that this commit adds to ovs-ofctl(8) for a better explanation, including an example. Issu

[ovs-dev] [PATCH] tests: check the existance of WHY-OVS.md instead of WHY-OVS

2014-10-29 Thread Wang Sheng-Hui
WHY-OVS has been renamed to WHY-OVS.md. Update the filenames in run-oftest and run-ryu scripts Signed-off-by: Wang Sheng-Hui --- tests/run-oftest | 2 +- tests/run-ryu| 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/run-oftest b/tests/run-oftest index c73c25c..32c

[ovs-dev] make failed with upstream ovs on CentOS 6.5

2014-10-29 Thread Wang Sheng-Hui
Hi, I used CentOS 6.5, and failed building the latest ovs: libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./lib -I ./lib -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wno-format-zero-length -Wswitch-enum -Wunused-parameter -Wbad-functi

[ovs-dev] [PATCH] datapath: Convert dp rcu read operation to locked operations

2014-10-29 Thread Pravin B Shelar
dp read operations depends on ovs_dp_cmd_fill_info(). This API needs to looup vport to find dp name, but vport lookup can fail. Therefore to keep vport reference alive we need to take ovs lock. Found by code inspection. Signed-off-by: Pravin B Shelar --- datapath/datapath.c | 12 ++-- 1

[ovs-dev] [PATCH v2] Build: Add shared libraries and versioning

2014-10-29 Thread Scott Mann
These changes allow for the building of shared libraries by providing the --enable-shared option to configure. In particular, lib/libopenvwitch.so, lib/libsflow.so, ofproto/libofproto.so, and ovsdb/libovsdb.so will be built. Original behavior of building static remains the same. Additionally, vers

[ovs-dev] [PATCH v2] Build: shared libraries and versioning

2014-10-29 Thread Scott Mann
These changes allow for the building of shared libraries by providing the --enable-shared option to configure. In particular, lib/libopenvwitch.so, lib/libsflow.so, ofproto/libofproto.so, and ovsdb/libovsdb.so will be built. Original behavior of building static remains the same. Additionally, vers

Re: [ovs-dev] [PATCH v2] Build: shared libraries and versioning

2014-10-29 Thread Scott Mann
Please ignore this patch as it has an incorrect commit message. On Wed, Oct 29, 2014 at 2:55 PM, Scott Mann wrote: > These changes cause shared libraries to be built by default. > In particular, lib/libopenvwitch.so, lib/libsflow.so, > ofproto/libofproto.so, > and ovsdb/libovsdb.so will be built

Re: [ovs-dev] [PATCH] flow: Support OF1.5+ (draft) actset_output field.

2014-10-29 Thread Ben Pfaff
On Wed, Oct 29, 2014 at 04:15:51PM -0700, Jarno Rajahalme wrote: > > On Oct 9, 2014, at 11:11 PM, Ben Pfaff wrote: > > > On Thu, Oct 09, 2014 at 09:16:24AM -0700, Ben Pfaff wrote: > >> On Thu, Oct 09, 2014 at 08:46:00AM -0700, Jarno Rajahalme wrote: > >>> Small issues with the tests, otherwise:

Re: [ovs-dev] [PATCH] flow: Support OF1.5+ (draft) actset_output field.

2014-10-29 Thread Jarno Rajahalme
On Oct 9, 2014, at 11:11 PM, Ben Pfaff wrote: > On Thu, Oct 09, 2014 at 09:16:24AM -0700, Ben Pfaff wrote: >> On Thu, Oct 09, 2014 at 08:46:00AM -0700, Jarno Rajahalme wrote: >>> Small issues with the tests, otherwise: >>> >>> Acked-by: Jarno Rajahalme >> >> Thanks. >> >>> On Oct 9, 2014, at

Re: [ovs-dev] [PATCH] debian: Fix broken build during package creation.

2014-10-29 Thread Gurucharan Shetty
On Wed, Oct 29, 2014 at 3:03 PM, Ben Pfaff wrote: > On Wed, Oct 29, 2014 at 01:54:24PM -0700, Gurucharan Shetty wrote: >> Signed-off-by: Gurucharan Shetty > > Acked-by: Ben Pfaff Thanks, Applied! ___ dev mailing list dev@openvswitch.org http://openvswi

[ovs-dev] [PATCH 2/3] datapath-windws: fix locking code in OvsGetNetdevCmdHandler()

2014-10-29 Thread Nithin Raju
We were acquiring locks twice, and forgotten to release a lock in an error case. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Vport.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/datapath-windows/ovsext/Vport.c b/datapath-windows/ovsext/Vport.c index b28

[ovs-dev] [PATCH 1/3] datapath-windows: nuke USE_NEW_VPORT_ADD_WORKFLOW

2014-10-29 Thread Nithin Raju
We were using USE_NEW_VPORT_ADD_WORKFLOW while transitioning from old workflow for adding ports. We don't need it anymore. Signed-off-by: Nithin Raju --- datapath-windows/ovsext/Vport.c | 15 --- 1 files changed, 0 insertions(+), 15 deletions(-) diff --git a/datapath-windows/ovsex

[ovs-dev] [PATCH 3/3] datapath-windows: increase the maximum size of port name

2014-10-29 Thread Nithin Raju
In userspace, port name sizes are restricted to IFNAMSIZ which is defined to IF_NAME_SIZE in: C:\Program Files (x86)\Windows Kits\8.1\Include\shared\netioapi.h In the kernel, since IFNAMSIZ was not available, we previously defined a value of 16 for the kernel. This is restrictive for Openstack int

[ovs-dev] [PATCH 3/3] Fix setting transport ports with frags. Packets with 'LATER' fragment do not have a transport header, so it is not possible to set them. Setting the transport headers on such pac

2014-10-29 Thread Jarno Rajahalme
1. Flows with an explicit match on nw_frag, where the LATER bit is 1: Prohibit setting transport header fields (port numbers) with set_field or move, or using such a field as a source in a move. 2. Flows that wildcard the nw_frag LATER bit: At flow translation time, detect the fact that t

[ovs-dev] [PATCH 2/3] ofproto/xlate_actions(): Do not clear ports with frags.

2014-10-29 Thread Jarno Rajahalme
Transport ports are already cleared for lookup if need be, and they should be available for action processing, so do not clear them in xlate_actions(). A drop flow takes care of dropping the packet, so no special case is needed in xlate_actions(). Signed-off-by: Jarno Rajahalme --- ofproto/ofpr

[ovs-dev] [PATCH 1/3] tests/ofproto-dpif - fragment handling: Add detail.

2014-10-29 Thread Jarno Rajahalme
Add transport port modifications to the existing frags handling test case. This demonstrates incorrect behavior by not moving the destination port number to source port in normal mode for first fragment, as the transport port numbers have been zeroed and the move has no effect, and by allowing mov

Re: [ovs-dev] [PATCH] ovs-vsctl: Allow referring to rows whose names are UUIDs by those names.

2014-10-29 Thread Nithin Raju
> -Original Message- > From: Ben Pfaff [mailto:b...@nicira.com] > Sent: Wednesday, October 29, 2014 2:15 PM > To: dev@openvswitch.org > Cc: Ben Pfaff; Nithin Raju; Gurucharan Shetty > Subject: [PATCH] ovs-vsctl: Allow referring to rows whose names are UUIDs by > those names. > > Every row

Re: [ovs-dev] [PATCH] debian: Fix broken build during package creation.

2014-10-29 Thread Ben Pfaff
On Wed, Oct 29, 2014 at 01:54:24PM -0700, Gurucharan Shetty wrote: > Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] debian: Fix broken build during package creation.

2014-10-29 Thread Gurucharan Shetty
Signed-off-by: Gurucharan Shetty --- debian/openvswitch-common.docs |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/openvswitch-common.docs b/debian/openvswitch-common.docs index 3bd2ca3..7c1bc44 100644 --- a/debian/openvswitch-common.docs +++ b/debian/openvswitc

Re: [ovs-dev] [PATCH] ovs-vsctl: Allow referring to rows whose names are UUIDs by those names.

2014-10-29 Thread Ben Pfaff
On Wed, Oct 29, 2014 at 02:31:27PM -0700, Gurucharan Shetty wrote: > On Wed, Oct 29, 2014 at 2:15 PM, Ben Pfaff wrote: > > Every row in the database has a UUID, generated by the database server. > > Rows in most tables also have a user-assigned name (e.g. a bridge or port > > or interface name).

Re: [ovs-dev] [PATCH] ovs-vsctl: Allow referring to rows whose names are UUIDs by those names.

2014-10-29 Thread Gurucharan Shetty
On Wed, Oct 29, 2014 at 2:15 PM, Ben Pfaff wrote: > Every row in the database has a UUID, generated by the database server. > Rows in most tables also have a user-assigned name (e.g. a bridge or port > or interface name). The ovs-vsctl database commands (e.g. "set", "get", > "list", ...) accept b

[ovs-dev] [PATCH] ovs-vsctl: Allow referring to rows whose names are UUIDs by those names.

2014-10-29 Thread Ben Pfaff
Every row in the database has a UUID, generated by the database server. Rows in most tables also have a user-assigned name (e.g. a bridge or port or interface name). The ovs-vsctl database commands (e.g. "set", "get", "list", ...) accept both UUIDs and names, but until now if a command's argument

Re: [ovs-dev] [PATCH] docker: Update documentation to reflect risks of retiring ovs-docker.

2014-10-29 Thread Gurucharan Shetty
On Wed, Oct 29, 2014 at 7:02 AM, Flavio Leitner wrote: > On Wed, Oct 29, 2014 at 05:57:13AM -0700, Gurucharan Shetty wrote: >> Requested-by: Flavio Leitner >> Signed-off-by: Gurucharan Shetty >> --- > > Acked-by: Flavio Leitner Thanks, I applied this! > > Thanks again > fbl > __

[ovs-dev] [PATCH v2] Build: shared libraries and versioning

2014-10-29 Thread Scott Mann
These changes cause shared libraries to be built by default. In particular, lib/libopenvwitch.so, lib/libsflow.so, ofproto/libofproto.so, and ovsdb/libovsdb.so will be built. Original behavior of building static objects excusively may be accomplished by providing the --disable-shared argument to co

[ovs-dev] [PATCH 2/2] lib/util, tests: Support NDEBUG.

2014-10-29 Thread Jarno Rajahalme
./configure accepts --enable-ndebug option. Make ovs_assert() honor it, and make sure all test programs disable it. The order of include files in test programs is also made uniform: 1. #include 2. #undef NDEBUG 3. Include file of the test subject (to make sure it itself has sufficient includ

[ovs-dev] [PATCH 1/2] lib/list: Inline list functions.

2014-10-29 Thread Jarno Rajahalme
All of the list functions are really small, so inlining them should be beneficial. Requested-by: Ben Pfaff Signed-off-by: Jarno Rajahalme --- lib/automake.mk |1 - lib/list.c | 203 lib/list.h | 229 +++

[ovs-dev] [PATCHv8 08/11] dpif: Generate flow_hash for revalidators in dpif.

2014-10-29 Thread Joe Stringer
This patch shifts the responsibility for determining the hash for a flow from the revalidation logic down to the dpif layer. This assists in handling backward-compatibility for revalidation with the upcoming unique identifier "UFID" patches. A 128-bit UFID was selected to minimize the likelihood o

[ovs-dev] [PATCHv8 06/11] upcall: Revalidate using cache of mask, actions.

2014-10-29 Thread Joe Stringer
This allows us to ignore most fields of a flow_dump, requiring only the flow key for looking up the ukey. Fetching flows can also be avoided in the corner case where a flow is missed from a dump but revalidation is required. A future patch will modify the datapath interface to allow datapaths to s

[ovs-dev] [PATCHv8 09/11] datapath: Add support for unique flow identifiers.

2014-10-29 Thread Joe Stringer
If a datapath is created with the flag OVS_DP_F_INDEX_BY_UFID, then an additional table_instance is added to the flow_table, which is indexed by unique identifiers ("UFID"). Userspace implementations can specify a UFID of up to 128 bits along with a flow operation as shorthand for the key. This all

[ovs-dev] [PATCHv8 10/11] dpif: Index flows using unique identifiers.

2014-10-29 Thread Joe Stringer
This patch modifies the dpif interface to allow flows to be manipulated using a 128-bit identifier. This allows revalidator threads to perform datapath operations faster, as they do not need to serialise the entire flow key for operations like flow_get and flow_delete. In conjunction with a future

[ovs-dev] [PATCHv8 04/11] upcall: Rename dump_op -> ukey_op.

2014-10-29 Thread Joe Stringer
Future patches will make use of the 'struct dump_op' in a broader sense, so this patch renames it to make things a bit clearer. Signed-off-by: Joe Stringer Acked-by: Ben Pfaff --- v8: No change. v7: Rebase. v4-v6: No change. v3: Rebase. v2: No change. RFC: First post. --- ofproto/ofproto-dpif-u

[ovs-dev] [PATCHv8 03/11] udpif: Separate udpif_key maps from revalidators.

2014-10-29 Thread Joe Stringer
An upcoming patch will change the access patterns for ukey maps to increase the number of writers, and shift write-access from revalidator threads to upcall handler threads. As such, it no longer makes sense to tie these maps to revalidators in a 1:1 relationship. This patch separates the ukey map

[ovs-dev] [PATCHv8 01/11] revalidator: Use 'cmap' for storing ukeys.

2014-10-29 Thread Joe Stringer
Signed-off-by: Joe Stringer Acked-by: Ben Pfaff --- v4-v8: No change. v3: Rebase. v2: Call ovsrcu_quiesce() unconditionally. RFC: Initial Post. --- ofproto/ofproto-dpif-upcall.c | 61 ++--- 1 file changed, 33 insertions(+), 28 deletions(-) diff --git a/ofpr

[ovs-dev] [PATCHv8 07/11] hash: Add 128-bit murmurhash.

2014-10-29 Thread Joe Stringer
Add the 128-bit murmurhash by Austin Appleby, r150 from: http://code.google.com/p/smhasher/source/browse/trunk/MurmurHash3.cpp Signed-off-by: Joe Stringer Acked-by: Ben Pfaff --- v8: Build fix for 32-bit (non-static function). v7: Replace getblock*() with get_unaligned_u*(). Add ovs_u128_equ

[ovs-dev] [PATCHv8 05/11] upcall: Create ukeys in handler threads.

2014-10-29 Thread Joe Stringer
Currently, when a revalidator thread first dumps a flow, it creates a 'udpif_key' object and caches a copy of a kernel flow key. This allows us to perform lookups in the classifier to attribute stats and validate the correctness of the datapath flow. This patch sets up this cache from the handler

[ovs-dev] [PATCHv8 00/11] Revalidate flows with unique identifiers.

2014-10-29 Thread Joe Stringer
This series modifies the dpif interface for flow commands to use 128-bit unique identifiers as an alternative to the netlink-formatted flow key, and caches the mask/actions in the udpif_key. This significantly reduces the cost of assembling messages between revalidators and the datapath, improving

[ovs-dev] [PATCHv8 02/11] revalidator: Protect ukeys with a mutex.

2014-10-29 Thread Joe Stringer
Currently, udpif_keys are protected during revalidator_sweep__() as only one thread accesses the ukey at a time. This is ensured using barriers: all revalidators will be in the GC phase, so they will only access their own ukey collection. A future patch will change the access patterns to allow the

Re: [ovs-dev] [PATCH 5/7] tests/test-classifier: Properly use ovsrcu_postpone.

2014-10-29 Thread Jarno Rajahalme
Thanks for the review! Pushed, Jarno On Oct 28, 2014, at 4:28 PM, Ben Pfaff wrote: > On Fri, Oct 24, 2014 at 01:36:39PM -0700, Jarno Rajahalme wrote: >> Following patches add stricter checks of RCU memory management of >> rules removed from a classifier. This patch properly postpones >> fre

Re: [ovs-dev] [PATCH 4/7] lib/rculist: New RCU-iterator, single-writer doubly-linked list.

2014-10-29 Thread Jarno Rajahalme
On Oct 28, 2014, at 4:25 PM, Ben Pfaff wrote: > On Fri, Oct 24, 2014 at 01:36:38PM -0700, Jarno Rajahalme wrote: >> rculist allows concurrent lockless list iteration, while a writer may >> be modifying the list. Multiple writers can be supported by using a >> mutex in addition to rculist. >> >

[ovs-dev] [PATCH] netdev-linux: Add support for 64-bit network device stats.

2014-10-29 Thread Ben Pfaff
Reported-by: Andrey Korolyov Signed-off-by: Ben Pfaff --- AUTHORS| 1 + configure.ac | 2 ++ lib/netdev-linux.c | 77 ++ 3 files changed, 75 insertions(+), 5 deletions(-) diff --git a/AUTHORS b/AUTHORS index 3af0fd5..1503c3

Re: [ovs-dev] [PATCH] docker: Update documentation to reflect risks of retiring ovs-docker.

2014-10-29 Thread Flavio Leitner
On Wed, Oct 29, 2014 at 05:57:13AM -0700, Gurucharan Shetty wrote: > Requested-by: Flavio Leitner > Signed-off-by: Gurucharan Shetty > --- Acked-by: Flavio Leitner Thanks again fbl ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mail

Re: [ovs-dev] [PATCH v2] docker: Integrate docker containers with Open vSwitch.

2014-10-29 Thread Flavio Leitner
On Wed, Oct 29, 2014 at 06:43:10AM -0700, Gurucharan Shetty wrote: > On Wed, Oct 29, 2014 at 6:29 AM, Flavio Leitner wrote: > > On Wed, Oct 29, 2014 at 06:09:10AM -0700, Gurucharan Shetty wrote: > >> On Wed, Oct 29, 2014 at 5:49 AM, Flavio Leitner wrote: > >> > On Thu, Oct 16, 2014 at 01:26:37AM

[ovs-dev] [PATCH] docker: Update documentation to reflect risks of retiring ovs-docker.

2014-10-29 Thread Gurucharan Shetty
Requested-by: Flavio Leitner Signed-off-by: Gurucharan Shetty --- INSTALL.Docker.md |4 +++- NEWS |3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/INSTALL.Docker.md b/INSTALL.Docker.md index 2956036..ca7249f 100644 --- a/INSTALL.Docker.md +++ b/INSTALL.

Re: [ovs-dev] [PATCH v2] docker: Integrate docker containers with Open vSwitch.

2014-10-29 Thread Gurucharan Shetty
On Wed, Oct 29, 2014 at 6:29 AM, Flavio Leitner wrote: > On Wed, Oct 29, 2014 at 06:09:10AM -0700, Gurucharan Shetty wrote: >> On Wed, Oct 29, 2014 at 5:49 AM, Flavio Leitner wrote: >> > On Thu, Oct 16, 2014 at 01:26:37AM -0700, Gurucharan Shetty wrote: >> >> Open vSwitch does not have native int

Re: [ovs-dev] [PATCH v2] docker: Integrate docker containers with Open vSwitch.

2014-10-29 Thread Flavio Leitner
On Wed, Oct 29, 2014 at 06:09:10AM -0700, Gurucharan Shetty wrote: > On Wed, Oct 29, 2014 at 5:49 AM, Flavio Leitner wrote: > > On Thu, Oct 16, 2014 at 01:26:37AM -0700, Gurucharan Shetty wrote: > >> Open vSwitch does not have native integration with Docker. > >> INSTALL.Docker explains how Open v

Re: [ovs-dev] [PATCH v2] docker: Integrate docker containers with Open vSwitch.

2014-10-29 Thread Flavio Leitner
On Wed, Oct 29, 2014 at 06:05:10AM -0700, Gurucharan Shetty wrote: > On Wed, Oct 29, 2014 at 5:49 AM, Flavio Leitner wrote: > > On Thu, Oct 16, 2014 at 01:26:37AM -0700, Gurucharan Shetty wrote: > >> Open vSwitch does not have native integration with Docker. > >> INSTALL.Docker explains how Open v

Re: [ovs-dev] [PATCH v2] docker: Integrate docker containers with Open vSwitch.

2014-10-29 Thread Gurucharan Shetty
On Wed, Oct 29, 2014 at 5:49 AM, Flavio Leitner wrote: > On Thu, Oct 16, 2014 at 01:26:37AM -0700, Gurucharan Shetty wrote: >> Open vSwitch does not have native integration with Docker. >> INSTALL.Docker explains how Open vSwitch can be integrated >> with docker non-natively. >> >> ovs-docker is a

Re: [ovs-dev] [PATCH v2] docker: Integrate docker containers with Open vSwitch.

2014-10-29 Thread Gurucharan Shetty
On Wed, Oct 29, 2014 at 5:49 AM, Flavio Leitner wrote: > On Thu, Oct 16, 2014 at 01:26:37AM -0700, Gurucharan Shetty wrote: >> Open vSwitch does not have native integration with Docker. >> INSTALL.Docker explains how Open vSwitch can be integrated >> with docker non-natively. >> >> ovs-docker is a

Re: [ovs-dev] [PATCH v2] docker: Integrate docker containers with Open vSwitch.

2014-10-29 Thread Flavio Leitner
On Thu, Oct 16, 2014 at 01:26:37AM -0700, Gurucharan Shetty wrote: > Open vSwitch does not have native integration with Docker. > INSTALL.Docker explains how Open vSwitch can be integrated > with docker non-natively. > > ovs-docker is a helper script to add network interfaces to > docker container

[ovs-dev] Dr Mrs Drissa Mambo.

2014-10-29 Thread Drissa Mambo
Dr Mrs Drissa Mambo. Diretor do Projeto de Implementação Africano Anglo-Gold Corporation Abidjan Cote Divoire Bom dia! Eu sou o Dr Mrs Drissa Mambo, Diretor do Projeto de Implementação com Africano Anglo-Gold Corporation aqui em Abidjan, Cote Divoire e membro do Conselho de Administração