[ovs-dev] [PATCH 2/2] ofproto-dpif: Make sure one-packet flows have zero duration (again).

2012-08-17 Thread Ben Pfaff
commit 6a0a5bbbc (ofproto-dpif: Make sure one-packet flows have zero duration.) was supposed to fix failures in the "ofproto-dpif - NetFlow flow expiration" test, but it didn't fix the whole problem. That commit eliminated one reason why a one-packet flow might be shown as having an nonzero durati

[ovs-dev] [PATCH 1/2] dpif: Add 'used' argument to dpif_flow_stats_extract().

2012-08-17 Thread Ben Pfaff
The following commit will need to use a value other than a literal time_msec() in one case. This commit is just preparation. Factoring the time_msec() call out of the loop in handle_flow_miss_without_facet() is a really minor optimization. It isn't the main point here. Signed-off-by: Ben Pfaff

Re: [ovs-dev] where is the ovs_packet_cmd handler?

2012-08-17 Thread Ben Pfaff
On Sat, Aug 18, 2012 at 11:10:50AM +0800, Baohua Yang wrote: > <1> All incoming network packet will be handler > by ovs_dp_process_received_packet(), right? > In ovs_dp_process_received_packet(), for the missing > packets, ovs_dp_upcall() will be called to send the OVS_PACKET_CMD_MISS > cmd, and f

Re: [ovs-dev] where is the ovs_packet_cmd handler?

2012-08-17 Thread Baohua Yang
Thanks Ben! I still have several question. Could you give further suggestion? <1> All incoming network packet will be handler by ovs_dp_process_received_packet(), right? In ovs_dp_process_received_packet(), for the missing packets, ovs_dp_upcall() will be called to send the OVS_PACKET_CMD_MISS cmd

Re: [ovs-dev] [deprecation 2/2] nicira-ext: Deprecate the autopath action.

2012-08-17 Thread Ben Pfaff
On Fri, Aug 17, 2012 at 07:18:41PM -0700, Ethan Jackson wrote: > diff --git a/lib/autopath.c b/lib/autopath.c > index 93fedd1..61c5026 100644 > --- a/lib/autopath.c > +++ b/lib/autopath.c > @@ -32,6 +32,8 @@ > > VLOG_DEFINE_THIS_MODULE(autopath); > > +static bool warned = false; > + > void >

Re: [ovs-dev] [deprecation 1/2] bond: Deprecate stable bonds.

