[ovs-dev] OVN sandbox progress

2015-06-10 Thread Ben Pfaff
I want to report progress I've made tonight on an extended form of the OVS sandbox that I expect to be useful for testing OVN. The main point of the extension is to make it easy to start up multiple sandboxed instances of OVS and then connect them together. What I have is at: https://gith

Re: [ovs-dev] [PATCH branch-2.3] datapath: Fix build on RHEL 7.1

2015-06-10 Thread Jesse Gross
On Mon, Jun 8, 2015 at 3:50 PM, Pravin B Shelar wrote: > Some of code is backported from following commit. > > commit 13dd4a9738e99684a56b10ce2f1a5ee2d2ec2f9f > Author: Joe Stringer > Date: Tue Mar 24 16:16:18 2015 -0700 > > compat: Fix RHEL7 build. > > Tested against 3.10.0-229.el7.x86

Re: [ovs-dev] [PATCH v2] IGMPv3 support

2015-06-10 Thread Flavio Leitner
On Tue, Jun 09, 2015 at 06:19:35PM -0300, Thadeu Lima de Souza Cascardo wrote: > On Tue, Jun 09, 2015 at 03:03:03PM -0300, Flavio Leitner wrote: > > On Mon, Jun 08, 2015 at 01:05:41PM -0300, Thadeu Lima de Souza Cascardo > > wrote: > > > Support IGMPv3 messages with multiple records. Make sure all

[ovs-dev] [PATCH] odp-util: Remove last use of odp_tun_key_from_attr for formatting.

2015-06-10 Thread Jesse Gross
We formerly converted tunnel attributes to their flow representation before formatting but now perform all operations directly on the netlink attributes. There is one remaining use of odp_tun_key_from_attr() that is not used for the purposes of generating a flow. This is to check the mask but this

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-10 Thread Flavio Leitner
On Wed, Jun 10, 2015 at 03:13:21PM +, Daniele Di Proietto wrote: > > > On 10/06/2015 12:48, "Gray, Mark D" wrote: > > > >The vhost port won't generate an RSS hash because it is a virtual NIC. > > > >> > > > >> It doesn't cause a problem, just make the pkt fall into a slow path, > >>should w

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-10 Thread Dongjun
On 2015/6/10 23:34, Gray, Mark D wrote: On 10/06/2015 12:48, "Gray, Mark D" wrote: The vhost port won't generate an RSS hash because it is a virtual NIC. It doesn't cause a problem, just make the pkt fall into a slow path, should we fix it? Thanks for investigating this. We should defin

[ovs-dev] [PATCH 2/3] OVSDB: only update monitor when necessary

2015-06-10 Thread Andy Zhou
Some DB modification transactions won't affect the columns of a monitor. Skip those updates. Signed-off-by: Andy Zhou --- ovsdb/monitor.c | 68 - 1 file changed, 67 insertions(+), 1 deletion(-) diff --git a/ovsdb/monitor.c b/ovsdb/monitor.

[ovs-dev] [PATCH 3/3] OVSDB: Flush JSON cache only when necessary

2015-06-10 Thread Andy Zhou
Currently, JSON cache is always flushed whenever the monitor receives a transaction. This patch improves the JSON cache efficiency by only flush the JSON cache when a transaction causes client visible changes, avoiding unnecessary flushes. Suggested-by: Ben Pfaff Signed-off-by: Andy Zhou --- ov

[ovs-dev] [PATCH 1/3] ovsdb: add ovsdb_monitor_row_update_type()

2015-06-10 Thread Andy Zhou
The logic of determining row update type will be useful in the following patch. Make it into a function. Signed-off-by: Andy Zhou --- ovsdb/monitor.c | 20 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/ovsdb/monitor.c b/ovsdb/monitor.c index 257959c..107bdef

Re: [ovs-dev] [PATCH v4 10/12] ofproto: Postpone sending flow removed messages.

