Re: [ovs-dev] [PATCH] stp: Log topology change events.

2012-01-27 Thread Ethan Jackson
> I think it would be more better for test-stp.c to just call > vlog_set_pattern() itself, rather than each use of it including it on > the command line.  You could also have it disable logging to syslog > with vlog_set_levels(), since that just makes the unit tests spam > syslog.  If you make thos

[ovs-dev] [PATCH] cfm: Allow manual override of CFM fault status.

2012-01-27 Thread Ethan Jackson
This can be useful when testing. Suggested-by: Reid Price Signed-off-by: Ethan Jackson --- lib/cfm.c | 47 +++- vswitchd/ovs-vswitchd.8.in |4 +++ 2 files changed, 50 insertions(+), 1 deletions(-) diff --git a/lib/cfm.c b/lib/cfm.c

Re: [ovs-dev] [PATCH] bond: Allow users to disable rebalancing.

2012-01-27 Thread Ethan Jackson
Here's an incremental. --- NEWS |2 ++ vswitchd/vswitch.xml |6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index d7332f8..2565b78 100644 --- a/NEWS +++ b/NEWS @@ -6,6 +6,8 @@ post-v1.5.0 - The default bond_mode changed from S

Re: [ovs-dev] [PATCH] bond: Allow users to disable rebalancing.

2012-01-27 Thread Ethan Jackson
On Thu, Jan 26, 2012 at 12:35, Ben Pfaff wrote: > On Wed, Jan 25, 2012 at 06:12:25PM -0800, Ethan Jackson wrote: >> Bond rebalances come with a risk of packet reordering which some >> users may find unacceptable. >> >> Requested-by: Ben Basler >> Signed-off-by: Ethan Jackson > > Add a NEWS item?

[ovs-dev] [port-ranges 3/3] Add support for bitwise matching on TCP and UDP ports.

2012-01-27 Thread Ben Pfaff
Bug #8827. Signed-off-by: Ben Pfaff --- NEWS |3 ++ include/openflow/nicira-ext.h | 10 - lib/classifier.c | 77 +++ lib/classifier.h |6 +++- lib/flow.c| 44 ++

[ovs-dev] [port-ranges 2/3] nx-match: Factor redundant code out of nx_put_match().

2012-01-27 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/nx-match.c | 175 +--- 1 files changed, 66 insertions(+), 109 deletions(-) diff --git a/lib/nx-match.c b/lib/nx-match.c index 63e5e5b..f42bb9a 100644 --- a/lib/nx-match.c +++ b/lib/nx-match.c @@ -407,6 +407,55

[ovs-dev] [port-ranges 0/3] Support bitwise matching on TCP and UDP ports

