Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-02-05 Thread Simon Horman
On Tue, Feb 05, 2013 at 09:19:06AM -0800, Ben Pfaff wrote: > On Tue, Feb 05, 2013 at 10:13:18AM +0900, Simon Horman wrote: > > On Tue, Feb 05, 2013 at 09:00:35AM +0900, Simon Horman wrote: > > > On Mon, Feb 04, 2013 at 10:09:20AM -0800, Ben Pfaff wrote: > > > > On Fri, Jan 25, 2013 at 04:22:07PM +0

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-02-05 Thread Ben Pfaff
On Tue, Feb 05, 2013 at 10:13:18AM +0900, Simon Horman wrote: > On Tue, Feb 05, 2013 at 09:00:35AM +0900, Simon Horman wrote: > > On Mon, Feb 04, 2013 at 10:09:20AM -0800, Ben Pfaff wrote: > > > On Fri, Jan 25, 2013 at 04:22:07PM +0900, Simon Horman wrote: > > > > This patch implements use-space da

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-02-04 Thread Simon Horman
On Tue, Feb 05, 2013 at 09:00:35AM +0900, Simon Horman wrote: > On Mon, Feb 04, 2013 at 10:09:20AM -0800, Ben Pfaff wrote: > > On Fri, Jan 25, 2013 at 04:22:07PM +0900, Simon Horman wrote: > > > This patch implements use-space datapath and non-datapath code > > > to match and use the datapath API s

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-02-04 Thread Simon Horman
On Mon, Feb 04, 2013 at 10:09:20AM -0800, Ben Pfaff wrote: > On Fri, Jan 25, 2013 at 04:22:07PM +0900, Simon Horman wrote: > > This patch implements use-space datapath and non-datapath code > > to match and use the datapath API set out in Leo Alterman's patch > > "user-space datapath: Add basic MPL

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-24 Thread Ben Pfaff
On Fri, Jan 25, 2013 at 01:44:39PM +0900, Simon Horman wrote: > On Tue, Jan 22, 2013 at 03:49:42PM -0800, Ben Pfaff wrote: > > On Thu, Jan 17, 2013 at 02:26:06PM +0900, Simon Horman wrote: > > > > On Tue, Jan 15, 2013 at 11:05:45PM -0800, Ben Pfaff wrote: > > > > > parse_l3_onward() could use flow_

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-24 Thread Simon Horman
On Tue, Jan 22, 2013 at 03:49:42PM -0800, Ben Pfaff wrote: > On Thu, Jan 17, 2013 at 02:26:06PM +0900, Simon Horman wrote: > > > On Tue, Jan 15, 2013 at 11:05:45PM -0800, Ben Pfaff wrote: > > > > parse_l3_onward() could use flow_innermost_dl_type() since that's what > > > > it's effectively calcula

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-23 Thread Andre Khan
Great! Thanks for clearing that up for me. -Andre - Original Message - From: "Simon Horman" To: "Andre Khan" Cc: dev@openvswitch.org, "Isaku Yamahata" , "Ravi K" , "Ben Pfaff" Sent: Wednesday, January 23, 2013 11:00:11 PM Subject: R

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-23 Thread Simon Horman
On Wed, Jan 23, 2013 at 10:31:52PM -0800, Andre Khan wrote: > > Hi Simon, > > Regarding this part in your mail: > >>> push_mpls_lse() isn't documented as putting the new MPLS label before or >>> after the existing labels, but it appears to me that it puts the new >>> label after the

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-23 Thread Simon Horman
On Tue, Jan 22, 2013 at 03:41:37PM -0800, Ben Pfaff wrote: > On Tue, Jan 22, 2013 at 10:47:17AM -0800, Ben Pfaff wrote: > > On Fri, Jan 18, 2013 at 09:27:55AM +0900, Simon Horman wrote: > > > This patch implements use-space datapath and non-datapath code > > > to match and use the datapath API set

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-23 Thread Andre Khan
t; To: "Ben Pfaff" Cc: dev@openvswitch.org, "Isaku Yamahata" , "Ravi K" Sent: Wednesday, January 23, 2013 9:43:58 PM Subject: Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches On Tue, Jan 22, 2013 at 10:47:17AM -0800, Ben Pfaff wrote: > On Fri, Jan 18, 2

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-23 Thread Simon Horman
On Tue, Jan 22, 2013 at 10:47:17AM -0800, Ben Pfaff wrote: > On Fri, Jan 18, 2013 at 09:27:55AM +0900, Simon Horman wrote: > > This patch implements use-space datapath and non-datapath code > > to match and use the datapath API set out in Leo Alterman's patch > > "user-space datapath: Add basic MPL

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-22 Thread Ben Pfaff
On Thu, Jan 17, 2013 at 02:26:06PM +0900, Simon Horman wrote: > > On Tue, Jan 15, 2013 at 11:05:45PM -0800, Ben Pfaff wrote: > > > parse_l3_onward() could use flow_innermost_dl_type() since that's what > > > it's effectively calculating as 'dl_type' (maybe it should be > > > 'inner_dl_type' or 'inn

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-22 Thread Ben Pfaff
On Tue, Jan 22, 2013 at 10:47:17AM -0800, Ben Pfaff wrote: > On Fri, Jan 18, 2013 at 09:27:55AM +0900, Simon Horman wrote: > > This patch implements use-space datapath and non-datapath code > > to match and use the datapath API set out in Leo Alterman's patch > > "user-space datapath: Add basic MPL

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-22 Thread Ben Pfaff
On Tue, Jan 22, 2013 at 09:27:14AM +0900, Simon Horman wrote: > On Thu, Jan 17, 2013 at 02:26:06PM +0900, Simon Horman wrote: > > On Wed, Jan 16, 2013 at 05:38:08PM +0900, Simon Horman wrote: > > > On Tue, Jan 15, 2013 at 11:05:45PM -0800, Ben Pfaff wrote: > > [snip] > > > > > parse_l3_onward() c

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-22 Thread Ben Pfaff
On Fri, Jan 18, 2013 at 09:27:55AM +0900, Simon Horman wrote: > This patch implements use-space datapath and non-datapath code > to match and use the datapath API set out in Leo Alterman's patch > "user-space datapath: Add basic MPLS support to kernel". I'm resuming my review starting from packets

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-21 Thread Simon Horman
On Thu, Jan 17, 2013 at 02:26:06PM +0900, Simon Horman wrote: > On Wed, Jan 16, 2013 at 05:38:08PM +0900, Simon Horman wrote: > > On Tue, Jan 15, 2013 at 11:05:45PM -0800, Ben Pfaff wrote: [snip] > > > parse_l3_onward() could use flow_innermost_dl_type() since that's what > > > it's effectively c

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-17 Thread Simon Horman
On Thu, Jan 17, 2013 at 11:22:56AM -0800, Jesse Gross wrote: > On Thu, Jan 17, 2013 at 10:18 AM, Ben Pfaff wrote: > > On Thu, Jan 17, 2013 at 09:16:36AM -0800, Jesse Gross wrote: > >> On Wed, Jan 16, 2013 at 8:54 PM, Simon Horman wrote: > >> It is. However, my understanding is that you were plan

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-17 Thread Jesse Gross
On Thu, Jan 17, 2013 at 10:18 AM, Ben Pfaff wrote: > On Thu, Jan 17, 2013 at 09:16:36AM -0800, Jesse Gross wrote: >> On Wed, Jan 16, 2013 at 8:54 PM, Simon Horman wrote: >> It is. However, my understanding is that you were planning on >> following Ben's suggestion to try to get the userspace por

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-17 Thread Ben Pfaff
On Thu, Jan 17, 2013 at 09:16:36AM -0800, Jesse Gross wrote: > On Wed, Jan 16, 2013 at 8:54 PM, Simon Horman wrote: > It is. However, my understanding is that you were planning on > following Ben's suggestion to try to get the userspace portions in > first. In that case, there is no userspace/ke

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-17 Thread Jesse Gross
On Wed, Jan 16, 2013 at 8:54 PM, Simon Horman wrote: > On Wed, Jan 16, 2013 at 07:04:06PM -0800, Jesse Gross wrote: >> On Wed, Jan 16, 2013 at 4:27 PM, Simon Horman wrote: >> > On Wed, Jan 16, 2013 at 11:24:42AM -0800, Jesse Gross wrote: >> >> On Tue, Jan 15, 2013 at 11:05 PM, Ben Pfaff wrote: >

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Simon Horman
On Wed, Jan 16, 2013 at 05:38:08PM +0900, Simon Horman wrote: > On Tue, Jan 15, 2013 at 11:05:45PM -0800, Ben Pfaff wrote: > > On Tue, Jan 08, 2013 at 02:46:02PM +0900, Simon Horman wrote: > > > diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h > > > index 5e32965..b421753 1006

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Simon Horman
On Wed, Jan 16, 2013 at 07:04:06PM -0800, Jesse Gross wrote: > On Wed, Jan 16, 2013 at 4:27 PM, Simon Horman wrote: > > On Wed, Jan 16, 2013 at 11:24:42AM -0800, Jesse Gross wrote: > >> On Tue, Jan 15, 2013 at 11:05 PM, Ben Pfaff wrote: > >> > On Tue, Jan 08, 2013 at 02:46:02PM +0900, Simon Horma

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Jesse Gross
On Wed, Jan 16, 2013 at 4:31 PM, Ben Pfaff wrote: > On Thu, Jan 17, 2013 at 09:27:03AM +0900, Simon Horman wrote: >> > > I'm not sure why we have OVS_ACTION_ATTR_SET_MPLS instead of using >> > > OVS_ACTION_SET to set OVS_KEY_ATTR_MPLS. >> > >> > For the PUSH/POP actions I think we also have the sa

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Jesse Gross
On Wed, Jan 16, 2013 at 4:27 PM, Simon Horman wrote: > On Wed, Jan 16, 2013 at 11:24:42AM -0800, Jesse Gross wrote: >> On Tue, Jan 15, 2013 at 11:05 PM, Ben Pfaff wrote: >> > On Tue, Jan 08, 2013 at 02:46:02PM +0900, Simon Horman wrote: >> >> diff --git a/include/linux/openvswitch.h b/include/lin

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Simon Horman
On Wed, Jan 16, 2013 at 04:31:31PM -0800, Ben Pfaff wrote: > On Thu, Jan 17, 2013 at 09:27:03AM +0900, Simon Horman wrote: > > > > I'm not sure why we have OVS_ACTION_ATTR_SET_MPLS instead of using > > > > OVS_ACTION_SET to set OVS_KEY_ATTR_MPLS. > > > > > > For the PUSH/POP actions I think we als

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Ben Pfaff
On Thu, Jan 17, 2013 at 09:27:03AM +0900, Simon Horman wrote: > > > I'm not sure why we have OVS_ACTION_ATTR_SET_MPLS instead of using > > > OVS_ACTION_SET to set OVS_KEY_ATTR_MPLS. > > > > For the PUSH/POP actions I think we also have the same issue with > > inserting in the middle of the list an

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Simon Horman
On Wed, Jan 16, 2013 at 03:49:00PM -0800, Ben Pfaff wrote: > On Wed, Jan 16, 2013 at 11:24:42AM -0800, Jesse Gross wrote: > > On Tue, Jan 15, 2013 at 11:05 PM, Ben Pfaff wrote: > > > On Tue, Jan 08, 2013 at 02:46:02PM +0900, Simon Horman wrote: > > >> diff --git a/include/linux/openvswitch.h b/inc

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Simon Horman
On Wed, Jan 16, 2013 at 11:24:42AM -0800, Jesse Gross wrote: > On Tue, Jan 15, 2013 at 11:05 PM, Ben Pfaff wrote: > > On Tue, Jan 08, 2013 at 02:46:02PM +0900, Simon Horman wrote: > >> diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h > >> index 5e32965..b421753 100644 > >> --

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Ben Pfaff
On Wed, Jan 16, 2013 at 11:24:42AM -0800, Jesse Gross wrote: > On Tue, Jan 15, 2013 at 11:05 PM, Ben Pfaff wrote: > > On Tue, Jan 08, 2013 at 02:46:02PM +0900, Simon Horman wrote: > >> diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h > >> index 5e32965..b421753 100644 > >> --

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Jesse Gross
On Tue, Jan 15, 2013 at 11:05 PM, Ben Pfaff wrote: > On Tue, Jan 08, 2013 at 02:46:02PM +0900, Simon Horman wrote: >> diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h >> index 5e32965..b421753 100644 >> --- a/include/linux/openvswitch.h >> +++ b/include/linux/openvswitch.h >>

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-16 Thread Simon Horman
On Tue, Jan 15, 2013 at 11:05:45PM -0800, Ben Pfaff wrote: > On Tue, Jan 08, 2013 at 02:46:02PM +0900, Simon Horman wrote: > > diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h > > index 5e32965..b421753 100644 > > --- a/include/linux/openvswitch.h > > +++ b/include/linux/openv

Re: [ovs-dev] [PATCH 01/16] User-Space MPLS actions and matches

2013-01-15 Thread Ben Pfaff
On Tue, Jan 08, 2013 at 02:46:02PM +0900, Simon Horman wrote: > diff --git a/include/linux/openvswitch.h b/include/linux/openvswitch.h > index 5e32965..b421753 100644 > --- a/include/linux/openvswitch.h > +++ b/include/linux/openvswitch.h > @@ -282,6 +282,7 @@ enum ovs_key_attr { > OVS_KEY_AT