2015-06-10 Thread Jarno Rajahalme
> On Jun 10, 2015, at 5:43 PM, Ben Pfaff wrote: > > On Tue, Jun 09, 2015 at 05:24:17PM -0700, Jarno Rajahalme wrote: >> The final flow stats are available only after there are no references >> to the rule. Postpone sending the flow removed message until the >> final stats are available. >> >>

Re: [ovs-dev] [PATCH v4 11/12] ofproto: Use minimatch for making bundles smaller.

2015-06-10 Thread Ben Pfaff
On Wed, Jun 10, 2015 at 05:52:21PM -0700, Jarno Rajahalme wrote: > > > On Jun 10, 2015, at 5:46 PM, Ben Pfaff wrote: > > > > On Tue, Jun 09, 2015 at 05:24:18PM -0700, Jarno Rajahalme wrote: > >> struct match in ofputil_flow_mod uses a lot of space, when used for a > >> stored bundle message. Th

Re: [ovs-dev] [PATCH v4 11/12] ofproto: Use minimatch for making bundles smaller.

2015-06-10 Thread Jarno Rajahalme
> On Jun 10, 2015, at 5:46 PM, Ben Pfaff wrote: > > On Tue, Jun 09, 2015 at 05:24:18PM -0700, Jarno Rajahalme wrote: >> struct match in ofputil_flow_mod uses a lot of space, when used for a >> stored bundle message. This patch adds a new struct >> ofputil_miniflow_mod, that uses a minimatch ins

Re: [ovs-dev] [PATCH v4 12/12] ofproto: Support port mods in bundles.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:19PM -0700, Jarno Rajahalme wrote: > Add support for port mods in an OpenFlow 1.4 bundle, as required for > the minimum support level by the OpenFlow 1.4 specification. If the > bundle includes port mods, it may not specify the OFPBF_ATOMIC flag. > Port mods and flow

Re: [ovs-dev] [PATCH v4 11/12] ofproto: Use minimatch for making bundles smaller.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:18PM -0700, Jarno Rajahalme wrote: > struct match in ofputil_flow_mod uses a lot of space, when used for a > stored bundle message. This patch adds a new struct > ofputil_miniflow_mod, that uses a minimatch instead of match in hopes > of using less memory when handlin

Re: [ovs-dev] [PATCH v4 10/12] ofproto: Postpone sending flow removed messages.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:17PM -0700, Jarno Rajahalme wrote: > The final flow stats are available only after there are no references > to the rule. Postpone sending the flow removed message until the > final stats are available. > > Signed-off-by: Jarno Rajahalme I'm a little nervous about

Re: [ovs-dev] [PATCH v4 09/12] ofproto: Revertible eviction.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:16PM -0700, Jarno Rajahalme wrote: > Handling evictions was broken in the previous patches. Eviction took > place early in the commit, and actually inappropriately bumped the > version number too early. Now eviction is treated much like a flow > modification, where a

Re: [ovs-dev] [PATCH v4 08/12] ofproto: Accurate flow counts.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:15PM -0700, Jarno Rajahalme wrote: > Classifier's rule count now contains temporary duplicates and rules > whose deletion has been deferred. Maintain a new 'n_flows' count in > struct oftable to as the count of rules in the latest version. > > Signed-off-by: Jarno Ra

Re: [ovs-dev] [PATCH v4 07/12] Use classifier versioning.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:14PM -0700, Jarno Rajahalme wrote: > Each rule is now added or deleted in a specific tables version. Flow > tables are versioned with a monotonically increasing 64-bit integer, > where positive values are valid version numbers. > > Rule modifications are implemented