2012-01-27 Thread Ben Pfaff
These patches add support for bitwise matching on TCP and UDP ports, which is a useful building block that controllers can use to match on TCP and UDP port ranges. Ben Pfaff (3): flow: Add a couple of missing build assertions on FLOW_WC_SEQ. nx-match: Factor redundant code out of nx_put_match(

[ovs-dev] [port-ranges 1/3] flow: Add a couple of missing build assertions on FLOW_WC_SEQ.

2012-01-27 Thread Ben Pfaff
Every piece of code that may need to change whenever struct flow or struct flow_wildcards changes, but might easily get overlooked, should have a build assertion on the value of FLOW_WC_SEQ, but these functions did not. Signed-off-by: Ben Pfaff --- lib/flow.c |6 ++ 1 files changed, 6 in

Re: [ovs-dev] [PATCH v2] vlog: Change the default timestamp structure.

2012-01-27 Thread Ben Pfaff
On Fri, Jan 27, 2012 at 03:55:17PM -0800, Gurucharan Shetty wrote: > Change the default timestamp for console and file logs to > UTC in a format that satisfies timestamp requirements in RFC 5424. > > Also, add the ability for ovs-appctl to log timestamps in UTC. > > Bug #9052. > > Signed-off-by:

[ovs-dev] [PATCH v2] vlog: Change the default timestamp structure.

2012-01-27 Thread Gurucharan Shetty
Change the default timestamp for console and file logs to UTC in a format that satisfies timestamp requirements in RFC 5424. Also, add the ability for ovs-appctl to log timestamps in UTC. Bug #9052. Signed-off-by: Gurucharan Shetty --- NEWS |3 +++ lib/dynamic-string.c

Re: [ovs-dev] [PATCH 2/2] vlog: Change the default timestamp structure.

2012-01-27 Thread Ethan Jackson
> Minor variants in comment style, like whether the /* and */ are on > lines by themselves, just don't bother me much, which is why > CodingStyle says, "You may put the /* and */ on the same line as > comment text if you prefer."  I normally write them on the same line, > so that's probably why a l

Re: [ovs-dev] [PATCH 2/2] vlog: Change the default timestamp structure.

2012-01-27 Thread Ben Pfaff
On Fri, Jan 27, 2012 at 02:15:18PM -0800, Ethan Jackson wrote: > However, the CodingStyle document says to write comments the way that > you've done in this patch. Ben, is there a particular reason for the > way the CodingStyle document says to write block comments? If not, > I'd be inclined to c

Re: [ovs-dev] [PATCH 2/2] vlog: Change the default timestamp structure.

2012-01-27 Thread Ethan Jackson
> +/* > + * Writes the time 'tm' to 'string' based on 'template'. A Null 'tm' > + * writes the current utc time or localtime to 'string' based on 'utc' > + */ Two minor nits. First, this comment requieres a period at the end of the second sentence. Second. In most of the code we don't do a newl

Re: [ovs-dev] [PATCH] table: Avoid segmentation fault when printing an empty cell in JSON format.

2012-01-27 Thread Ethan Jackson
Looks good. Ethan On Fri, Jan 27, 2012 at 12:50, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- >  lib/table.c |    4 +++- >  1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/lib/table.c b/lib/table.c > index ff11e78..537fae9 100644 > --- a/lib/table.c > +++ b/lib/table.c >

[ovs-dev] [PATCH] table: Avoid segmentation fault when printing an empty cell in JSON format.

2012-01-27 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/table.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/lib/table.c b/lib/table.c index ff11e78..537fae9 100644 --- a/lib/table.c +++ b/lib/table.c @@ -480,8 +480,10 @@ table_print_json__(const struct table *table, const struct table_s

[ovs-dev] [PATCH] daemon: New function daemon_save_fd() to preserve fds across detach.

2012-01-27 Thread Ben Pfaff
This eliminates a kluge that was duplicated in three different daemons. Signed-off-by: Ben Pfaff --- lib/daemon.c | 36 ++-- lib/daemon.h |3 ++- ovsdb/ovsdb-client.c |8 ++-- tests/test-netflow.c | 11 ++- utilities/ovs

[ovs-dev] [PATCH 2/2] ovsdb-client: Add optional timestamps to "monitor" command output.

2012-01-27 Thread Ben Pfaff
Suggestion #9347. Suggested-by: Alan Shieh Signed-off-by: Ben Pfaff --- NEWS|3 +++ lib/table.c | 43 ++- lib/table.h |4 +++- ovsdb/ovsdb-client.1.in |7 +++ ovsdb/ovsdb-client.c| 13

[ovs-dev] [PATCH 1/2] ovsdb-client: Improve manpage.

2012-01-27 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- lib/table.man |2 +- ovsdb/ovsdb-client.1.in |4 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/lib/table.man b/lib/table.man index 70ef778..a8f1094 100644 --- a/lib/table.man +++ b/lib/table.man @@ -35,7 +35,7 @@ as text strings

Re: [ovs-dev] [PATCH 2/2] vlog: Change the default timestamp structure.

2012-01-27 Thread Ben Pfaff
On Fri, Jan 27, 2012 at 11:39:15AM -0800, Gurucharan Shetty wrote: > Change the default timestamp for console and file logs to > UTC in a format that satisfies timestamp requirements in RFC 5424. > > Also, add the ability for ovs-appctl to log timestamps in UTC. > > Bug #9052. > > Signed-off-by:

Re: [ovs-dev] [PATCH 1/2] ovs-appctl: Document the facility "file" option.

2012-01-27 Thread Ben Pfaff
On Fri, Jan 27, 2012 at 11:39:14AM -0800, Gurucharan Shetty wrote: > The ovs-appctl man page has missing information about the > facility - "file". This patch adds that information. > > Signed-off-by: Gurucharan Shetty Good catch. I wonder how we missed documenting that? Thanks, Ben.

[ovs-dev] [PATCH 2/2] vlog: Change the default timestamp structure.

2012-01-27 Thread Gurucharan Shetty
Change the default timestamp for console and file logs to UTC in a format that satisfies timestamp requirements in RFC 5424. Also, add the ability for ovs-appctl to log timestamps in UTC. Bug #9052. Signed-off-by: Gurucharan Shetty --- lib/dynamic-string.c | 13 +++-- lib/dynami

[ovs-dev] [PATCH 1/2] ovs-appctl: Document the facility "file" option.

2012-01-27 Thread Gurucharan Shetty
The ovs-appctl man page has missing information about the facility - "file". This patch adds that information. Signed-off-by: Gurucharan Shetty --- utilities/ovs-appctl.8.in | 17 + 1 files changed, 9 insertions(+), 8 deletions(-) diff --git a/utilities/ovs-appctl.8.in b/utili

Re: [ovs-dev] [PATCH] ovs-ofctl: Fix "snoop" command.

2012-01-27 Thread Ben Pfaff
I updated the documentation. Thanks for pointing out that it was needed. I remember reviewing that and didn't notice the problem at the time. A unit test is a good idea. Thanks, Ben. On Thu, Jan 26, 2012 at 05:21:17PM -0800, Ethan Jackson wrote: > Thanks for fixing this Ben. > > I think some