Re: [ovs-dev] [RFC PATCH v3 00/12] instruction apply-actions/goto-table support

2012-07-23 Thread Joe Stringer
On 23 July 2012 20:08, Isaku Yamahata wrote: ... > If desired, I'm willing to include Joe's metadata patch into this series. I'm happy to rebase my code against this branch, check it works and finish up tidying/testing if there's no rush. I've made a few modifications since my last post, but have

Re: [ovs-dev] [PATCH 03/24] nx-match: Separate raw match and header/pad pull/put

2012-07-23 Thread Simon Horman
On Mon, Jul 23, 2012 at 03:16:32PM +0900, Simon Horman wrote: > In the case of Open Flow 1.2, which is currently the only > time that OXM is be used, there is a 4 byte header before > the match which needs to be taken into account when calculating > the pad length. This complicates nx_match pull an

Re: [ovs-dev] [PATCH] Fix race condition in parallel execution of "make install".

2012-07-23 Thread Simon Horman
On Mon, Jul 23, 2012 at 09:58:19AM -0700, Ben Pfaff wrote: > ovs-vsctl is listed, incorrectly, in both bin_PROGRAMS and bin_SCRIPTS. > This meant that "make install" with the -j option could try to install > ovs-vsctl two times in parallel, a race that occasionally caused a build > failure, e.g.: >

Re: [ovs-dev] [PATCH] debian: Remove controller keys on openvswitch-controller package purge.

2012-07-23 Thread Simon Horman
On Fri, Jul 20, 2012 at 09:24:01AM -0700, Ben Pfaff wrote: > A Debian package is expected to remove all its configuration files (which > includes all files in /etc) when it is purged, but the > openvswitch-controller package wasn't doing that. This fixes the problem. > > Debian bug #682187. > CC:

Re: [ovs-dev] [oxm vlan 0/7] alternative approach to OXM VLANs

2012-07-23 Thread Simon Horman
On Mon, Jul 23, 2012 at 09:26:49AM -0700, Ben Pfaff wrote: > On Mon, Jul 23, 2012 at 04:58:09PM +0900, Simon Horman wrote: > > On Sun, Jul 22, 2012 at 11:48:52PM -0700, Ben Pfaff wrote: > > > This is an alternative proposal to the OXM VLAN patches that > > > Simon sent earlier beginning here: > > >

Re: [ovs-dev] [patch] openvswitch: potential NULL deref in sample()

2012-07-23 Thread Jesse Gross
On Mon, Jul 23, 2012 at 12:46 AM, Dan Carpenter wrote: > If there is no OVS_SAMPLE_ATTR_ACTIONS set then "acts_list" is NULL and > it leads to a NULL dereference when we call nla_len(acts_list). This > is a static checker fix, not something I have seen in testing. > > Signed-off-by: Dan Carpenter

Re: [ovs-dev] [PATCH] Fix race condition in parallel execution of "make install".

2012-07-23 Thread Ben Pfaff
Thanks. I pushed this fix to master and branch-1.[87654]. On Mon, Jul 23, 2012 at 12:34:33PM -0700, Ethan Jackson wrote: > Looks good, thanks. > > Ethan > > On Mon, Jul 23, 2012 at 9:58 AM, Ben Pfaff wrote: > > ovs-vsctl is listed, incorrectly, in both bin_PROGRAMS and bin_SCRIPTS. > > This me

Re: [ovs-dev] [PATCH] Fix race condition in parallel execution of "make install".

2012-07-23 Thread Ethan Jackson
Looks good, thanks. Ethan On Mon, Jul 23, 2012 at 9:58 AM, Ben Pfaff wrote: > ovs-vsctl is listed, incorrectly, in both bin_PROGRAMS and bin_SCRIPTS. > This meant that "make install" with the -j option could try to install > ovs-vsctl two times in parallel, a race that occasionally caused a buil

Re: [ovs-dev] [PATCH] vswitch.xml: Fix typo in documentation.

2012-07-23 Thread Ben Pfaff
Thanks, I pushed this. On Mon, Jul 23, 2012 at 10:39:27AM -0700, Justin Pettit wrote: > Looks good. > > --Justin > > > On Jul 23, 2012, at 10:31 AM, Ben Pfaff wrote: > > > Signed-off-by: Ben Pfaff > > --- > > vswitchd/vswitch.xml |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-

Re: [ovs-dev] [PATCH] vswitch.xml: Fix typo in documentation.

2012-07-23 Thread Justin Pettit
Looks good. --Justin On Jul 23, 2012, at 10:31 AM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > vswitchd/vswitch.xml |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml > index 688f715..e6ea844 100644 > --- a/vswit