Re: [ovs-dev] [PATCH v4 06/12] ofproto: Infra for table versioning.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:13PM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme In two places, the comment /* Set tables version after the bridge has been fixed. */ took me a while to follow ("Why was the bridge broken?"). Maybe: /* The bridge is now known so

Re: [ovs-dev] [PATCH v4 05/12] test-classifier: Test versioning features.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:12PM -0700, Jarno Rajahalme wrote: > Signed-off-by: Jarno Rajahalme Tests, tests, tests, I love tests. Tests, tests, tests, I love tests. Acked-by: Ben Pfaff ___ dev mailing list dev@openvswitch.org http://openvswitch.org

Re: [ovs-dev] [PATCH v4 04/12] classifier: Make traversing identical rules robust.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:11PM -0700, Jarno Rajahalme wrote: > The traversal of the list of identical rules from the lookup threads > is fragile in the list head is removed during the list traversal. fragile "if" the list head...? > This patch simplifies the implementation of that list by mak

Re: [ovs-dev] [PATCH v4 03/12] classifier: Support table versioning

2015-06-10 Thread Jarno Rajahalme
> On Jun 10, 2015, at 3:51 PM, Ben Pfaff wrote: > > On Tue, Jun 09, 2015 at 05:24:10PM -0700, Jarno Rajahalme wrote: >> This patch allows classifier rules to become visible and invisible in >> specific versions. A 'version' is defined as a positive monotonically >> increasing integer, which nev

Re: [ovs-dev] [PATCH v4 03/12] classifier: Support table versioning

2015-06-10 Thread Jarno Rajahalme
> On Jun 10, 2015, at 3:57 PM, Ben Pfaff wrote: > > On Wed, Jun 10, 2015 at 03:51:05PM -0700, Ben Pfaff wrote: >> On Tue, Jun 09, 2015 at 05:24:10PM -0700, Jarno Rajahalme wrote: >>> This patch allows classifier rules to become visible and invisible in >>> specific versions. A 'version' is defi

Re: [ovs-dev] [PATCH v4 03/12] classifier: Support table versioning

2015-06-10 Thread Ben Pfaff
On Wed, Jun 10, 2015 at 03:51:05PM -0700, Ben Pfaff wrote: > On Tue, Jun 09, 2015 at 05:24:10PM -0700, Jarno Rajahalme wrote: > > This patch allows classifier rules to become visible and invisible in > > specific versions. A 'version' is defined as a positive monotonically > > increasing integer,

Re: [ovs-dev] [PATCH v4 03/12] classifier: Support table versioning

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:10PM -0700, Jarno Rajahalme wrote: > This patch allows classifier rules to become visible and invisible in > specific versions. A 'version' is defined as a positive monotonically > increasing integer, which never wraps around. > > The new 'visibility' attribute repla

Re: [ovs-dev] [PATCH 2/4] rculist: Use ovsrcu_set() when poisoning.

2015-06-10 Thread Jarno Rajahalme
Ben, I decided to drop this patch as I wrote a bug fix relating to this. So this patch is superseded by the later patch. I did not investigate the potential code generation differences, but decided that we need not worry about other threads, when the documentation says that the function may on

[ovs-dev] [PATCH] rculist: Remove postponed poisoning.

2015-06-10 Thread Jarno Rajahalme
Postponed 'next' member poisoning was based on the faulty assumption that postponed functions would be called in the order they were postponed. This assumption holds only for the functions postponed by any single thread. When functions are postponed by different threads, there are no guarantees o

Re: [ovs-dev] [PATCH v4 01/12] ofproto: Rename *_begin functions as *_start.

2015-06-10 Thread Jarno Rajahalme
> On Jun 10, 2015, at 9:22 AM, Ben Pfaff wrote: > > On Tue, Jun 09, 2015 at 05:24:08PM -0700, Jarno Rajahalme wrote: >> Weirdest things can bother you at night when you try to sleep ;-) >> >> Now we have function triples such as add_flow_begin(), >> add_flow_finish(), and add_flow_revert(), whe

Re: [ovs-dev] [PATCH v4 02/12] ovs-ofctl: Add bundle support and unit testing.

2015-06-10 Thread Jarno Rajahalme
> On Jun 10, 2015, at 11:29 AM, Ben Pfaff wrote: > > On Tue, Jun 09, 2015 at 05:24:09PM -0700, Jarno Rajahalme wrote: >> All existing ovs-ofctl flow mod commands now take an optional >> '--bundle' argument, which executes the flow mods as a single >> transaction. OpenFlow 1.4+ is implicitly ass

[ovs-dev] OVN and OpenStack Provider Networks

2015-06-10 Thread Russell Bryant
I've been doing some thinking about OpenStack Neutron's provider networks and how we might be able to support that with OVN as the backend for Neutron. Here is a start. I'd love to hear what others think. Provider Networks = OpenStack Neutron currently has a feature referred to

Re: [ovs-dev] [PATCH v4 02/12] ovs-ofctl: Add bundle support and unit testing.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:09PM -0700, Jarno Rajahalme wrote: > All existing ovs-ofctl flow mod commands now take an optional > '--bundle' argument, which executes the flow mods as a single > transaction. OpenFlow 1.4+ is implicitly assumed when '--bundle' is > specified. > > ovs-ofctl 'add-fl

Re: [ovs-dev] [PATCH 2/2] debian: Remove obsolete manual setting of CFLAGS and warnings from rules.

2015-06-10 Thread Ben Pfaff
On Wed, Jun 10, 2015 at 07:23:36PM +0300, Andrey Korolyov wrote: > > Thanks for the review. I applied these patches to master. > > > > I don't really understand some of your comments here. If you could > > express them in the form of a patch, then it would make it clearer and > > I'd be able to a

Re: [ovs-dev] [PATCH v4 01/12] ofproto: Rename *_begin functions as *_start.

2015-06-10 Thread Ben Pfaff
On Tue, Jun 09, 2015 at 05:24:08PM -0700, Jarno Rajahalme wrote: > Weirdest things can bother you at night when you try to sleep ;-) > > Now we have function triples such as add_flow_begin(), > add_flow_finish(), and add_flow_revert(), where a modification is > started in *_begin(), which can fail

Re: [ovs-dev] [PATCH 2/2] debian: Remove obsolete manual setting of CFLAGS and warnings from rules.

2015-06-10 Thread Andrey Korolyov
> > Thanks for the review. I applied these patches to master. > > I don't really understand some of your comments here. If you could > express them in the form of a patch, then it would make it clearer and > I'd be able to apply it directly. > Thanks Ben, hopefully I`ll propose related fix in dp

Re: [ovs-dev] [PATCH 2/2] debian: Remove obsolete manual setting of CFLAGS and warnings from rules.

2015-06-10 Thread Ben Pfaff
On Mon, Jun 08, 2015 at 12:34:25AM +0300, Andrey Korolyov wrote: > On Sun, Jun 7, 2015 at 11:14 PM, Ben Pfaff wrote: > > On Sun, Jun 07, 2015 at 10:15:29PM +0300, Andrey Korolyov wrote: > >> On Sun, Jun 7, 2015 at 7:48 PM, Ben Pfaff wrote: > >> > Setting CFLAGS by hand before invoking dpkg-buildf

[ovs-dev] [PATCH v2 2/2] Makefiles: Stop distributing files because building them requires Python.

2015-06-10 Thread Ben Pfaff
A long time ago, the Open vSwitch build did not depend on Python (whereas the runtime did), so the "make dist" based distribution included the results of Python build tools. Later, the build began building on Python, but the distribution still included some of those results, because no one had gon

[ovs-dev] [PATCH v2 0/2] Increase Python prerequisite from 2.4 to 2.7

2015-06-10 Thread Ben Pfaff
v1->v2: Correct statements about XenServer/XCP, by stating that versions with Python 2.4 work if you install Python 2.7 on them. Ben Pfaff (2): Increase prerequisite from Python 2.4 to Python 2.7. Makefiles: Stop distributing files because building them requires Python. COPYING

Re: [ovs-dev] installing Python 2.7 on Xenserver (was: Re: [PATCH 1/2] Increase prerequisite from Python 2.4 to Python 2.7.)

2015-06-10 Thread Ben Pfaff
OK, that sounds like a step forward. I guess that means that we can start using Python 2.7 immediately, then. I'll respin my patches. On Tue, Jun 09, 2015 at 08:06:52AM -0400, Andy Hill wrote: > Hi Ben, > > XenServer 6.6 (still to be released) will ship with Python 2.7 as the > system python. N

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-10 Thread Gray, Mark D
> > > > On 10/06/2015 12:48, "Gray, Mark D" wrote: > > > >The vhost port won't generate an RSS hash because it is a virtual NIC. > > > >> > > > >> It doesn't cause a problem, just make the pkt fall into a slow path, > >>should we > > > >> fix it? > > Thanks for investigating this. We should d

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-10 Thread Daniele Di Proietto
On 10/06/2015 12:48, "Gray, Mark D" wrote: > >The vhost port won't generate an RSS hash because it is a virtual NIC. > >> > >> It doesn't cause a problem, just make the pkt fall into a slow path, >>should we > >> fix it? Thanks for investigating this. We should definitely fix it. > >> The fl

[ovs-dev] [PATCH] ovsdb-idl: Document that the IDL always presents a consistent view.

2015-06-10 Thread Ben Pfaff
We've had this question a couple of times so we might as well document it. Requested-by: Saurabh Shrivastava (सौरभ श्रीवास्तव) Signed-off-by: Ben Pfaff --- AUTHORS | 1 + lib/ovsdb-idl.h | 6 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index 5a

Re: [ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-10 Thread Gray, Mark D
> > Hi: > In "dp_packet_get_rss_hash", mbuf.hash.rss is returned directly. But when > it's DPDK vhost pkt, rss isn't initialized, "dpif_netdev_packet_get_rss_hash" > gets a indeterminate value. There is not the same issue for ovs linux vport. > I confirmed it with gdb. > > *Flow 1:* 6.0.0.1 -> 6

Re: [ovs-dev] Is the tx spinlock in __netdev_dpdk_vhost_send necessary?

2015-06-10 Thread Dongjun
On 2015/6/10 19:16, Traynor, Kevin wrote: -Original Message- From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Dongjun Sent: Tuesday, June 9, 2015 4:36 AM To: dev@openvswitch.org Subject: [ovs-dev] Is the tx spinlock in __netdev_dpdk_vhost_send necessary? This is the source c

Re: [ovs-dev] Is the tx spinlock in __netdev_dpdk_vhost_send necessary?

2015-06-10 Thread Traynor, Kevin
> -Original Message- > From: dev [mailto:dev-boun...@openvswitch.org] On Behalf Of Dongjun > Sent: Tuesday, June 9, 2015 4:36 AM > To: dev@openvswitch.org > Subject: [ovs-dev] Is the tx spinlock in __netdev_dpdk_vhost_send necessary? > > This is the source code of "__netdev_dpdk_vhost_sen

[ovs-dev] [PATCH] vswitchd: adding plugin infrastructre

2015-06-10 Thread michael . zayats
Per this patch ovs-vswitchd searches for shared objects, with a certain set of exposed routines, in a specific configurable path. Once found, all compatible plugins are loaded and their routines are called at appropriate points of the daemon execution. Currently, the main purpose is to allow in

Re: [ovs-dev] Here you will find some photos

2015-06-10 Thread Dannie Palmer
Mesmerising night is ready to be organized by splendid babes http://cc4.co/JKLR ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] Is this an issue for DPDK vhost rss?

2015-06-10 Thread Dongjun
Hi: In "dp_packet_get_rss_hash", mbuf.hash.rss is returned directly. But when it's DPDK vhost pkt, rss isn't initialized, "dpif_netdev_packet_get_rss_hash" gets a indeterminate value. There is not the same issue for ovs linux vport. I confirmed it with gdb. *Flow 1:* 6.0.0.1 -> 6.0.0.2 Break