2012-08-17 Thread Ben Pfaff
On Fri, Aug 17, 2012 at 07:18:40PM -0700, Ethan Jackson wrote: > diff --git a/lib/bond.c b/lib/bond.c > index 7178416..5e097b0 100644 > --- a/lib/bond.c > +++ b/lib/bond.c > @@ -255,6 +255,12 @@ bond_reconfigure(struct bond *bond, const struct > bond_settings *s) > if (bond->balance != s->bal

[ovs-dev] Deprecating Features.

2012-08-17 Thread Ethan Jackson
We are planning to deprecate and eventually remove the autopath action and stable bond mdoe. They will be officially deprecated at the end of next week (Friday the 24th) and removed in February 2013. If for some reason you think deprecating and removing these features is inappropriate, respond to

[ovs-dev] [deprecation 2/2] nicira-ext: Deprecate the autopath action.

2012-08-17 Thread Ethan Jackson
The autopath action is an obsolete attempt to replicate functionality contained in the bundle action. It is ugly and of questionable usefulness. This patch deprecates it and schedules its removal for February 2013. If there are concerns, please email dev@openvswitch.org. Signed-off-by: Ethan Ja

[ovs-dev] [deprecation 1/2] bond: Deprecate stable bonds.

2012-08-17 Thread Ethan Jackson
The stable bond mode is an obsolete attempt to replicate the functionality contained in the bundle action. They are ugly and of questionable usefulness. This patch deprecates them and schedules their removal for February 2013. If there are concerns, please email dev@openvswitch.org. Signed-off-

[ovs-dev] [deprecation 0/2] Deprecating features.

2012-08-17 Thread Ethan Jackson
I'm going to hold of merging these patches for a week to give people a chance to express concerns. Ethan Jackson (2): bond: Deprecate stable bonds. nicira-ext: Deprecate the autopath action. NEWS | 4 include/openflow/nicira-ext.h | 2 +- lib/autopath.c

Re: [ovs-dev] [PATCH] bond: Remove stable bond mode.

2012-08-17 Thread Ethan Jackson
I've decided to drop this in favor of the strategy mentioned below. On Thu, Aug 16, 2012 at 5:06 PM, Ben Pfaff wrote: > I proposed to Ethan via IM that we should do this kind of non-urgent > feature removal in a couple of steps: > > - Mention on ovs-dev that we're deprecating it. > >

Re: [ovs-dev] [PATCH 4/4] netdev-dummy: Add "patch port"-like feature.

2012-08-17 Thread Ethan Jackson
In the tests, I think it's a good idea to manually set the lacp-port-id and the lacp-aggregation-key in the database, because those are arbitrarily generated by the switch. Otherwise looks good, This is a huge win. Thanks for doing this. Ethan On Fri, Aug 10, 2012 at 3:25 PM, Ben Pfaff wrote:

Re: [ovs-dev] [test log scan 1/5] netlink-socket: Don't bother logging SO_RCVBUFFORCE failure as non-root.

2012-08-17 Thread Ethan Jackson
Looks good, thanks. Ethan On Fri, Aug 17, 2012 at 4:34 PM, Ben Pfaff wrote: > Some Open vSwitch utilities can do useful work when they are not run as > root. Without this commit, these utilities will log a warning on failure > to use the SO_RCVBUFFORCE socket option if they open any Netlink soc

[ovs-dev] [test log scan 5/5] ofproto-macros: Fail a test that logs a WARN or higher level message.

2012-08-17 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- tests/ofproto-macros.at |7 ++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/tests/ofproto-macros.at b/tests/ofproto-macros.at index 944fbac..b10ff50 100644 --- a/tests/ofproto-macros.at +++ b/tests/ofproto-macros.at @@ -64,6 +64,11 @@ m4_def

[ovs-dev] [test log scan 4/5] timeval: Reduce poll interval "warn"s to "info"s.

2012-08-17 Thread Ben Pfaff
These messages rarely report bugs any longer, but they are still useful occasionally for debugging, so this commit reduces their severity without deleting them. It might make sense to increase the threshold for printing these. Signed-off-by: Ben Pfaff --- lib/timeval.c | 10 +- 1 file

[ovs-dev] [test log scan 3/5] bridge: Drop warning about the default bridge Ethernet address.

2012-08-17 Thread Ben Pfaff
This information is also available via ovs-ofctl and through other means, and it's not really anything we need to warn about anyhow. Signed-off-by: Ben Pfaff --- vswitchd/bridge.c | 10 -- 1 files changed, 0 insertions(+), 10 deletions(-) diff --git a/vswitchd/bridge.c b/vswitchd/brid

[ovs-dev] [test log scan 2/5] tests: Set explicit bond mode in LACP test.

2012-08-17 Thread Ben Pfaff
This avoids a log warning: bridge|WARN|port bond: Using the default bond_mode active-backup. Note that in previous versions, the default bond_mode was balance-slb This warning is harmless, but I'm trying to add checks for "warn" and higher severity log messages to the tests, so it makes s

[ovs-dev] [test log scan 1/5] netlink-socket: Don't bother logging SO_RCVBUFFORCE failure as non-root.

2012-08-17 Thread Ben Pfaff
Some Open vSwitch utilities can do useful work when they are not run as root. Without this commit, these utilities will log a warning on failure to use the SO_RCVBUFFORCE socket option if they open any Netlink sockets. This will always happen, it does not report anything unexpected or fixable as n

Re: [ovs-dev] [PATCH] bonding: Update bonding documentation in INTERNALS.

2012-08-17 Thread Ben Pfaff
On Fri, Aug 17, 2012 at 03:55:27PM -0700, Ethan Jackson wrote: > Signed-off-by: Ethan Jackson Looks good. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH] bonding: Update bonding documentation in INTERNALS.

2012-08-17 Thread Ethan Jackson
Signed-off-by: Ethan Jackson --- vswitchd/INTERNALS | 22 -- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/vswitchd/INTERNALS b/vswitchd/INTERNALS index 7aa3c29..2b48c9b 100644 --- a/vswitchd/INTERNALS +++ b/vswitchd/INTERNALS @@ -27,12 +27,13 @@ one slave, th

[ovs-dev] [PATCH] netlink-socket: Don't bother logging SO_RCVBUFFORCE failure as non-root.

2012-08-17 Thread Ben Pfaff
Some Open vSwitch utilities can do useful work when they are not run as root. Without this commit, these utilities will log a warning on failure to use the SO_RCVBUFFORCE socket option if they open any Netlink sockets. This will always happen, it does not report anything unexpected or fixable as n

