Re: [ovs-dev] [#8024v2 2/5] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Justin Pettit
On Nov 8, 2011, at 8:12 PM, Jesse Gross wrote: > On Tue, Nov 8, 2011 at 3:57 PM, Justin Pettit wrote: >> diff --git a/datapath/flow.h b/datapath/flow.h >> index ba8c66a..f12b11a 100644 >> --- a/datapath/flow.h >> +++ b/datapath/flow.h >> @@ -147,7 +143,7 @@ u64 flow_used_time(unsigned long flow_j

Re: [ovs-dev] [#8024v2 1/5] Support matching IPv6 flow label.

2011-11-08 Thread Justin Pettit
On Nov 8, 2011, at 5:12 PM, Jesse Gross wrote: > I got some sparse errors: > /home/jesse/openvswitch/datapath/linux/flow.c:205:40: warning: > restricted __be32 degrades to integer > /home/jesse/openvswitch/datapath/linux/flow.c:205:25: warning: > incorrect type in assignment (different base types)

Re: [ovs-dev] [#8024v2 5/5] odp-util: Use PRIu8 instead of PRId8 when printing ip_proto.

2011-11-08 Thread Justin Pettit
On Nov 8, 2011, at 4:52 PM, Ben Pfaff wrote: > On Tue, Nov 08, 2011 at 03:57:32PM -0800, Justin Pettit wrote: >> Suggested-by: Ben Pfaff > > Looks good, thank you. Thanks for reviewing the series! --Justin ___ dev mailing list dev@openvswitch.org

Re: [ovs-dev] [#8024v2 2/5] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Justin Pettit
On Nov 8, 2011, at 8:13 PM, Jesse Gross wrote: > On Tue, Nov 8, 2011 at 4:24 PM, Ben Pfaff wrote: >> On Tue, Nov 08, 2011 at 03:57:29PM -0800, Justin Pettit wrote: >>> This will be useful later when we add support for matching the ECN bits >>> within the TOS field. >>> >>> Signed-off-by: Justin

Re: [ovs-dev] [#8024v2 2/5] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Justin Pettit
On Nov 8, 2011, at 4:24 PM, Ben Pfaff wrote: > I think that these |=s can become =s: > >> -key->ip.tos_frag |= OVS_FRAG_TYPE_LATER; >> +key->ip.frag |= OVS_FRAG_TYPE_LATER; >> >> -key->ip.tos_frag |= OVS_FRAG_TYPE_FIRST; >> +

Re: [ovs-dev] [#8024v2 3/5] Support matching and modifying IP ECN bits.

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 8:44 PM, Jesse Gross wrote: > On Tue, Nov 8, 2011 at 3:57 PM, Justin Pettit wrote: >> diff --git a/lib/odp-util.c b/lib/odp-util.c >> index 2853bf7..29abce4 100644 >> --- a/lib/odp-util.c >> +++ b/lib/odp-util.c >> @@ -370,7 +370,7 @@ format_odp_key_attr(const struct nlattr

Re: [ovs-dev] [#8024v2 4/5] Support matching and modifying IP TTL.

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 3:57 PM, Justin Pettit wrote: > Add support matching the IPv4 TTL and IPv6 hop limit fields.  This > commit also adds support for modifying the IPv4 TTL.  Modifying the IPv6 > hop limit isn't currently supported, since we don't support modifying > IPv6 headers. > > We will l

Re: [ovs-dev] [#8024v2 1/5] Support matching IPv6 flow label.

2011-11-08 Thread Justin Pettit
On Nov 8, 2011, at 4:06 PM, Ben Pfaff wrote: > On Tue, Nov 08, 2011 at 03:57:28PM -0800, Justin Pettit wrote: >> +/* The flow label in the IPv6 header. >> + * >> + * Prereqs: NXM_OF_ETH_TYPE must match 0x86dd exactly. >> + * >> + * Format: 20-bit IPv6 flow label. > > In the least-significant 20 b

Re: [ovs-dev] [#8024v2 3/5] Support matching and modifying IP ECN bits.

2011-11-08 Thread Justin Pettit
On Nov 8, 2011, at 4:45 PM, Ben Pfaff wrote: > On Tue, Nov 08, 2011 at 03:57:30PM -0800, Justin Pettit wrote: >> Signed-off-by: Justin Pettit > > Does this really add the ability to modify ECN in IPv6: > >> @@ -2,6 +2,8 @@ post-v1.3.0 >> >> - OpenFlow: >>- A

Re: [ovs-dev] [#8024v2 2/5] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 8:12 PM, Jesse Gross wrote: > On Tue, Nov 8, 2011 at 3:57 PM, Justin Pettit wrote: >> diff --git a/datapath/flow.h b/datapath/flow.h >> index ba8c66a..f12b11a 100644 >> --- a/datapath/flow.h >> +++ b/datapath/flow.h >> @@ -147,7 +143,7 @@ u64 flow_used_time(unsigned long fl

Re: [ovs-dev] [PATCH] ofproto-dpif: Actually disable STP on port when disabling STP on port.

2011-11-08 Thread Justin Pettit
On Nov 8, 2011, at 8:24 PM, Ben Pfaff wrote: > On Tue, Nov 08, 2011 at 05:35:20PM -0800, Justin Pettit wrote: >> When disabling STP on a port that has it enabled on the bridge, STP was >> not actually being disabled on the port. This commit directly calls the >> update function in this situation.

Re: [ovs-dev] [#8024v2 3/5] Support matching and modifying IP ECN bits.

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 3:57 PM, Justin Pettit wrote: > diff --git a/lib/odp-util.c b/lib/odp-util.c > index 2853bf7..29abce4 100644 > --- a/lib/odp-util.c > +++ b/lib/odp-util.c > @@ -370,7 +370,7 @@ format_odp_key_attr(const struct nlattr *a, struct ds *ds) >     case OVS_KEY_ATTR_IPV4: >        

Re: [ovs-dev] proposed flow key compatibility rules

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 8:20 PM, Ben Pfaff wrote: > On Tue, Nov 08, 2011 at 06:40:51PM -0800, Jesse Gross wrote: >> On Tue, Nov 8, 2011 at 5:03 PM, Ben Pfaff wrote: >> > Jesse and I spent some time pondering this face-to-face, so there's a >> > bunch of discussion that hasn't shown up on the maili

Re: [ovs-dev] [PATCH] ofproto-dpif: Actually disable STP on port when disabling STP on port.

2011-11-08 Thread Ben Pfaff
On Tue, Nov 08, 2011 at 05:35:20PM -0800, Justin Pettit wrote: > When disabling STP on a port that has it enabled on the bridge, STP was > not actually being disabled on the port. This commit directly calls the > update function in this situation. > > Reported-by: Paul Ingram Looks good, thank

Re: [ovs-dev] [#8024v2 2/5] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Ben Pfaff
On Tue, Nov 08, 2011 at 08:13:31PM -0800, Jesse Gross wrote: > On Tue, Nov 8, 2011 at 4:24 PM, Ben Pfaff wrote: > > On Tue, Nov 08, 2011 at 03:57:29PM -0800, Justin Pettit wrote: > > Did you mean to update the comment on 'frag' below? > > > >> ??struct sw_flow_key { > >> ?? ?? ?? struct { > >> ??

Re: [ovs-dev] proposed flow key compatibility rules

2011-11-08 Thread Ben Pfaff
On Tue, Nov 08, 2011 at 06:40:51PM -0800, Jesse Gross wrote: > On Tue, Nov 8, 2011 at 5:03 PM, Ben Pfaff wrote: > > Jesse and I spent some time pondering this face-to-face, so there's a > > bunch of discussion that hasn't shown up on the mailing list. > > > > My understanding of what we concluded

Re: [ovs-dev] [#8024v2 2/5] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 4:24 PM, Ben Pfaff wrote: > On Tue, Nov 08, 2011 at 03:57:29PM -0800, Justin Pettit wrote: >> This will be useful later when we add support for matching the ECN bits >> within the TOS field. >> >> Signed-off-by: Justin Pettit > > I think that these |=s can become =s: There

Re: [ovs-dev] [#8024v2 2/5] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 3:57 PM, Justin Pettit wrote: > diff --git a/datapath/flow.h b/datapath/flow.h > index ba8c66a..f12b11a 100644 > --- a/datapath/flow.h > +++ b/datapath/flow.h > @@ -147,7 +143,7 @@ u64 flow_used_time(unsigned long flow_jiffies); >  *  OVS_KEY_ATTR_ETHERNET     12    --     4

[ovs-dev] [PATCH] datapath: Fix compiler warning on older kernel.

2011-11-08 Thread Pravin B Shelar
commit 6455100f38e9312346f4d58511595f695d813537 (datapath: Fix coding style issues) introduced this issue. Signed-off-by: Pravin B Shelar --- datapath/dp_sysfs.h|2 +- datapath/dp_sysfs_if.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/datapath/dp_sysfs.h b/d

Re: [ovs-dev] proposed flow key compatibility rules

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 5:03 PM, Ben Pfaff wrote: > Jesse and I spent some time pondering this face-to-face, so there's a > bunch of discussion that hasn't shown up on the mailing list. > > My understanding of what we concluded is: > >        - We will add a new "encap" flow key attribute that cont

[ovs-dev] [PATCH] ofproto-dpif: Actually disable STP on port when disabling STP on port.

2011-11-08 Thread Justin Pettit
When disabling STP on a port that has it enabled on the bridge, STP was not actually being disabled on the port. This commit directly calls the update function in this situation. Reported-by: Paul Ingram --- ofproto/ofproto-dpif.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff

Re: [ovs-dev] [#8024v2 1/5] Support matching IPv6 flow label.

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 3:57 PM, Justin Pettit wrote: > Signed-off-by: Justin Pettit I got some sparse errors: /home/jesse/openvswitch/datapath/linux/flow.c:205:40: warning: restricted __be32 degrades to integer /home/jesse/openvswitch/datapath/linux/flow.c:205:25: warning: incorrect type in assi

Re: [ovs-dev] proposed flow key compatibility rules

2011-11-08 Thread Ben Pfaff
Jesse and I spent some time pondering this face-to-face, so there's a bunch of discussion that hasn't shown up on the mailing list. My understanding of what we concluded is: - We will add a new "encap" flow key attribute that contains nested attributes. An "encap" is used whene

Re: [ovs-dev] [#8024v2 5/5] odp-util: Use PRIu8 instead of PRId8 when printing ip_proto.

2011-11-08 Thread Ben Pfaff
On Tue, Nov 08, 2011 at 03:57:32PM -0800, Justin Pettit wrote: > Suggested-by: Ben Pfaff Looks good, thank you. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [#8024v2 4/5] Support matching and modifying IP TTL.

2011-11-08 Thread Ben Pfaff
On Tue, Nov 08, 2011 at 03:57:31PM -0800, Justin Pettit wrote: > Add support matching the IPv4 TTL and IPv6 hop limit fields. This > commit also adds support for modifying the IPv4 TTL. Modifying the IPv6 > hop limit isn't currently supported, since we don't support modifying > IPv6 headers. > >

Re: [ovs-dev] [#8024v2 3/5] Support matching and modifying IP ECN bits.

2011-11-08 Thread Ben Pfaff
On Tue, Nov 08, 2011 at 03:57:30PM -0800, Justin Pettit wrote: > Signed-off-by: Justin Pettit Does this really add the ability to modify ECN in IPv6: > @@ -2,6 +2,8 @@ post-v1.3.0 > > - OpenFlow: > - Added ability to match on IPv6 flow label through NXM. >

[ovs-dev] hello

2011-11-08 Thread Pay Ofices
UNITED NATIONS in Affilation with the EUROPEAN UNION. Attention: We hereby bring to your notice that your Scam Victim's compensation fund of USD$6000,000.00 is approved and upgraded in your favor and ready to be release to you within three working days through Central Bank Of Ghana . You are

Re: [ovs-dev] [#8024v2 2/5] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Ben Pfaff
On Tue, Nov 08, 2011 at 03:57:29PM -0800, Justin Pettit wrote: > This will be useful later when we add support for matching the ECN bits > within the TOS field. > > Signed-off-by: Justin Pettit I think that these |=s can become =s: > if (offset) { > - key->ip.t

Re: [ovs-dev] [#8024v2 1/5] Support matching IPv6 flow label.

2011-11-08 Thread Ben Pfaff
On Tue, Nov 08, 2011 at 03:57:28PM -0800, Justin Pettit wrote: > +/* The flow label in the IPv6 header. > + * > + * Prereqs: NXM_OF_ETH_TYPE must match 0x86dd exactly. > + * > + * Format: 20-bit IPv6 flow label. In the least-significant 20 bits of the field, right? > @@ -162,6 +163,7 @@ struct mf

Re: [ovs-dev] [PATCH] datapath: Kernel flow metadata parsing should be less restrictive

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 3:11 PM, Ansis Atteka wrote: > The function flow_metadata_from_nlattrs() is very restrictive > about the ordering and type of metadata attributes that it receives. > This patch will change flow_metadata_from_nlattrs() behavior by > ignoring attributes that it does not unders

[ovs-dev] [#8024v2 5/5] odp-util: Use PRIu8 instead of PRId8 when printing ip_proto.

2011-11-08 Thread Justin Pettit
Suggested-by: Ben Pfaff --- lib/odp-util.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/odp-util.c b/lib/odp-util.c index 612cc5c..8f9fa27 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -369,7 +369,7 @@ format_odp_key_attr(const struct nlattr *a, struct ds

[ovs-dev] [#8024v2 4/5] Support matching and modifying IP TTL.

2011-11-08 Thread Justin Pettit
Add support matching the IPv4 TTL and IPv6 hop limit fields. This commit also adds support for modifying the IPv4 TTL. Modifying the IPv6 hop limit isn't currently supported, since we don't support modifying IPv6 headers. We will likely want to change the user-space interface, since basic matchi

[ovs-dev] [#8024v2 3/5] Support matching and modifying IP ECN bits.

2011-11-08 Thread Justin Pettit
Signed-off-by: Justin Pettit --- NEWS |2 + datapath/actions.c| 10 +-- datapath/datapath.c |4 --- datapath/flow.c | 13 +++-- include/openflow/nicira-ext.h |9 ++ lib/classifier.c | 15 ++

[ovs-dev] [#8024v2 2/5] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Justin Pettit
This will be useful later when we add support for matching the ECN bits within the TOS field. Signed-off-by: Justin Pettit --- datapath/datapath.c |6 +-- datapath/flow.c | 73 +- datapath/flow.h | 10 ++ lib/classifier.

[ovs-dev] [#8024v2 1/5] Support matching IPv6 flow label.

2011-11-08 Thread Justin Pettit
Signed-off-by: Justin Pettit --- NEWS |3 ++- datapath/flow.c |7 +-- datapath/flow.h |7 --- include/linux/openvswitch.h |1 + include/openflow/nicira-ext.h |9 + lib/classifier.c | 16 +

Re: [ovs-dev] [PATCH] datapath: Update kernel support to 3.2.

2011-11-08 Thread Pravin Shelar
Thanks, Pushed to master. On Tue, Nov 8, 2011 at 3:22 PM, Jesse Gross wrote: > On Tue, Nov 8, 2011 at 2:52 PM, Pravin B Shelar wrote: >> Signed-off-by: Pravin B Shelar >> >> Bug #7772 > > Thanks. > Acked-by: Jesse Gross > ___ dev mailing list dev@ope

Re: [ovs-dev] [PATCH] datapath: Update kernel support to 3.2.

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 2:52 PM, Pravin B Shelar wrote: > Signed-off-by: Pravin B Shelar > > Bug #7772 Thanks. Acked-by: Jesse Gross ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] datapath: Kernel flow metadata parsing should be less restrictive

2011-11-08 Thread Ansis Atteka
The function flow_metadata_from_nlattrs() is very restrictive about the ordering and type of metadata attributes that it receives. This patch will change flow_metadata_from_nlattrs() behavior by ignoring attributes that it does not understand and allowing them to be passed in arbitrary order. Issu

[ovs-dev] [PATCH] datapath: Update kernel support to 3.2.

2011-11-08 Thread Pravin B Shelar
Signed-off-by: Pravin B Shelar Bug #7772 --- datapath/brcompat.c |1 + datapath/datapath.c |4 ++-- datapath/linux/compat/include/linux/skbuff.h |7 +++ datapath/tunnel.c|2 +- 4 files changed, 11 i

Re: [ovs-dev] [#8024 7/7] Support matching and modifying IP TTL.

2011-11-08 Thread Justin Pettit
On Nov 7, 2011, at 12:59 PM, Ben Pfaff wrote: > Again, do we really need a new action just to set this field, since it > can be done with NXAST_REG_LOAD? As with ECN, I've switched to using NXAST_REG_LOAD. > Er, well I guess it can't be done with NXAST_REG_LOAD. Why not? Just an oversight. >

Re: [ovs-dev] [#8024 6/7] Support matching and modifying IP ECN bits.

2011-11-08 Thread Justin Pettit
On Nov 7, 2011, at 12:50 PM, Ben Pfaff wrote: > On Mon, Nov 07, 2011 at 10:33:09AM -0800, Justin Pettit wrote: >> Signed-off-by: Justin Pettit > > In nicira-ext.h, is there value in adding NXAST_SET_NW_ECN given that > it could be set with NXAST_REG_LOAD without adding a new action? Good point.

[ovs-dev] [PATCH] docs: Always build ovs-vswitchd.conf.db.5 in srcdir.

2011-11-08 Thread Ben Pfaff
Otherwise we build it in the build directory by default, which breaks the Debian package build (unless we're working from a "make dist" created tarball since that has ovs-vswitchd.conf.db.5 in the srcdir as part of the distribution). Reported-by: Ansis Atteka --- vswitchd/automake.mk |2 +-

Re: [ovs-dev] [#8024 5/7] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Ben Pfaff
On Tue, Nov 08, 2011 at 11:50:42AM -0800, Justin Pettit wrote: > On Nov 7, 2011, at 12:34 PM, Ben Pfaff wrote: > > > kernel > > -- > > > > Do you plan to use the top 6 bits of ip.frag for something later on? > > If not, I think we can drop all the bitwise manipulation that assumes > > that so

Re: [ovs-dev] [#8024 5/7] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Justin Pettit
I forgot to add that I'm going to resend out the series, since your suggestions had a large ripple effect. --Justin On Nov 8, 2011, at 11:50 AM, Justin Pettit wrote: > On Nov 7, 2011, at 12:34 PM, Ben Pfaff wrote: > >> kernel >> -- >> >> Do you plan to use the top 6 bits of ip.frag for s

Re: [ovs-dev] [#8024 5/7] Don't overload IP TOS with the frag matching bits.

2011-11-08 Thread Justin Pettit
On Nov 7, 2011, at 12:34 PM, Ben Pfaff wrote: > kernel > -- > > Do you plan to use the top 6 bits of ip.frag for something later on? > If not, I think we can drop all the bitwise manipulation that assumes > that something might be in those bits, get rid of OVS_FRAG_TYPE_MASK, > etc. My think

Re: [ovs-dev] [PATCH v2] datapath: Fix vport tx_packets count.

2011-11-08 Thread Pravin Shelar
Thanks, Pushed to master. On Tue, Nov 8, 2011 at 11:11 AM, Jesse Gross wrote: > On Tue, Nov 8, 2011 at 10:53 AM, Pravin B Shelar wrote: >> Signed-off-by: Pravin B Shelar >> --- >>  datapath/vport.c |   14 -- >>  1 files changed, 8 insertions(+), 6 deletions(-) > > Acked-by: Jesse Gr

Re: [ovs-dev] [PATCH v2] datapath: Fix vport tx_packets count.

2011-11-08 Thread Jesse Gross
On Tue, Nov 8, 2011 at 10:53 AM, Pravin B Shelar wrote: > Signed-off-by: Pravin B Shelar > --- >  datapath/vport.c |   14 -- >  1 files changed, 8 insertions(+), 6 deletions(-) Acked-by: Jesse Gross ___ dev mailing list dev@openvswitch.org

Re: [ovs-dev] [flow-compat 6/7] ofproto-dpif: Factor NetFlow active timeouts out of flow expiration.

2011-11-08 Thread Jesse Gross
On Mon, Nov 7, 2011 at 4:08 PM, Ben Pfaff wrote: > On Mon, Nov 07, 2011 at 03:54:40PM -0800, Jesse Gross wrote: >> On Mon, Nov 7, 2011 at 1:41 PM, Ben Pfaff wrote: >> > On Mon, Nov 07, 2011 at 11:18:04AM -0800, Jesse Gross wrote: >> >> On Mon, Nov 7, 2011 at 9:24 AM, Ben Pfaff wrote: >> >> > On

[ovs-dev] [PATCH v2] datapath: Fix vport tx_packets count.

2011-11-08 Thread Pravin B Shelar
Signed-off-by: Pravin B Shelar --- datapath/vport.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/datapath/vport.c b/datapath/vport.c index 6fe6042..a6b686c 100644 --- a/datapath/vport.c +++ b/datapath/vport.c @@ -459,16 +459,18 @@ void vport_receive(struct