[ovs-dev] [PATCH] vswitch.xml: Fix typo in documentation.

2012-07-23 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- vswitchd/vswitch.xml |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index 688f715..e6ea844 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -2124,7 +2124,7 @@ The ev

Re: [ovs-dev] [PATCH] ofp-parse: Fix parsing of "resubmit" action.

2012-07-23 Thread Ben Pfaff
On Mon, Jul 23, 2012 at 12:51:45AM -0700, Justin Pettit wrote: > On Jul 19, 2012, at 11:19 AM, Ben Pfaff wrote: > > > OK, I wrote one. I'm glad I did since the patch I posted didn't > > work. Here's a fixed version for final review. > > I think you need the incremental I've added at the end of

[ovs-dev] Bug#682384: marked as done (odd s390 build failure for openvswitch)

2012-07-23 Thread Debian Bug Tracking System
Your message dated Mon, 23 Jul 2012 17:02:47 + with message-id and subject line Bug#682384: fixed in openvswitch 1.4.2+git20120612-6 has caused the Debian Bug report #682384, regarding odd s390 build failure for openvswitch to be marked as done. This means that you claim that the problem has

[ovs-dev] Bug#682384: odd s390 build failure for openvswitch

2012-07-23 Thread Ben Pfaff
On Sun, Jul 22, 2012 at 12:07:53PM +0200, Bastian Blank wrote: > And a quick check reveals that ovs-vsctl is installed two times. It is > included in bin_PROGRAMS and bin_SCRIPTS. They are evalutated in two > different make targets and may run parallel. Thanks for spotting the problem. I uploaded

[ovs-dev] openvswitch_1.4.2+git20120612-6_i386.changes ACCEPTED into unstable

2012-07-23 Thread Debian FTP Masters
Accepted: openvswitch-brcompat_1.4.2+git20120612-6_i386.deb to main/o/openvswitch/openvswitch-brcompat_1.4.2+git20120612-6_i386.deb openvswitch-common_1.4.2+git20120612-6_i386.deb to main/o/openvswitch/openvswitch-common_1.4.2+git20120612-6_i386.deb openvswitch-controller_1.4.2+git20120612-6

[ovs-dev] Processing of openvswitch_1.4.2+git20120612-6_i386.changes

2012-07-23 Thread Debian FTP Masters
openvswitch_1.4.2+git20120612-6_i386.changes uploaded successfully to localhost along with the files: openvswitch_1.4.2+git20120612-6.dsc openvswitch_1.4.2+git20120612-6.debian.tar.gz openvswitch-common_1.4.2+git20120612-6_i386.deb openvswitch-switch_1.4.2+git20120612-6_i386.deb openvswit

[ovs-dev] [PATCH] Fix race condition in parallel execution of "make install".

2012-07-23 Thread Ben Pfaff
ovs-vsctl is listed, incorrectly, in both bin_PROGRAMS and bin_SCRIPTS. This meant that "make install" with the -j option could try to install ovs-vsctl two times in parallel, a race that occasionally caused a build failure, e.g.: http://buildd.debian.org/status/fetch.php?pkg=openvswitch&arch=s390&

Re: [ovs-dev] [PATCH 2/2] NEWS: Document flow setup improvement in 1.7 release.

2012-07-23 Thread Ben Pfaff
On Mon, Jul 23, 2012 at 12:35:54AM -0700, Justin Pettit wrote: > Also use consistent capitalization for "DSCP". > > Signed-off-by: Justin Pettit Looks good, thank you. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH 1/2] Fix "*tivty" typos.

2012-07-23 Thread Ben Pfaff
On Mon, Jul 23, 2012 at 12:35:53AM -0700, Justin Pettit wrote: > Signed-off-by: Justin Pettit Look good, thank you. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [oxm vlan 0/7] alternative approach to OXM VLANs

2012-07-23 Thread Ben Pfaff
On Mon, Jul 23, 2012 at 04:58:09PM +0900, Simon Horman wrote: > On Sun, Jul 22, 2012 at 11:48:52PM -0700, Ben Pfaff wrote: > > This is an alternative proposal to the OXM VLAN patches that > > Simon sent earlier beginning here: > > http://openvswitch.org/pipermail/dev/2012-July/019329.html > >

Re: [ovs-dev] [classifier-opt 28/28] Introduce sparse flows and masks, to reduce memory usage and improve speed.

