Re: [ovs-dev] [PATCH v8 0/3] Flow-Based Recirculation for MPLS

2014-06-25 Thread Simon Horman
On Wed, Jun 25, 2014 at 02:19:38PM -0700, Ben Pfaff wrote: > On Tue, Jun 24, 2014 at 08:46:30AM +0900, Simon Horman wrote: > > The motivation of this series is to allow some sequences of actions > > that include MPLS actions to be performed using recirculation. > > Sequences

Re: [ovs-dev] [PATCH v2.62] datapath: Add basic MPLS support to kernel

2014-06-27 Thread Simon Horman
On Wed, Jun 25, 2014 at 10:51:52AM +0900, Simon Horman wrote: > On Tue, Jun 24, 2014 at 04:24:37PM -0700, Jesse Gross wrote: > > On Tue, Jun 24, 2014 at 4:56 AM, Simon Horman wrote: > > > Allow datapath to recognize and extract MPLS labels into flow keys > > > and exec

Re: [ovs-dev] [PATCH v2.62] datapath: Add basic MPLS support to kernel

2014-06-28 Thread Simon Horman
On Sat, Jun 28, 2014 at 08:59:01AM -0700, Jesse Gross wrote: > On Fri, Jun 27, 2014 at 5:55 PM, Simon Horman wrote: > > On Wed, Jun 25, 2014 at 10:51:52AM +0900, Simon Horman wrote: > >> On Tue, Jun 24, 2014 at 04:24:37PM -0700, Jesse Gross wrote: > >> > * Maybe

[ovs-dev] [PATCH/RFC] datapath: Allow pop and push MPLS actions after pop VLAN

2014-06-29 Thread Simon Horman
mechanism to expose the inner ethernet type beyond that of the outermost VLAN tag. Suggested-by: Jesse Gross Signed-off-by: Simon Horman --- datapath/flow_netlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/datapath/flow_netlink.c b/datapath/flow_netlink.c index 5a1a487..bfbf03e

Re: [ovs-dev] [PATCH/RFC] datapath: Allow pop and push MPLS actions after pop VLAN

2014-07-01 Thread Simon Horman
On Tue, Jul 01, 2014 at 04:58:06PM -0700, Jesse Gross wrote: > On Sun, Jun 29, 2014 at 9:20 PM, Simon Horman wrote: > > This patch loosens the restrictions surrounding push and pop MPLS actions > > such that they will be allowed after a pop VLAN action if the inner > > ethern

Re: [ovs-dev] [RFC] Proposal for enhanced select groups

2014-09-17 Thread Simon Horman
On Thu, Sep 11, 2014 at 05:46:03PM -0700, Jesse Gross wrote: > On Sun, Sep 7, 2014 at 7:18 PM, Simon Horman > wrote: > > On Fri, Sep 05, 2014 at 12:07:17PM -0700, Jesse Gross wrote: > >> On Thu, Sep 4, 2014 at 12:28 AM, Simon Horman > >> wrote: > >> >

[ovs-dev] [PATCH/RFC repost 0/8] Open vSwtich ODP Select Group Action

2014-09-17 Thread Simon Horman
5545e7826896e861c ("lib/odp-util: Add tunnel tp_src, tp_dst parsing and formatting") of that tree. Simon Horman (8): odp: select group action attributes netlink: Allow suppression of warnings for duplicate attributes odp-util: formatting of datapath select group action datapath: execution

[ovs-dev] [PATCH/RFC repost 1/8] odp: select group action attributes

2014-09-17 Thread Simon Horman
relates to a proposed Open Flow extension that we have made. Signed-off-by: Simon Horman --- datapath/linux/compat/include/linux/openvswitch.h | 31 +++ lib/dpif-netdev.c | 1 + lib/dpif.c| 1 + lib/odp

[ovs-dev] [PATCH/RFC repost 2/8] netlink: Allow suppression of warnings for duplicate attributes

2014-09-17 Thread Simon Horman
it is up to the caller to parse the message to extract all the attributes. This is in preparation for allowing multiple OVS_SELECT_GROUP_ATTR_BUCKET attributes in a nested OVS_ACTION_ATTR_SELECT_GROUP attribute. Signed-off-by: Simon Horman --- lib/netlink.c | 2 +- lib/netlink.h | 1 + 2 files

[ovs-dev] [PATCH/RFC repost 3/8] odp-util: formatting of datapath select group action

2014-09-17 Thread Simon Horman
Allow formatting of select group action. This is used when pretty-printing datapath flows. Subsequent patches will add support for the select group action to the datapath and ovs-vswtichd. Signed-off-by: Simon Horman --- lib/odp-util.c | 67

[ovs-dev] [PATCH/RFC repost 4/8] datapath: execution of select group action

2014-09-17 Thread Simon Horman
. Thus the algorithm and used and its implementation are not central to the prototype. Signed-off-by: Simon Horman --- datapath/actions.c | 70 ++ 1 file changed, 70 insertions(+) diff --git a/datapath/actions.c b/datapath/actions.c index 8d18848

[ovs-dev] [PATCH/RFC repost 5/8] datapath: Move last_action() helper to datapath.h

2014-09-17 Thread Simon Horman
This is in preparation for using last_action() from more than one C file as part of supporting an odp select group action. Signed-off-by: Simon Horman --- datapath/actions.c | 6 -- datapath/datapath.h | 5 + 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/datapath

[ovs-dev] [PATCH/RFC repost 8/8] hack: ofproto: enable odp select action