Re: [ovs-dev] [PATCH] ovs-ofctl: Fix memory leak in "check-vlan" test command.

2012-08-17 Thread Ben Pfaff
Thanks, applied to master. On Fri, Aug 17, 2012 at 02:46:33PM -0700, Mehak Mahajan wrote: > Looks good. > > thanx! > mehak > > On Fri, Aug 17, 2012 at 2:00 PM, Ben Pfaff wrote: > > > Found by valgrind. > > > > Signed-off-by: Ben Pfaff > > --- > > utilities/ovs-ofctl.c |1 + > > 1 files c

Re: [ovs-dev] [PATCH] ofp-print: Fix memory leak printing flow stats replies.

2012-08-17 Thread Ben Pfaff
Thanks for the review. I pushed this to master and soon to branch-1.8. On Fri, Aug 17, 2012 at 02:48:19PM -0700, Mehak Mahajan wrote: > Looks good. > > thanx! > mehak > > On Fri, Aug 17, 2012 at 1:59 PM, Ben Pfaff wrote: > > > Found by valgrind. > > > > Signed-off-by: Ben Pfaff > > --- > >

Re: [ovs-dev] [PATCH] ofp-print: Fix memory leak printing flow stats replies.

2012-08-17 Thread Mehak Mahajan
Looks good. thanx! mehak On Fri, Aug 17, 2012 at 1:59 PM, Ben Pfaff wrote: > Found by valgrind. > > Signed-off-by: Ben Pfaff > --- > lib/ofp-print.c |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/lib/ofp-print.c b/lib/ofp-print.c > index 3f5b6be..99e6456 100644

Re: [ovs-dev] [PATCH] ovs-ofctl: Fix memory leak in "check-vlan" test command.

2012-08-17 Thread Mehak Mahajan
Looks good. thanx! mehak On Fri, Aug 17, 2012 at 2:00 PM, Ben Pfaff wrote: > Found by valgrind. > > Signed-off-by: Ben Pfaff > --- > utilities/ovs-ofctl.c |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c > index dd5f4b

[ovs-dev] [PATCH] ofp-print: Fix memory leak printing flow stats replies.

2012-08-17 Thread Ben Pfaff
Found by valgrind. Signed-off-by: Ben Pfaff --- lib/ofp-print.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index 3f5b6be..99e6456 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -1044,6 +1044,7 @@ ofp_print_flow_stats_reply(st

[ovs-dev] [PATCH] ovs-ofctl: Fix memory leak in "check-vlan" test command.

2012-08-17 Thread Ben Pfaff
Found by valgrind. Signed-off-by: Ben Pfaff --- utilities/ovs-ofctl.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index dd5f4ba..622e32f 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -2615,6 +2615,7 @@

Re: [ovs-dev] [PATCH] Do not include zeroed metadata fields in NXM/OXM packet-in messages.

2012-08-17 Thread Igor Ganichev
Thanks guys! Waiting for the build. On Fri, Aug 17, 2012 at 1:24 PM, Ben Pfaff wrote: > Thanks for the reviews. I applied this to master. > > On Fri, Aug 17, 2012 at 01:19:04PM -0700, Ethan Jackson wrote: > > Looks good to me. I was never particularly comfortable with the masks > > in flow_met

Re: [ovs-dev] [PATCH] ofp-util: Drop unneeded null pointer tests.

2012-08-17 Thread Ben Pfaff
Thank you for the review. I applied this to master. On Fri, Aug 17, 2012 at 01:25:20PM -0700, Ethan Jackson wrote: > Looks good, thanks. > > Ethan > > On Fri, Aug 17, 2012 at 1:19 PM, Ben Pfaff wrote: > > The functions being called already do nothing if passed a null pointer. > > > > Signed-of

Re: [ovs-dev] [PATCH] ofp-util: Drop unneeded null pointer tests.

2012-08-17 Thread Ethan Jackson
Looks good, thanks. Ethan On Fri, Aug 17, 2012 at 1:19 PM, Ben Pfaff wrote: > The functions being called already do nothing if passed a null pointer. > > Signed-off-by: Ben Pfaff > --- > lib/ofp-util.c | 13 +++-- > 1 files changed, 3 insertions(+), 10 deletions(-) > > diff --git a/l

Re: [ovs-dev] [PATCH] Do not include zeroed metadata fields in NXM/OXM packet-in messages.

2012-08-17 Thread Ben Pfaff
Thanks for the reviews. I applied this to master. On Fri, Aug 17, 2012 at 01:19:04PM -0700, Ethan Jackson wrote: > Looks good to me. I was never particularly comfortable with the masks > in flow_metadata, this is much cleaner. Thanks. > > Ethan > > On Fri, Aug 17, 2012 at 1:55 AM, Joe Stringe

[ovs-dev] [PATCH] bond: Tag flows according to their hash bucket, not just their slave.

2012-08-17 Thread Ben Pfaff
The bonding code is supposed to tag flows two ways: - According to the chosen bond slave, to make it easy to invalidate all of the flows assigned to a given slave. - According to the hash value for a flow, to make it easy to invalidate all of the flows that hash into the same

[ovs-dev] [PATCH] ofp-util: Drop unneeded null pointer tests.

2012-08-17 Thread Ben Pfaff
The functions being called already do nothing if passed a null pointer. Signed-off-by: Ben Pfaff --- lib/ofp-util.c | 13 +++-- 1 files changed, 3 insertions(+), 10 deletions(-) diff --git a/lib/ofp-util.c b/lib/ofp-util.c index ad29174..210db3b 100644 --- a/lib/ofp-util.c +++ b/lib/o

Re: [ovs-dev] [PATCH] Do not include zeroed metadata fields in NXM/OXM packet-in messages.

2012-08-17 Thread Ethan Jackson
Looks good to me. I was never particularly comfortable with the masks in flow_metadata, this is much cleaner. Thanks. Ethan On Fri, Aug 17, 2012 at 1:55 AM, Joe Stringer wrote: > Looks good to me. > ___ > dev mailing list > dev@openvswitch.org > http

Re: [ovs-dev] [PATCH v3] ofp-actions: Implement writing to metadata field

2012-08-17 Thread Ben Pfaff
On Fri, Aug 17, 2012 at 08:42:53PM +1200, Joe Stringer wrote: > On 16 August 2012 06:43, Ben Pfaff wrote: > > On Wed, Aug 15, 2012 at 12:28:47AM +1200, Joe Stringer wrote: > >> In OpenFlow 1.1, we add support for OFPIT_WRITE_METADATA. This allows us to > >> write to the metadata field. Internally

Re: [ovs-dev] [PATCH] man-pages: Add missing entry for matching metadata

2012-08-17 Thread Ben Pfaff
On Fri, Aug 17, 2012 at 08:06:29PM +1200, Joe Stringer wrote: > Signed-off-by: Joe Stringer Applied to master, thanks a lot! ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] where is the ovs_packet_cmd handler?

