[ovs-dev] [PATCH v8 06/16] ofproto: Verify compatibility of liveness of groups with their type

2013-10-30 Thread Simon Horman
Require liveness for fast-failover groups as it is mandated by OpenFlow1.3. Allow livness for select groups which is in keeping with OpenFlow1.3. Disallow liveness it for other group types. Signed-off-by: Simon Horman --- v8 * First post --- lib/ofp-util.c | 29 - l

[ovs-dev] [PATCH v8 04/16] ofproto: Calculate some group stats at ofproto layer

2013-10-30 Thread Simon Horman
It seems to make sense to set the reference count and number of buckets at the protocol layer as it is known there. Signed-off-by: Simon Horman --- ofproto/ofproto.c | 31 +-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/ofproto/ofproto.c b/ofproto/o

[ovs-dev] [PATCH v8 01/16] ofproto: Delete relevant flows on group del

2013-10-30 Thread Simon Horman
As pert the OpenFlow1.3.2 specification, delete flows that reference a group when it is deleted. Signed-off-by: Simon Horman --- v8 * First post --- ofproto/ofproto.c | 50 ++ 1 file changed, 34 insertions(+), 16 deletions(-) diff --git a/ofprot

[ovs-dev] [PATCH v8 08/16] ofproto: Add enum ofp_group_capabilities

2013-10-30 Thread Simon Horman
These values will be used by subsequent patches Signed-off-by: Simon Horman --- v8 * First post --- include/openflow/openflow-common.h | 8 1 file changed, 8 insertions(+) diff --git a/include/openflow/openflow-common.h b/include/openflow/openflow-common.h index 93cc2c4..a38f1e3 100

[ovs-dev] [PATCH v8 11/16] ofproto: Add group desc and stats tests

2013-10-30 Thread Simon Horman
Lightly exercise group desc and stats Signed-off-by: Simon Horman --- v8 * First post --- tests/ofproto.at | 37 + 1 file changed, 37 insertions(+) diff --git a/tests/ofproto.at b/tests/ofproto.at index 3652cf2..465daf5 100644 --- a/tests/ofproto.at +++ b/t

[ovs-dev] [PATCH v8 13/16] ofproto: At test for flow mod with groups

2013-10-30 Thread Simon Horman
Test that flow mod with groups succeeds only if the group exists. Signed-off-by: Simon Horman --- v8 * First post --- tests/ofproto.at | 28 1 file changed, 28 insertions(+) diff --git a/tests/ofproto.at b/tests/ofproto.at index 6abbc56..9c36758 100644 --- a/tests

[ovs-dev] [PATCH v8 12/16] ofproto: Add del groups test

2013-10-30 Thread Simon Horman
Lightly exercise del-groups Signed-off-by: Simon Horman --- * v8 First post --- tests/ofproto.at | 82 1 file changed, 82 insertions(+) diff --git a/tests/ofproto.at b/tests/ofproto.at index 465daf5..6abbc56 100644 --- a/tests/ofproto.a

[ovs-dev] [PATCH v8 09/16] ofproto: Break out resubmit resource checking

2013-10-30 Thread Simon Horman
Break out resubmit resource checking into a helper function xlate_resubmit_resource_check() and use this new function. This is to allow the check to be re-used by a subsequent patch. As suggested by Ben Pfaff Signed-off-by: Simon Horman --- v8 * First post --- ofproto/ofproto-dpif-xlate.c | 1

[ovs-dev] [PATCH v8 00/16] Enhanced Group Support

2013-10-30 Thread Simon Horman
Hi, With these patches in place it is possible to use all group types defined in OpenFlow1.3. I previously indicated that I was not planning to implement select groups. However, I thought better of it and this series includes an implementation. In order to aid review the series is available in g

[ovs-dev] [PATCH v8 02/16] ofproto: Fail flow mod if it references a non-existent group

2013-10-30 Thread Simon Horman
As per the OpenFlow1.3.2 specification, a flow mod should fail if it references a non-existent group. The change in this patch appears to be necessary to satisfy that constraint. It is unclear to me whether or not is is sufficient. Signed-off-by: Simon Horman --- v8 * First post --- ofproto/o