2014-09-17 Thread Simon Horman
This is a quick hack to enable the datapath group select action. It is in lieu of some combination of: * probing * run-time configuration by the end-use. * run-time heuristic to use the action as appropriate Signed-off-by: Simon Horman --- ofproto/ofproto-dpif-xlate.c | 2 +- 1 file changed, 1

[ovs-dev] [PATCH/RFC repost 6/8] datapath: validation of select group action

2014-09-17 Thread Simon Horman
Allow validation and copying of select group actions. This completes the prototype select group action implementation in the datapath. Subsequent patches will add support to ovs-vswtichd. Signed-off-by: Simon Horman --- datapath/flow_netlink.c | 102

[ovs-dev] [PATCH/RFC repost 7/8] ofproto: translate datapath select group action

2014-09-17 Thread Simon Horman
This would most likely require further datapath modifications. Signed-off-by: Simon Horman --- ofproto/ofproto-dpif-xlate.c | 108 ++- 1 file changed, 107 insertions(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-x

[ovs-dev] [PATCH] ofproto-dpif-rid: correct logic error in rid_pool_alloc_id()

2014-09-23 Thread Simon Horman
packets may be forwarded incorrectly. Signed-off-by: Simon Horman --- ofproto/ofproto-dpif-rid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif-rid.c b/ofproto/ofproto-dpif-rid.c index b3d98eb..e75dfc8 100644 --- a/ofproto/ofproto-dpif-rid.c +++ b/ofproto

[ovs-dev] [PATCH] ovs-ofctl: Correct help text for add-groups

2014-09-23 Thread Simon Horman
It is add-groups rather than add-group that takes FILE as an argument. Signed-off-by: Simon Horman --- utilities/ovs-ofctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 4a90155..8dcd72c 100644 --- a/utilities/ovs

Re: [ovs-dev] [PATCH/RFC repost 3/8] odp-util: formatting of datapath select group action

2014-09-23 Thread Simon Horman
On Fri, Sep 19, 2014 at 02:44:49PM +0100, Thomas Graf wrote: > On 09/18/14 at 10:55am, Simon Horman wrote: > > Allow formatting of select group action. This is used > > when pretty-printing datapath flows. Subsequent patches > > will add support for the select group action to

Re: [ovs-dev] [PATCH/RFC repost 5/8] datapath: Move last_action() helper to datapath.h

2014-09-23 Thread Simon Horman
On Fri, Sep 19, 2014 at 03:06:38PM +0100, Thomas Graf wrote: > On 09/18/14 at 10:55am, Simon Horman wrote: > > diff --git a/datapath/datapath.h b/datapath/datapath.h > > index c5d3c86..74a15e6 100644 > > --- a/datapath/datapath.h > > +++ b/datapath/datapath.h

Re: [ovs-dev] [PATCH/RFC repost 4/8] datapath: execution of select group action

2014-09-23 Thread Simon Horman
On Fri, Sep 19, 2014 at 03:05:27PM +0100, Thomas Graf wrote: > On 09/18/14 at 10:55am, Simon Horman wrote: > > +const struct nlattr *bucket_actions(const struct nlattr *attr) > > +{ > > + const struct nlattr *a; > > + int rem; > > + > > + for (a = nla_d

Re: [ovs-dev] [PATCH] ofproto-dpif-rid: correct logic error in rid_pool_alloc_id()

2014-09-24 Thread Simon Horman
On Wed, Sep 24, 2014 at 02:06:46PM -0700, Andy Zhou wrote: > Pushed. Thanks for the fix! Thanks! ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH 0/2] ofproto-dpif-rid: Some minor simplifications

2014-09-24 Thread Simon Horman
Hi, this short series proposes to minor simplifications to ofproto-dpif-rid. They are not related to each other other than that there is a minor conflict in applying the second patch if the first one is not present. Simon Horman (2): ofproto-dpif-rid: remove struct rid_map ofproto-dpif-rid

[ovs-dev] [PATCH 1/2] ofproto-dpif-rid: remove struct rid_map

2014-09-24 Thread Simon Horman
struct rid_map only has one member which is a struct hmap. This allows for a slight simplification of the code by removing struct rid_map and using a struct hmap directly instead. Signed-off-by: Simon Horman --- ofproto/ofproto-dpif-rid.c | 20 1 file changed, 8 insertions

[ovs-dev] [PATCH 2/2] ofproto-dpif-rid: remove unused return value of rid_pool_add()

2014-09-24 Thread Simon Horman
The return value of rid_pool_add() is never used so the code may be slightly simplified by removing it. Signed-off-by: Simon Horman --- ofproto/ofproto-dpif-rid.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ofproto/ofproto-dpif-rid.c b/ofproto/ofproto-dpif-rid.c

[ovs-dev] [PATCH] AUTHORS: Add Simon Horman

2014-09-24 Thread Simon Horman
Signed-off-by: Simon Horman --- I have now had one patch accepted from this address, I hope there will be more. I would also like to continue to use ho...@verge.net.au for work that is not related to Netronome. --- AUTHORS | 1 + 1 file changed, 1 insertion(+) diff --git a/AUTHORS b/AUTHORS

[ovs-dev] [PATCH] datapath: Rename last_action() as nla_is_last() and move to netlink.h

2014-09-24 Thread Simon Horman
helper means it is best off in netlink.h regardless of if it is used more than one .c file or not. Thus I would like it considered independent of the work on an odp select group action. Signed-off-by: Simon Horman --- datapath/actions.c | 11 +++ datapath/linux

Re: [ovs-dev] [PATCH/RFC repost 5/8] datapath: Move last_action() helper to datapath.h

2014-09-24 Thread Simon Horman
On Wed, Sep 24, 2014 at 09:20:15AM +0100, Thomas Graf wrote: > On 09/24/14 at 03:00pm, Simon Horman wrote: > > On Fri, Sep 19, 2014 at 03:06:38PM +0100, Thomas Graf wrote: > > > Can we rename & move this to instead? > > > > Sure, how about nla_is_last()? >

Re: [ovs-dev] [PATCH/RFC repost 4/8] datapath: execution of select group action

2014-09-24 Thread Simon Horman
On Wed, Sep 24, 2014 at 09:19:42AM +0100, Thomas Graf wrote: > On 09/24/14 at 03:01pm, Simon Horman wrote: > > > > + /* Only possible type of attributes is > > > > OVS_SELECT_GROUP_ATTR_BUCKET */ > > > > + for (bucket = nla_d

Re: [ovs-dev] [PATCH/RFC] datapath: offload hooks

2014-10-08 Thread Simon Horman
On Tue, Oct 07, 2014 at 09:50:36PM -0700, Stephen Hemminger wrote: > On Wed, 8 Oct 2014 09:40:51 +0900 > Simon Horman wrote: > > > +struct ovs_offload_ops { > > + /* Flow offload functions */ > > + /* Called when a flow entry is added to the flow table */ >

Re: [ovs-dev] [PATCH/RFC] datapath: offload hooks

2014-10-08 Thread Simon Horman
On Tue, Oct 07, 2014 at 09:55:21PM -0700, Stephen Hemminger wrote: > On Wed, 8 Oct 2014 09:40:51 +0900 > Simon Horman wrote: > > > + > > +struct ovs_offload_ops { > > + /* Flow offload functions */ > > + /* Called when a flow entry is added to the flow

Re: [ovs-dev] [PATCH/RFC repost 7/8] ofproto: translate datapath select group action

2014-10-08 Thread Simon Horman
On Fri, Sep 26, 2014 at 04:57:25PM -0700, Ben Pfaff wrote: > On Thu, Sep 18, 2014 at 10:55:10AM +0900, Simon Horman wrote: > > This patch is a prototype and has several limitations: > > > > * It assumes that no actions follow a select group action > > because the resu

Re: [ovs-dev] [PATCH/RFC repost 2/8] netlink: Allow suppression of warnings for duplicate attributes

2014-10-08 Thread Simon Horman
On Fri, Sep 26, 2014 at 04:55:42PM -0700, Ben Pfaff wrote: > On Thu, Sep 18, 2014 at 10:55:05AM +0900, Simon Horman wrote: > > Add a multiple field to struct nl_policy which if set suppresses > > warning of duplicate attributes in nl_parse_nested(). > > > > As is the c

Re: [ovs-dev] [PATCH/RFC repost 7/8] ofproto: translate datapath select group action

2014-10-13 Thread Simon Horman
On Mon, Oct 13, 2014 at 01:46:24PM -0700, Ben Pfaff wrote: > On Thu, Oct 09, 2014 at 10:14:36AM +0900, Simon Horman wrote: > > On Fri, Sep 26, 2014 at 04:57:25PM -0700, Ben Pfaff wrote: > > > On Thu, Sep 18, 2014 at 10:55:10AM +0900, Simon Horman wrote: > > > > Thi

Re: [ovs-dev] [PATCH] datapath: Rename last_action() as nla_is_last() and move to netlink.h

2014-10-17 Thread Simon Horman
ough I'm not sure if upstream likes to take new API calls that aren't used. Perhaps a good way forwards would be for me to re-submit this patch against the upstream net-next kernel. Pravin, how would you feel about that? > > > On Wed, Sep 24, 2014 at 9:28 PM, Simon Horman >

Re: [ovs-dev] [PATCH] datapath: Rename last_action() as nla_is_last() and move to netlink.h

2014-10-17 Thread Simon Horman
2014/10/17 19:25 "Pravin Shelar" : > > On Fri, Oct 17, 2014 at 12:16 AM, Simon Horman > wrote: > > On Thu, Oct 16, 2014 at 04:50:10PM -0700, Andy Zhou wrote: > >> Simon, The change makes a lot of sense. > >> > >> I am just wondering if we should

[ovs-dev] [PATCH] ofproto: Only allow indirect groups with one bucket

2014-10-23 Thread Simon Horman
ages. A test is also added to exercise this change. Signed-off-by: Simon Horman --- lib/ofp-util.c | 14 ++ tests/ofproto.at | 16 2 files changed, 30 insertions(+) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index d765d03..573f38a 100644 --- a/lib/ofp-util.c

[ovs-dev] [PATCH net-next] datapath: Rename last_action() as nla_is_last() and move to netlink.h

2014-10-27 Thread Simon Horman
helper means it is best off in netlink.h regardless of if it is used more than one .c file or not. Thus, I would like it considered independent of the work on an odp select group action. Cc: Thomas Graf Cc: Pravin Shelar Cc: Andy Zhou Signed-off-by: Simon Horman --- include/net/netlink.h

Re: [ovs-dev] [RFC 07/10] dpif-netdev: Use new ovs-thread-stats for flow statistics

2014-10-27 Thread Simon Horman
On Fri, Oct 10, 2014 at 09:40:56AM -0700, Ben Pfaff wrote: > On Wed, Oct 08, 2014 at 02:09:53PM -0700, Daniele Di Proietto wrote: > > Signed-off-by: Daniele Di Proietto > > Can you estimate the additional memory overhead per-datapath flow that > this adds? Our recent review of customer data (for

Re: [ovs-dev] [PATCH v3] lib/dpif-netdev: Integrate megaflow classifier.

2014-10-27 Thread Simon Horman
On Thu, Oct 16, 2014 at 02:33:03PM -0700, Jarno Rajahalme wrote: > flow inserts and removals are simplified: > > - No need for classifier internal mutex, as dpif-netdev already has a > 'flow_mutex'. > - Number of memory allocations/frees can be halved. > > Lookup code path is a bit more effcien

Re: [ovs-dev] [PATCH net-next] datapath: Rename last_action() as nla_is_last() and move to netlink.h

2014-10-28 Thread Simon Horman
On Tue, Oct 28, 2014 at 05:08:08PM -0400, David Miller wrote: > From: Simon Horman > Date: Mon, 27 Oct 2014 16:12:16 +0900 > > > The original motivation for this change was to allow the helper to be used > > in files other than actions.c as part of work on an odp se

Re: [ovs-dev] [PATCH v3] lib/dpif-netdev: Integrate megaflow classifier.

2014-10-28 Thread Simon Horman
On Tue, Oct 28, 2014 at 02:47:00PM -0700, Alex Wang wrote: > Hey Simon, > > I did the following test: > > - Environment: > >host 1: 7 pmd threads, each pmd thread handling one rx queue from >interface dpdk1 > > >bash-4.3# ovs-appctl dpctl/show >netdev@ovs-netdev: >l

[ovs-dev] [PATCH 1/2] ovs-ofctl: Free group buckets

2014-10-31 Thread Simon Horman
To some extent this is cosmetic because ovs-ovfctl will immediately exit. However, it does seem to be in keeping with freeing 'gms' in ofctl_group_mod_file(). Found by inspection using make check-valgrind. Signed-off-by: Simon Horman --- utilities/ovs-ofctl.c | 5 + 1 file

[ovs-dev] [PATCH 0/2] Free group buckets

2014-10-31 Thread Simon Horman
Hi, this short series fixes some (minor) memory leaks by freeing group buckets. Found by inspection using make check-valgrind Simon Horman (2): ovs-ofctl: Free group buckets ofp-print-ofctl: Free group buckets lib/ofp-print.c | 2 ++ utilities/ovs-ofctl.c | 5 + 2 files changed

[ovs-dev] [PATCH 2/2] ofp-print-ofctl: Free group buckets

2014-10-31 Thread Simon Horman
Found by inspection using make check-valgrind. Signed-off-by: Simon Horman --- lib/ofp-print.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 43bfa17..8dc7f06 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -2167,6 +2167,7

[ovs-dev] [PATCH] match: Use ds_chomp() in match_format()

2014-11-03 Thread Simon Horman
Slightly simplify match_format() by using ds_chomp() rather than open-coding its logic. Signed-off-by: Simon Horman --- lib/match.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/match.c b/lib/match.c index cbfd735..bd3b13d 100644 --- a/lib/match.c +++ b/lib/match.c

[ovs-dev] [PATCH] meta-flow: Slightly simplify usable_protocols selection in mf_set()

2014-11-03 Thread Simon Horman
If usable_protocols_bitwise and usable_protocols_cidr are equal then it does not matter which one is returned. This leads to a slight simplification of the selection logic. Signed-off-by: Simon Horman --- lib/meta-flow.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib

[ovs-dev] [PATCH] ofp-print: Use ds_chomp() in ofp10_match_to_string()

2014-11-03 Thread Simon Horman
Slightly simplify ofp10_match_to_string() by using ds_chomp() rather than open-coding its logic. Signed-off-by: Simon Horman --- lib/ofp-print.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 8dc7f06..d27d8a7 100644 --- a/lib/ofp

Re: [ovs-dev] [PATCH] meta-flow: Slightly simplify usable_protocols selection in mf_set()

2014-11-04 Thread Simon Horman
On Tue, Nov 04, 2014 at 08:42:23AM -0800, Ben Pfaff wrote: > On Tue, Nov 04, 2014 at 03:13:21PM +0900, Simon Horman wrote: > > If usable_protocols_bitwise and usable_protocols_cidr are equal > > then it does not matter which one is returned. This leads to > > a slight

[ovs-dev] [PATCH] ovs-ofctl: Only allow usable protocols for group commands

2014-11-04 Thread Simon Horman
parse_ofp_group_mod_str() may limit the usable protocols according to the group and in particular its actions. However, without this change ovs-ofctl ignores this calculation. Signed-off-by: Simon Horman --- utilities/ovs-ofctl.c | 13 - 1 file changed, 8 insertions(+), 5 deletions

Re: [ovs-dev] [PATCH] ovs-ofctl: Only allow usable protocols for group commands

2014-11-06 Thread Simon Horman
On Thu, Nov 06, 2014 at 03:01:23PM -0800, Ben Pfaff wrote: > On Wed, Nov 05, 2014 at 01:57:39PM +0900, Simon Horman wrote: > > parse_ofp_group_mod_str() may limit the usable protocols according > > to the group and in particular its actions. However, without this > > change o

[ovs-dev] [PATCH 00/22] EXT-350: (draft) OpenFlow 1.5 groups

2014-11-09 Thread Simon Horman
including properties - Used by both group mod and group desc stats * Bucket actions - A sub-set of a group's buckets may be added or deleted Simon Horman (22): id-pool: re-factor recirculation id allocator into stand-alone id pool id-pool: Refactor id_pool_alloc_id to allow any 3

[ovs-dev] [PATCH 01/22] id-pool: re-factor recirculation id allocator into stand-alone id pool

2014-11-09 Thread Simon Horman
Refactor the lock-free portion of the recirculation id allocator into stand-alone id pool. This is in preparation for re-using that portion to allocate bucket ids which are part of (draft) Open Flow 1.5 groups. EXT-350 Signed-off-by: Simon Horman --- lib/automake.mk| 2 + lib/id

[ovs-dev] [PATCH 02/22] id-pool: Refactor id_pool_alloc_id to allow any 32 bit value to be an id

2014-11-09 Thread Simon Horman
id_pool_alloc_id() was created by breaking out the recirculation allocation code. As it is now a library call it makes sense to remove the restriction that id 0 is reserved. Signed-off-by: Simon Horman --- lib/id-pool.c | 43 ++- lib/id

[ovs-dev] [PATCH 03/22] ofp-errors: Add (draft) OpenFlow 1.5 errors

2014-11-09 Thread Simon Horman
Add OFPERR_OFPGMFC_UNKNOWN_BUCKET and OFPERR_OFPGMFC_BUCKET_EXISTS which are part of (draft) OpenFlow 1.5 groups. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-errors.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/lib/ofp-errors.h b/lib/ofp-errors.h index 2516b39..40c7910 100644

[ovs-dev] [PATCH 04/22] ofproto: Add types for (draft) OpenFlow 1.5 group mod

2014-11-09 Thread Simon Horman
EXT-350 Signed-off-by: Simon Horman --- include/openflow/openflow-1.5.h | 159 +++- 1 file changed, 158 insertions(+), 1 deletion(-) diff --git a/include/openflow/openflow-1.5.h b/include/openflow/openflow-1.5.h index a5a51c0..a413755 100644 --- a/include

[ovs-dev] [PATCH 05/22] ofproto: Add OFPRAW_OFPT15_GROUP_MOD

2014-11-09 Thread Simon Horman
This is in preparation for supporting (draft) OpenFlow1.5 group mod. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-msgs.h | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ofp-msgs.h b/lib/ofp-msgs.h index a78747e..fc69586 100644 --- a/lib/ofp-msgs.h +++ b/lib/ofp

[ovs-dev] [PATCH 06/22] ofp-util: Provide helper to encode OpenFlow 1.1 group buckets

2014-11-09 Thread Simon Horman
The group bucket encoding code appears in two places in almost identical form. Consolidate this into a helper function. The helper name includes ofp11 as later patches will add and ofp15 version to support (draft) OpenFlow 1.5 buckets. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-util.c

[ovs-dev] [PATCH 13/22] ofp-print: print bucket ids of OpenFlow 1.5 group messages

2014-11-09 Thread Simon Horman
EXT-350 Signed-off-by: Simon Horman --- lib/ofp-print.c | 39 --- tests/ofproto.at | 2 +- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index d27d8a7..68f5740 100644 --- a/lib/ofp-print.c +++ b/lib/ofp

[ovs-dev] [PATCH 07/22] ofp-util: Break-out encoding of OpenFlow 1.1 group mod messages

2014-11-09 Thread Simon Horman
This refactoring is in preparation for supporting encoding of (draft) OpenFlow 1.5 group mod messages. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-util.c | 45 + 1 file changed, 25 insertions(+), 20 deletions(-) diff --git a/lib/ofp-util.c b/lib

[ovs-dev] [PATCH 08/22] ofp-util: Rename OpenFlow 1.1 buckets decoder

2014-11-09 Thread Simon Horman
Rename ofputil_pull_buckets() as ofputil_pull_buckets11() to denote that it decodes OpenFlow 1.1 buckets (also used in OpenFlow 1.2 to 1.4). This refactoring is in preparation for supporting decoding of (draft) OpenFlow 1.5 group mod messages and their buckets. EXT-350 Signed-off-by: Simon

[ovs-dev] [PATCH 11/22] ofp-util: Refactor decoding of OpenFlow 1.1 group desc reply messages

2014-11-09 Thread Simon Horman
This refactoring is in preparation for supporting encoding of (draft) OpenFlow 1.5 group mod messages. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-util.c | 46 +- 1 file changed, 33 insertions(+), 13 deletions(-) diff --git a/lib/ofp-util.c b/lib

[ovs-dev] [PATCH 14/22] ofp-print: Support printing of (draft) OpenFlow 1.5 group messages with bucket actions

2014-11-09 Thread Simon Horman
EXT-350 Signed-off-by: Simon Horman --- lib/ofp-print.c| 50 +++-- tests/ofp-print.at | 60 -- 2 files changed, 97 insertions(+), 13 deletions(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index

[ovs-dev] [PATCH 09/22] ofp-util: Refactor decoding of OpenFlow 1.1 group mod messages

2014-11-09 Thread Simon Horman
This refactoring is in preparation for supporting encoding of (draft) OpenFlow 1.5 group mod messages. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-util.c | 37 ++--- 1 file changed, 30 insertions(+), 7 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp

[ovs-dev] [PATCH 10/22] ofp-util: Refactor encoding of OpenFlow 1.1 group desc reply messages

2014-11-09 Thread Simon Horman
This refactoring is in preparation for supporting encoding of (draft) OpenFlow 1.5 group mod messages. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-util.c | 39 +++ 1 file changed, 31 insertions(+), 8 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp

[ovs-dev] [PATCH 12/22] ofp-util: Encoding and decoding of (draft) OpenFlow 1.5 group messages

2014-11-09 Thread Simon Horman
-experimenter properties are defined this patch does not provide parsing or encoding of group properties. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-parse.c | 2 + lib/ofp-util.c | 469 +++- lib/ofp-util.h | 8 +- 3 files changed, 474

[ovs-dev] [PATCH 16/22] ofproto: Add OpenFlow 1.3 group stats test

2014-11-09 Thread Simon Horman
This is to exercise OpenFlow 1.3 group stats replies messages which include a duration. Signed-off-by: Simon Horman --- tests/ofproto.at | 26 +- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/tests/ofproto.at b/tests/ofproto.at index d5998a8..2adce8a

[ovs-dev] [PATCH 21/22] ofp-parse: Parse bucket commands of group mod

2014-11-09 Thread Simon Horman
(Draft) OpenFlow 1.5 adds bucket commands to group mod. This patch allows parsing of them as a step towards supporting them. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-parse.c | 60 ++--- 1 file changed, 57 insertions(+), 3 deletions

[ovs-dev] [PATCH 15/22] ofp-parse: Parse (draft) OpenFlow 1.5 bucket ids

2014-11-09 Thread Simon Horman
This is part of support for (draft) OpenFlow 1.5 flow mod messages. This adds support for specifying the bucket_id of buckets of groups in ovs-ofctl and documents that accordingly. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-parse.c | 11 +-- utilities/ovs-ofctl.8.in | 7

[ovs-dev] [PATCH 17/22] ofproto: Add OpenFlow 1.5 group tests

2014-11-09 Thread Simon Horman
This motivation for this change is to exercise (draft) OpenFlow 1.5 group messages. EXT-350 Signed-off-by: Simon Horman --- tests/ofproto.at | 68 1 file changed, 64 insertions(+), 4 deletions(-) diff --git a/tests/ofproto.at b/tests

[ovs-dev] [PATCH 18/22] ofp-util: Enhanced command error logging during encoding group mod messages

2014-11-09 Thread Simon Horman
In preparation for supporting (draft) OpenFlow 1.5 group mod commands enhance the error logging of them. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-util.c | 48 1 file changed, 36 insertions(+), 12 deletions(-) diff --git a/lib/ofp-util.c b

[ovs-dev] [PATCH 19/22] ofp-util: Provide bucket list helper functions

2014-11-09 Thread Simon Horman
This is in preparation for supporting the bucket commands of (draft) Open Flow 1.5 group mod messages. EXT-350 Signed-off-by: Simon Horman --- lib/ofp-util.c | 67 ++ lib/ofp-util.h | 6 ++ 2 files changed, 73 insertions(+) diff

[ovs-dev] [PATCH 20/22] ofproto: handle (draft) OpenFlow 1.5 insert and remove group commands

2014-11-09 Thread Simon Horman
Handle (draft) OpenFlow 1.5 insert and remove group commands of group mod messages. EXT-350 Signed-off-by: Simon Horman --- ofproto/ofproto.c | 110 +- 1 file changed, 109 insertions(+), 1 deletion(-) diff --git a/ofproto/ofproto.c b/ofproto

[ovs-dev] [PATCH 22/22] ovs-ofctl: Support bucket commands

2014-11-09 Thread Simon Horman
(Draft) OpenFlow 1.5 flow mod commands include commands to manipulate the buckets of existing groups. This patch add support to ovs-ofctl for these commands. It also adds documentation and tests for them. EXT-350 Signed-off-by: Simon Horman --- tests/ofproto.at | 94

Re: [ovs-dev] [PATCH 03/22] ofp-errors: Add (draft) OpenFlow 1.5 errors

2014-11-10 Thread Simon Horman
On Mon, Nov 10, 2014 at 09:43:01AM -0800, Ben Pfaff wrote: > On Mon, Nov 10, 2014 at 01:47:50PM +0900, Simon Horman wrote: > > Add OFPERR_OFPGMFC_UNKNOWN_BUCKET and OFPERR_OFPGMFC_BUCKET_EXISTS > > which are part of (draft) OpenFlow 1.5 groups. > > > > EXT-350 > >

Re: [ovs-dev] [PATCH 04/22] ofproto: Add types for (draft) OpenFlow 1.5 group mod

2014-11-10 Thread Simon Horman
On Mon, Nov 10, 2014 at 09:55:53AM -0800, Ben Pfaff wrote: > On Mon, Nov 10, 2014 at 01:47:51PM +0900, Simon Horman wrote: > > EXT-350 > > Signed-off-by: Simon Horman > > Thanks, Simon! > > I see some misspellings of OpenFlow as "OpenFLow"

Re: [ovs-dev] [PATCH 12/22] ofp-util: Encoding and decoding of (draft) OpenFlow 1.5 group messages

2014-11-10 Thread Simon Horman
On Mon, Nov 10, 2014 at 10:13:53AM -0800, Ben Pfaff wrote: > On Mon, Nov 10, 2014 at 01:47:59PM +0900, Simon Horman wrote: > > This provides the bulk of the ofproto side of support for > > OpenFlow 1.5 group messages. It provides for encoding and decoding > > of updated gro

Re: [ovs-dev] [PATCH 05/22] ofproto: Add OFPRAW_OFPT15_GROUP_MOD

2014-11-10 Thread Simon Horman
On Mon, Nov 10, 2014 at 09:58:38AM -0800, Ben Pfaff wrote: > On Mon, Nov 10, 2014 at 01:47:52PM +0900, Simon Horman wrote: > > This is in preparation for supporting (draft) OpenFlow1.5 group mod. > > > > EXT-350 > > Signed-off-by: Simon Horman > > Thanks. >

Re: [ovs-dev] [PATCH 04/22] ofproto: Add types for (draft) OpenFlow 1.5 group mod

2014-11-10 Thread Simon Horman
On Tue, Nov 11, 2014 at 10:01:01AM +0900, Simon Horman wrote: > On Mon, Nov 10, 2014 at 09:55:53AM -0800, Ben Pfaff wrote: > > On Mon, Nov 10, 2014 at 01:47:51PM +0900, Simon Horman wrote: > > > EXT-350 > > > Signed-off-by: Simon Horman > > > > Thanks, Sim

[ovs-dev] [PATCH v2 00/13] EXT-350: (draft) OpenFlow 1.5 groups

2014-11-10 Thread Simon Horman
r the new errors - Remove unused/unnecessary ofp15_* strures - Do not imply actions are a list: they are a set * Dropped many patches that have been merged. Thanks Ben! Simon Horman (13): ofp-errors: Add (draft) OpenFlow 1.5 group mod errors ofproto: Add types for (draft) OpenFlow 1.5 grou

[ovs-dev] [PATCH v2 01/13] ofp-errors: Add (draft) OpenFlow 1.5 group mod errors

2014-11-10 Thread Simon Horman
Add OFPERR_OFPGMFC_UNKNOWN_BUCKET and OFPERR_OFPGMFC_BUCKET_EXISTS which are part of (draft) OpenFlow 1.5 groups. ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * As suggested by Ben Pfaff - Use ONF-JIRA: EXT-350 annotation in changelog - Use correct descriptions for the new errors

[ovs-dev] [PATCH v2 02/13] ofproto: Add types for (draft) OpenFlow 1.5 group mod

2014-11-10 Thread Simon Horman
ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * As suggested by Ben Pfaff + Use ONF-JIRA: EXT-350 annotation in changelog + Correct spelling: s/FLow/Flow/ + Removed the following which seem unnecessary in the context of this patchset: - struct ofp15_group_bucket_prop_header

[ovs-dev] [PATCH v2 03/13] ofp-util: Encoding and decoding of (draft) OpenFlow 1.5 group messages

2014-11-10 Thread Simon Horman
-experimenter properties are defined this patch does not provide parsing or encoding of group properties. ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * Rebase to use actions_len field of struct ofp15_bucket instead of action_list_len field * As suggested by Ben Pfaff - Use ONF-JIRA: EXT-350

[ovs-dev] [PATCH v2 04/13] ofp-print: print bucket ids of OpenFlow 1.5 group messages

2014-11-10 Thread Simon Horman
ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * As suggested by Ben Pfaff - Use ONF-JIRA: EXT-350 annotation in changelog --- lib/ofp-print.c | 39 --- tests/ofproto.at | 2 +- 2 files changed, 37 insertions(+), 4 deletions(-) diff --git a/lib/ofp

[ovs-dev] [PATCH v2 05/13] ofp-print: Support printing of (draft) OpenFlow 1.5 group messages with bucket actions

2014-11-10 Thread Simon Horman
ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * As suggested by Ben Pfaff - Use ONF-JIRA: EXT-350 annotation in changelog --- lib/ofp-print.c| 50 +++-- tests/ofp-print.at | 60 -- 2 files

[ovs-dev] [PATCH v2 06/13] ofp-parse: Parse (draft) OpenFlow 1.5 bucket ids

2014-11-10 Thread Simon Horman
This is part of support for (draft) OpenFlow 1.5 flow mod messages. This adds support for specifying the bucket_id of buckets of groups in ovs-ofctl and documents that accordingly. ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * As suggested by Ben Pfaff - Use ONF-JIRA: EXT-350

[ovs-dev] [PATCH v2 07/13] ofproto: Add OpenFlow 1.3 group stats test

2014-11-10 Thread Simon Horman
This is to exercise OpenFlow 1.3 group stats replies messages which include a duration. ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * As suggested by Ben Pfaff - Use ONF-JIRA: EXT-350 annotation in changelog --- tests/ofproto.at | 26 +- 1 file changed, 25

[ovs-dev] [PATCH v2 08/13] ofproto: Add OpenFlow 1.5 group tests

2014-11-10 Thread Simon Horman
This motivation for this change is to exercise (draft) OpenFlow 1.5 group messages. ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * As suggested by Ben Pfaff - Use ONF-JIRA: EXT-350 annotation in changelog --- tests/ofproto.at | 68

[ovs-dev] [PATCH v2 09/13] ofp-util: Enhanced command error logging during encoding group mod messages

2014-11-10 Thread Simon Horman
In preparation for supporting (draft) OpenFlow 1.5 group mod commands enhance the error logging of them. ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * As suggested by Ben Pfaff - Use ONF-JIRA: EXT-350 annotation in changelog --- lib/ofp-util.c | 48

[ovs-dev] [PATCH v2 11/13] ofproto: handle (draft) OpenFlow 1.5 insert and remove group commands

2014-11-10 Thread Simon Horman
Handle (draft) OpenFlow 1.5 insert and remove group commands of group mod messages. ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * As suggested by Ben Pfaff - Use ONF-JIRA: EXT-350 annotation in changelog --- ofproto/ofproto.c | 110

[ovs-dev] [PATCH v2 12/13] ofp-parse: Parse bucket commands of group mod

2014-11-10 Thread Simon Horman
(Draft) OpenFlow 1.5 adds bucket commands to group mod. This patch allows parsing of them as a step towards supporting them. ONF-JIRA: EXT-350 Signed-off-by: Simon Horman --- v2 * As suggested by Ben Pfaff - Use ONF-JIRA: EXT-350 annotation in changelog --- lib/ofp-parse.c | 60

Re: [ovs-dev] [PATCH 04/22] ofproto: Add types for (draft) OpenFlow 1.5 group mod

2014-11-11 Thread Simon Horman
On Mon, Nov 10, 2014 at 08:34:30PM -0800, Ben Pfaff wrote: > On Tue, Nov 11, 2014 at 10:01:03AM +0900, Simon Horman wrote: > > On Mon, Nov 10, 2014 at 09:55:53AM -0800, Ben Pfaff wrote: > > > On Mon, Nov 10, 2014 at 01:47:51PM +0900, Simon Horman wrote: > > > > EXT-35

Re: [ovs-dev] [PATCH v2 03/13] ofp-util: Encoding and decoding of (draft) OpenFlow 1.5 group messages

2014-11-11 Thread Simon Horman
On Tue, Nov 11, 2014 at 08:49:56AM -0800, Ben Pfaff wrote: > On Tue, Nov 11, 2014 at 12:39:19PM +0900, Simon Horman wrote: > > This provides the bulk of the ofproto side of support for > > OpenFlow 1.5 group messages. It provides for encoding and decoding > > of updated gro

Re: [ovs-dev] [PATCH v2 06/13] ofp-parse: Parse (draft) OpenFlow 1.5 bucket ids

2014-11-11 Thread Simon Horman
On Tue, Nov 11, 2014 at 09:15:51AM -0800, Ben Pfaff wrote: > On Tue, Nov 11, 2014 at 12:39:22PM +0900, Simon Horman wrote: > > This is part of support for (draft) OpenFlow 1.5 flow mod messages. > > > > This adds support for specifying the bucket_id of buckets of groups

Re: [ovs-dev] [PATCH v2 09/13] ofp-util: Enhanced command error logging during encoding group mod messages

2014-11-11 Thread Simon Horman
On Tue, Nov 11, 2014 at 09:21:36AM -0800, Ben Pfaff wrote: > On Tue, Nov 11, 2014 at 12:39:25PM +0900, Simon Horman wrote: > > In preparation for supporting (draft) OpenFlow 1.5 > > group mod commands enhance the error logging of them. > > > > ONF-JIRA: EXT-350 >

Re: [ovs-dev] [PATCH v2 13/13] ovs-ofctl: Support bucket commands

2014-11-11 Thread Simon Horman
On Tue, Nov 11, 2014 at 09:33:08AM -0800, Ben Pfaff wrote: > On Tue, Nov 11, 2014 at 12:39:29PM +0900, Simon Horman wrote: > > (Draft) OpenFlow 1.5 flow mod commands include commands to manipulate the > > buckets of existing groups. This patch add support to ovs-ofctl for these &

Re: [ovs-dev] [PATCH v2 11/13] ofproto: handle (draft) OpenFlow 1.5 insert and remove group commands

2014-11-11 Thread Simon Horman
On Tue, Nov 11, 2014 at 09:27:56AM -0800, Ben Pfaff wrote: > On Tue, Nov 11, 2014 at 12:39:27PM +0900, Simon Horman wrote: > > Handle (draft) OpenFlow 1.5 insert and remove group commands > > of group mod messages. > > > > ONF-JIRA: EXT-350 > > Signed-off-by:

Re: [ovs-dev] [PATCH v2 10/13] ofp-util: Provide bucket list helper functions

2014-11-11 Thread Simon Horman
On Tue, Nov 11, 2014 at 09:24:10AM -0800, Ben Pfaff wrote: > On Tue, Nov 11, 2014 at 12:39:26PM +0900, Simon Horman wrote: > > This is in preparation for supporting the bucket commands of > > (draft) Open Flow 1.5 group mod messages. > > > > ONF-JIRA: EXT-350 >

Re: [ovs-dev] [PATCH v2 11/13] ofproto: handle (draft) OpenFlow 1.5 insert and remove group commands

2014-11-11 Thread Simon Horman
On Tue, Nov 11, 2014 at 08:45:59PM -0800, Ben Pfaff wrote: > On Wed, Nov 12, 2014 at 01:33:50PM +0900, Simon Horman wrote: > > On Tue, Nov 11, 2014 at 09:27:56AM -0800, Ben Pfaff wrote: > > > On Tue, Nov 11, 2014 at 12:39:27PM +0900, Simon Horman wrote: > > > > Hand

Re: [ovs-dev] [PATCH v2 09/13] ofp-util: Enhanced command error logging during encoding group mod messages

2014-11-11 Thread Simon Horman
On Tue, Nov 11, 2014 at 08:44:29PM -0800, Ben Pfaff wrote: > On Wed, Nov 12, 2014 at 12:46:08PM +0900, Simon Horman wrote: > > On Tue, Nov 11, 2014 at 09:21:36AM -0800, Ben Pfaff wrote: > > > Using a blind array dereference into cmd_str[] in bad_group_cmd() seems > > &

[ovs-dev] [PATCH v3 0/7] EXT-350: (draft) OpenFlow 1.5 groups

2014-11-11 Thread Simon Horman
/unnecessary ofp15_* strures - Do not imply actions are a list: they are a set * Dropped many patches that have been merged. Simon Horman (7): ofp-util: Do not allow buckets for OFPGC15_REMOVE_BUCKET ofp-util: Enhanced command error logging during encoding group mod messages ofp-util

<    1   2   3   4   5   6   7   8   9   10   >