2012-08-17 Thread Ben Pfaff
On Fri, Aug 17, 2012 at 04:50:57PM +0800, Baohua Yang wrote: > In the openvswitch code file include\linux\openvswitch.h, there's 4 > defined cmds, as > enum ovs_packet_cmd{ > OVS_PACKET_CMD_UNSPEC, > OVS_PACKET_CMD_MISS, > OVS_PACKET_CMD_ACTION, > OVS_PACKET_CMD_EXECUTE > } > >

Re: [ovs-dev] [PATCH] Do not include zeroed metadata fields in NXM/OXM packet-in messages.

2012-08-17 Thread Joe Stringer
Looks good to me. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] where is the ovs_packet_cmd handler?

2012-08-17 Thread Baohua Yang
Hi,all In the openvswitch code file include\linux\openvswitch.h, there's 4 defined cmds, as enum ovs_packet_cmd{ OVS_PACKET_CMD_UNSPEC, OVS_PACKET_CMD_MISS, OVS_PACKET_CMD_ACTION, OVS_PACKET_CMD_EXECUTE } However, in datapath\datapath.c, there is only the handler for the OVS_PA

Re: [ovs-dev] [PATCH v3] ofp-actions: Implement writing to metadata field

2012-08-17 Thread Joe Stringer
On 16 August 2012 06:43, Ben Pfaff wrote: > On Wed, Aug 15, 2012 at 12:28:47AM +1200, Joe Stringer wrote: >> In OpenFlow 1.1, we add support for OFPIT_WRITE_METADATA. This allows us to >> write to the metadata field. Internally it is represented using >> ofpact_metadata. >> >> We introduce NXAST_

[ovs-dev] [PATCH] man-pages: Add missing entry for matching metadata

2012-08-17 Thread Joe Stringer
Signed-off-by: Joe Stringer --- utilities/ovs-ofctl.8.in |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/utilities/ovs-ofctl.8.in b/utilities/ovs-ofctl.8.in index 705036f..386f7c8 100644 --- a/utilities/ovs-ofctl.8.in +++ b/utilities/ovs-ofctl.8.in @@ -614,6 +614,1