[ovs-dev] [PATCH v8 05/16] ofproto-dpif: Implement group callbacks

2013-10-30 Thread Simon Horman
This is a first step towards implementing the dpif side of groups. In order to be useful the action translation code needs to be taught about groups. Signed-off-by: Simon Horman --- v8 * As suggested by Ben Pfaff * group_get_stats(): Use ogs->bucket_stats in place of bogus calculation of

[ovs-dev] [PATCH v8 15/16] ofproto-dpif: Translation of select groups

2013-10-30 Thread Simon Horman
Select bucket from those that are alive based on a hash of the destination ethernet address of the packet. Support for weights is proposed by a subsequent patch. The selection is based on a hash of the destination ethernet address of the flow. It should be possible to extend this to cover a hash

[ovs-dev] [PATCH v8 07/16] ofproto: Advertise all supported OpenFlow actions in group features

2013-10-30 Thread Simon Horman
Signed-off-by: Simon Horman --- v8 * First post --- ofproto/ofproto.c | 4 1 file changed, 4 insertions(+) diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 6ea7510..229fc55 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -528,6 +528,10 @@ ofproto_create(const char *datap

[ovs-dev] [PATCH v8 16/16] ofproto-dpif: Support weight for select groups

2013-10-30 Thread Simon Horman
Signed-off-by: Simon Horman --- v8 * First post --- ofproto/ofproto-dpif-xlate.c | 24 ++-- ofproto/ofproto.c| 3 ++- tests/ofproto-dpif.at| 12 tests/ofproto.at | 2 +- 4 files changed, 33 insertions(+), 8 deletions(-) diff --

[ovs-dev] [PATCH v8 10/16] ofproto-dpif: Translation of indirect and all groups

2013-10-30 Thread Simon Horman
Allow translation of indirect and all groups. Also allow insertion of indirect and all groups by changing the maximum permitted number in the groups table from 0 to OFPG_MAX. Implementation note: After translating the actions for each bucket ctx->flow is reset to its state prior to translation o

[ovs-dev] [PATCH v8 14/16] ofproto-dpif: Translation of fast failover groups

2013-10-30 Thread Simon Horman
Fast failover groups use the actions in the first bucket that is alive. Signed-off-by: Simon Horman --- v8 * Do not set xlate->exit in xlate_ff_group() if no bucket is alive. The packet will be dropped anyway if there are no further actions and if there are further actions they should be pr

[ovs-dev] [PATCH v8 03/16] ofproto: Add group features test

2013-10-30 Thread Simon Horman
Lightly exercise group features Signed-off-by: Simon Horman --- v8 * First post --- tests/ofproto.at | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tests/ofproto.at b/tests/ofproto.at index cdd824e..03ad346 100644 --- a/tests/ofproto.at +++ b/tests/ofproto.at @@ -174,6 +17

[ovs-dev] Bonjour

2013-10-30 Thread Mlle Macoral Marriet
-- Bonjour Je m'excuse pour le dérangement, je voudrais faire votre connaissance et lier une amitié sincère avec vous, prière de me répondre. Je promets d'être honnête et de garder une bonne relation avec vous. Baisers, Mlle Macoral Marriet. ___ de

Re: [ovs-dev] [PATCH] datapath: Optimize datapath struct for cacheline access.

2013-10-30 Thread Pravin Shelar
On Tue, Oct 29, 2013 at 3:52 PM, Jesse Gross wrote: > On Tue, Oct 29, 2013 at 10:12 AM, Pravin B Shelar wrote: >> diff --git a/datapath/datapath.h b/datapath/datapath.h >> index 879a830..5a89e0e 100644 >> --- a/datapath/datapath.h >> +++ b/datapath/datapath.h >> @@ -53,29 +53,29 @@ >> * up pe

[ovs-dev] [PATCH] datapath: Use flow hash during flow lookup operation.

2013-10-30 Thread Pravin B Shelar
Flow->hash can be used to detect hash collisions and avoid flow key compare in flow lookup. Signed-off-by: Pravin B Shelar --- datapath/flow_table.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/datapath/flow_table.c b/datapath/flow_table.c index c2a7aa5..ddb14da 1006

[ovs-dev] [PATCH] odp-util: Parse SCTP correctly.

2013-10-30 Thread Gurucharan Shetty
We should be looking at 'src_flow' instead of 'flow'. Otherwise, parsing SCTP through odp_flow_key_to_mask will fail. Signed-off-by: Gurucharan Shetty --- lib/odp-util.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index ce821c5..

Re: [ovs-dev] [PATCH] odp-util: Parse SCTP correctly.

2013-10-30 Thread Ben Pfaff
On Wed, Oct 30, 2013 at 09:59:42AM -0700, Gurucharan Shetty wrote: > We should be looking at 'src_flow' instead of 'flow'. Otherwise, > parsing SCTP through odp_flow_key_to_mask will fail. > > Signed-off-by: Gurucharan Shetty Good catch! Be sure to backport, if necessary. Acked-by: Ben Pfaff

Re: [ovs-dev] openvswitch 2.0.0 build breaks on PPC

2013-10-30 Thread Ben Pfaff
On Wed, Oct 30, 2013 at 10:33:31AM -0200, Flavio Leitner wrote: > On Tue, Oct 29, 2013 at 11:13:17AM -0700, Ben Pfaff wrote: > > On Tue, Oct 29, 2013 at 03:15:58PM -0200, Flavio Leitner wrote: > > > On Tue, Oct 29, 2013 at 08:37:58AM -0700, Ben Pfaff wrote: > > > > On Tue, Oct 29, 2013 at 10:51:02A

Re: [ovs-dev] [PATCH] datapath: Use flow hash during flow lookup operation.

2013-10-30 Thread Jesse Gross
On Wed, Oct 30, 2013 at 9:43 AM, Pravin B Shelar wrote: > Flow->hash can be used to detect hash collisions and avoid flow key > compare in flow lookup. > > Signed-off-by: Pravin B Shelar Acked-by: Jesse Gross ___ dev mailing list dev@openvswitch.org h

Re: [ovs-dev] openvswitch 2.0.0 build breaks on PPC

2013-10-30 Thread Flavio Leitner
On Wed, Oct 30, 2013 at 10:28:31AM -0700, Ben Pfaff wrote: > On Wed, Oct 30, 2013 at 10:33:31AM -0200, Flavio Leitner wrote: > > On Tue, Oct 29, 2013 at 11:13:17AM -0700, Ben Pfaff wrote: > > > On Tue, Oct 29, 2013 at 03:15:58PM -0200, Flavio Leitner wrote: > > > > On Tue, Oct 29, 2013 at 08:37:58A

Re: [ovs-dev] openvswitch 2.0.0 build breaks on PPC

2013-10-30 Thread Ben Pfaff
On Wed, Oct 30, 2013 at 04:15:05PM -0200, Flavio Leitner wrote: > On Wed, Oct 30, 2013 at 10:28:31AM -0700, Ben Pfaff wrote: > > On Wed, Oct 30, 2013 at 10:33:31AM -0200, Flavio Leitner wrote: > > > On Tue, Oct 29, 2013 at 11:13:17AM -0700, Ben Pfaff wrote: > > > > On Tue, Oct 29, 2013 at 03:15:58P

[ovs-dev] [PATCH] ofproto: Modularize netflow.

2013-10-30 Thread Ethan Jackson
The netflow code has its tentacles all over the ofproto-dpif module. This is fine today, but in future facets, which correspond roughly to netflow_flows, will be retired. In preparation, this patch hides as much implementation detail as possible inside the netflow module. Signed-off-by: Ethan Jac

[ovs-dev] [PATCH] Bond to use active-backup mode on LACP failure

2013-10-30 Thread Ravi Kondamuru
Commit bdebeece5 on git.openvswitch.org (lacp: Require successful LACP negotiations when configured.) makes successful LACP negotiation mandatory for the bond to come UP. This patch provides a configuration option to bring up the bond by falling back to active-backup mode on LACP negotiation failur

Re: [ovs-dev] [PATCH] datapath: Optimize datapath struct for cacheline access.

2013-10-30 Thread Jesse Gross
On Tue, Oct 29, 2013 at 6:16 PM, Alexei Starovoitov wrote: > On Tue, Oct 29, 2013 at 5:56 PM, Jesse Gross wrote: >> On Tue, Oct 29, 2013 at 3:57 PM, Alexei Starovoitov >> wrote: >>> On Tue, Oct 29, 2013 at 3:00 PM, Jesse Gross wrote: On Tue, Oct 29, 2013 at 11:19 AM, Alexei Starovoitov >>>

[ovs-dev] [PATCH 3/3] ofproto-dpif: New unixctl command ofproto/trace-packet-out.

2013-10-30 Thread Ben Pfaff
Feature #20543. Requested-by: Ronghua Zhang Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c | 123 ++- ofproto/ofproto-unixctl.man | 57 +++- tests/ofproto-dpif.at | 19 +++ 3 files changed, 172 insertions(+), 27 del

[ovs-dev] [PATCH 2/3] ofproto-dpif: Improve help output for ofproto/trace.

2013-10-30 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 7e1d057..d735507 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -5748,7 +5748,7 @@ ofproto_dpif_uni

[ovs-dev] [PATCH 1/3] ofproto-dpif: Factor code out of ofproto_unixctl_trace().

2013-10-30 Thread Ben Pfaff
This new function will have an additional caller in an upcoming commit. Signed-off-by: Ben Pfaff --- ofproto/ofproto-dpif.c | 109 +--- tests/ofproto-dpif.at |8 ++-- 2 files changed, 70 insertions(+), 47 deletions(-) diff --git a/ofproto/ofprot

[ovs-dev] [PATCH 1/2] dpif-netdev: Change a variable name.

2013-10-30 Thread Gurucharan Shetty
'struct dp_netdev_flow' is currently being instantiated as 'flow'. An upcoming commit introduces a classifier to dpif-netdev which uses 'struct flow' at a few places and that can cause confusion while reading code. Signed-off-by: Gurucharan Shetty --- lib/dpif-netdev.c | 135 +++

[ovs-dev] [PATCH 2/2] dpif-netdev: Introduce a classifier in userspace datapath.

2013-10-30 Thread Gurucharan Shetty
Instead of an exact match flow table, we introduce a classifier. This enables mega-flows in userspace datapath. Signed-off-by: Gurucharan Shetty --- lib/dpif-netdev.c | 87 ++ tests/ofproto-dpif.at | 142 + 2 file

Re: [ovs-dev] [PATCH] datapath: Use flow hash during flow lookup operation.

2013-10-30 Thread Pravin Shelar
I pushed it to master. Thanks. On Wed, Oct 30, 2013 at 10:52 AM, Jesse Gross wrote: > On Wed, Oct 30, 2013 at 9:43 AM, Pravin B Shelar wrote: >> Flow->hash can be used to detect hash collisions and avoid flow key >> compare in flow lookup. >> >> Signed-off-by: Pravin B Shelar > > Acked-by: Jes

[ovs-dev] [PATCH 1/2] ovs-ofctl: Add icmp_code test

2013-10-30 Thread Simon Horman
This corrects what appears to be a typo by replacing a duplicate icmp_type test with an icmp_code test. Signed-off-by: Simon Horman --- tests/ovs-ofctl.at | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ovs-ofctl.at b/tests/ovs-ofctl.at index 7bb5b6e..e399479 100644 ---

[ovs-dev] [PATCH 2/2] Return no protocols if mask is supplied for unmaskable match

2013-10-30 Thread Simon Horman
Currently if a mask is supplied for an unmaskable match then NOT_REACHED() is called. The effect of this for a user calling ovs-vsctl with a match that includes a mask which is not permitted is to politely inform them of the error of their ways by calling abort and segfaulting. This patch takes an

[ovs-dev] [PATCH 0/2] Return no protocols if mask is supplied for unmaskable match

2013-10-30 Thread Simon Horman
Hi, the primary purpose of this series is to return an error message rather than segfaulting if ovs-ofctl add-flow is called with a mask for a match that does not accept a mask. The second patch in the series does that and updates the testsuite to exercise this. The first patch in the series corr