2012-07-23 Thread Ben Pfaff
On Mon, Jul 23, 2012 at 02:57:24PM +0900, Isaku Yamahata wrote: > On Fri, Jul 20, 2012 at 04:25:25PM -0700, Ben Pfaff wrote: > > diff --git a/lib/flow.c b/lib/flow.c > > index a5076bb..7b50b0b 100644 > > --- a/lib/flow.c > > +++ b/lib/flow.c > > ...snip... > > > +/* Initializes 'dst' as the bit-w

Re: [ovs-dev] [PATCH v2 00/11] instruction apply-actions/goto-table support

2012-07-23 Thread Isaku Yamahata
On Sun, Jul 22, 2012 at 09:35:39PM -0700, Ben Pfaff wrote: > > What concerns me is how complex xlate_actions() would be with Write-Actions. > > Anyway we can re-consider it when I (or someone else) attack Write-Actions. > > It is internal representation, not exposed API/ABI. > > I had the idea tha

[ovs-dev] [PATCH v3 08/12] ofp-parser: instruction parser

2012-07-23 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v3 - change for OFPACT_{CLEAR_ACTIONS, WRITE_ACTIONS, GOTO_TABLE} v2 - changed for ofp_instruction --- lib/ofp-actions.c | 22 ++ lib/ofp-actions.h |2 + lib/ofp-parse.c | 112 3 files changed

[ovs-dev] [PATCH v3 07/12] ofp-actions: teach action-formatter intructions

2012-07-23 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v3 - modified for OFPACT_{CLEAR_ACTIONS, WRITE_ACTIONS, GOTO_TABLE} v2 - changed for ofp_instruction --- lib/ofp-actions.c | 71 +++- 1 files changed, 58 insertions(+), 13 deletions(-) diff --git a/lib/ofp-actio

[ovs-dev] [PATCH v3 12/12] ofproto-dpif: teach goto-table instruction packet-in

2012-07-23 Thread Isaku Yamahata
When goto-table instruction results in table miss, generate packet-in event Signed-off-by: Isaku Yamahata --- v3 - changed for OFPACT_GOTO_ABLE v2 - minor change to compile --- ofproto/ofproto-dpif.c | 30 +- 1 files changed, 21 insertions(+), 9 deletions(-) diff

[ovs-dev] [PATCH v3 04/12] ofp-action: introduce actions corresponding to intruction.

2012-07-23 Thread Isaku Yamahata
Those actions correspond to instructions, Clear-Actions, Write-Actions and Goto-Table. Since Write-Metadata is addressed by other patch series, so it isn't introduced. Signed-off-by: Isaku Yamahata --- v3: - introduce OFPACT_{CLEAR_ACTIONS, WRITE_ACTIONS, GOTO_TABLE} v2 - changed for ofp_instru

[ovs-dev] [PATCH v3 09/12] ofproto-dpif: refactor do_xlate_actions(), no logic change

2012-07-23 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v3 - manual rebase v2 - no change --- ofproto/ofproto-dpif.c | 280 ++-- 1 files changed, 150 insertions(+), 130 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 8a63a44..8b857f3 100644

[ovs-dev] [PATCH v3 06/12] ofp-actions: implement instruction encoder

2012-07-23 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v3 - changed for OFPACT_{CLEAR_ACTIONS, WRITE_ACTIONS, GOTO_TABLE} v2 - changed for ofp_instruction --- lib/ofp-actions.c | 66 +++- lib/ofp-util.c| 26 + 2 files changed, 75 insertions(

[ovs-dev] [PATCH v3 10/12] ofproto-dpif: teach do_xlate_action() goto-table instruction

2012-07-23 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v3 - manual rebase v2 - changed for ofp_instruction Conflicts: ofproto/ofproto-dpif.c --- lib/ofp-actions.c |3 +-- ofproto/ofproto-dpif.c | 11 +++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/ofp-actions.c b/l

[ovs-dev] [PATCH v3 11/12] ofproto-dpif: refactor rule_dpif_lookup()

2012-07-23 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v3 - no change v2 - no chnage --- ofproto/ofproto-dpif.c | 31 --- 1 files changed, 20 insertions(+), 11 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index c73b2e4..3e9c744 100644 --- a/ofproto/ofproto-

[ovs-dev] [PATCH v3 03/12] ofp-actions.h: sort OVSINST_OFPIT11_xxx value in execution order

2012-07-23 Thread Isaku Yamahata
This order is used by parser to check if the instruction is given in this order. Signed-off-by: Isaku Yamahata --- v3 - newly introduced --- lib/ofp-actions.h | 29 +++-- 1 files changed, 15 insertions(+), 14 deletions(-) diff --git a/lib/ofp-actions.h b/lib/ofp-action

[ovs-dev] [PATCH v3 05/12] ofp-actions: instruction decoder

2012-07-23 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v3 - changed for OFPACT_{CLEAR_ACTIONS, WRITE_ACTIONS, GOTO_TABLE} v2 - changed for ofp_instruction --- lib/ofp-actions.c | 40 ++-- 1 files changed, 34 insertions(+), 6 deletions(-) diff --git a/lib/ofp-actions.c b/lib/ofp

[ovs-dev] [PATCH v3 01/12] ofp-actions: export OVSINST_OFPIT11_xxx

2012-07-23 Thread Isaku Yamahata
They will be used by other files like ofp-parser.c. Signed-off-by: Isaku Yamahata --- v3 - no change v2 - newly introduced --- lib/ofp-actions.c | 33 - lib/ofp-actions.h | 35 +++ 2 files changed, 35 insertions(+), 33 deletion

[ovs-dev] [PATCH v3 02/12] lib/ofp-actions.h: OPFIT11_CLEAR_ACTIONS uses ofp11_instruction_actions

2012-07-23 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v3 - newly instrocuded --- lib/ofp-actions.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/ofp-actions.h b/lib/ofp-actions.h index 10ab301..b92e160 100644 --- a/lib/ofp-actions.h +++ b/lib/ofp-actions.h @@ -513,7 +513,7 @@ void ofp

[ovs-dev] [RFC PATCH v3 00/12] instruction apply-actions/goto-table support

2012-07-23 Thread Isaku Yamahata
This patch adds instruction OF11 apply-actions/goto-table supports. Okay, I re-write the patch series by introducing OFPACT_{CLEAR_ACTIONS, WRITE_ACTIONS, GOTO_TABLE}. I did only compile-tested for now. If this approach is okay, I'll completes the patch series and post it. If desired, I'm willing

Re: [ovs-dev] [patch] openvswitch: potential NULL deref in sample()

2012-07-23 Thread David Miller
From: Dan Carpenter Date: Mon, 23 Jul 2012 10:46:28 +0300 > If there is no OVS_SAMPLE_ATTR_ACTIONS set then "acts_list" is NULL and > it leads to a NULL dereference when we call nla_len(acts_list). This > is a static checker fix, not something I have seen in testing. > > Signed-off-by: Dan Carp

Re: [ovs-dev] [oxm vlan 0/7] alternative approach to OXM VLANs

2012-07-23 Thread Simon Horman
On Sun, Jul 22, 2012 at 11:48:52PM -0700, Ben Pfaff wrote: > This is an alternative proposal to the OXM VLAN patches that > Simon sent earlier beginning here: > http://openvswitch.org/pipermail/dev/2012-July/019329.html > > Instead of trying to make single metaflow fields look like both > OF

Re: [ovs-dev] [PATCH] ofp-parse: Fix parsing of "resubmit" action.

2012-07-23 Thread Justin Pettit
On Jul 19, 2012, at 11:19 AM, Ben Pfaff wrote: > OK, I wrote one. I'm glad I did since the patch I posted didn't > work. Here's a fixed version for final review. I think you need the incremental I've added at the end of the message, but otherwise it looks good to me. --Justin diff --git a/u

[ovs-dev] [patch] openvswitch: potential NULL deref in sample()

2012-07-23 Thread Dan Carpenter
If there is no OVS_SAMPLE_ATTR_ACTIONS set then "acts_list" is NULL and it leads to a NULL dereference when we call nla_len(acts_list). This is a static checker fix, not something I have seen in testing. Signed-off-by: Dan Carpenter --- This applies to Linus's tree. diff --git a/net/openvswitch

[ovs-dev] [PATCH 2/2] NEWS: Document flow setup improvement in 1.7 release.

2012-07-23 Thread Justin Pettit
Also use consistent capitalization for "DSCP". Signed-off-by: Justin Pettit --- NEWS |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/NEWS b/NEWS index 58cc4fd..cc52322 100644 --- a/NEWS +++ b/NEWS @@ -49,7 +49,7 @@ v1.7.0 - xx xxx - kernel modules are renamed

[ovs-dev] [PATCH 1/2] Fix "*tivty" typos.

2012-07-23 Thread Justin Pettit
Signed-off-by: Justin Pettit --- lib/socket-util.c |2 +- lib/stream-provider.h |4 ++-- python/ovs/stream.py |2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/socket-util.c b/lib/socket-util.c index 5fe9f98..2c5e6cc 100644 --- a/lib/socket-util.c +++ b/li