[ovs-dev] [PATCH 4/7] man: fix pic issue at the source

2011-12-08 Thread Chris Wright
The commit 0993b66 (man: pic failed to run during manpage-check) worked around the manpage-check warning generated by groff. Using "-T ascii" rather "-T utf8" was enough to silence the warning because the man page has this condition in it: .if !'\*[.T]'ascii' However, rpmlint generates the sam

[ovs-dev] [PATCH 7/7] bugtool: move plugins data from /etc/openvswitch to /usr/share/openvswitch

2011-12-08 Thread Chris Wright
This is in repsonse to the following rpmlint warnings: W: non-conffile-in-etc /etc/openvswitch/bugtool-plugins/system-configuration/openvswitch.xml W: non-conffile-in-etc /etc/openvswitch/bugtool-plugins/system-logs/openvswitch.xml W: non-conffile-in-etc /etc/openvswitch/bugtool-plugins/syst

[ovs-dev] [PATCH 6/7] utilites: rename ovs-lib.sh to ovs-lib

2011-12-08 Thread Chris Wright
Rename this helper script to simply ovs-lib, since it's primarily a library of helper functions. Signed-off-by: Chris Wright --- debian/openvswitch-switch.init |2 +- debian/openvswitch-switch.install |2 +- rhel/etc_init.d_openvswitch |2 +- rhel/openvswit

[ovs-dev] [PATCH 5/7] utilities: install ovs-lib.sh as data not a script

2011-12-08 Thread Chris Wright
Currently, ovs-lib.sh is installed as an executable. It's meant to be sourced by external scripts, so install as data. Fixes rpmlint error: E: script-without-shebang /usr/share/openvswitch/scripts/ovs-lib.sh Could drop the .sh suffix in another commit. Signed-off-by: Chris Wright --- Makefi

[ovs-dev] [PATCH 3/7] rhel: openvswitch.spec.in: fix perms on logrotate and sysconfig.template

2011-12-08 Thread Chris Wright
Fixes rpmlint warning: W: spurious-executable-perm /etc/logrotate.d/openvswitch W: non-conffile-in-etc /etc/logrotate.d/openvswitch E: script-without-shebang /usr/share/openvswitch/scripts/sysconfig.template Define rhel_cp() shell func and include file mode on install. Signed-off-by: Chris Wr

[ovs-dev] [PATCH 1/7] Update FSF address in LGPL notices in bugtool plugins.

2011-12-08 Thread Chris Wright
This quiets the rpmlint errors: E: incorrect-fsf-address /etc/openvswitch/bugtool-plugins/system-configuration/openvswitch.xml E: incorrect-fsf-address /etc/openvswitch/bugtool-plugins/system-logs/openvswitch.xml E: incorrect-fsf-address /etc/openvswitch/bugtool-plugins/system-configuration.x

[ovs-dev] [PATCH 0/7] Cleanups for Fedora RPM packaging

2011-12-08 Thread Chris Wright
Here's a short series of small cleanups that have come from packaging openvswitch for Fedora. Nothing terribly exciting here, the last two may not be to everyone's taste. I'm happy to rework if needed. Chris Wright (7): Update FSF address in LGPL notices in bugtool plugins. rhel: openvswitch

[ovs-dev] [PATCH 2/7] rhel: openvswitch.spec.in installs README as executable

2011-12-08 Thread Chris Wright
Fix this rpmlint warning: W: spurious-executable-perm /usr/share/doc/openvswitch-1.4.0/README.RHEL by specifying mode on install. Signed-off-by: Chris Wright --- rhel/openvswitch.spec.in |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/rhel/openvswitch.spec.in b/rhel/

[ovs-dev] (no subject)

2011-12-08 Thread Henry James
CONTACT FOR A LOAN WITH AMOUNT NEEDED AND DURATION___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2] datapath: Implement flow table re-hashing.

2011-12-08 Thread Pravin Shelar
There is a typo in function workqueue_barrier() where it inserts wrong 'work' to workq. Thanks, Pravin. On Thu, Dec 8, 2011 at 10:48 AM, Pravin B Shelar wrote: > Fixed according to comments from Jesse. > v1-v2: >        - uses genl_mutex to protect flow-hash-table. >        - adds REHASH cmd to

[ovs-dev] [flow-stats 14/14] netflow: Add basic unit tests.

2011-12-08 Thread Ben Pfaff
These tests would have caught the flow statistics bug introduced by commit 501f8d1fd75 (ofproto-dpif: Batch interacting with the dpif on flow miss operations.) --- tests/automake.mk |4 + tests/ofproto-dpif.at | 128 +++ tests/test-netflow.c | 323 +++

[ovs-dev] [flow-stats 13/14] netflow: Move packet definitions to header file.

2011-12-08 Thread Ben Pfaff
An upcoming commit will introduce code outside of ofproto/netflow.c that works with NetFlow packets, so we need the protocol definitions in a common location. --- lib/automake.mk |1 + lib/netflow.h | 80 + ofproto/netflow.c | 57 +-

[ovs-dev] [flow-stats 12/14] tests: Add expected output parameter to OVS_VSWITCHD_START.

2011-12-08 Thread Ben Pfaff
It's convenient to pass commands for ovs-vsctl directly to OVS_VSWITCHD_START, but until now those commands could have no output because that would cause a test failure. This commit adds an optional argument to supply ovs-vsctl expected output, and adjusts some test cases to use it instead of call

[ovs-dev] [flow-stats 11/14] tests: Update ovs-vswitchd log messages to ignore.

2011-12-08 Thread Ben Pfaff
Commit 579a77e024 (tests: Allow unit tests to run as root.) means that ovs-vswitchd doesn't output either of these log messages anymore when the unit tests run, so there's no need to ignore them anymore. --- tests/ofproto-macros.at |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff

[ovs-dev] [flow-stats 10/14] flow: Make flow_compose() fake packets slightly more realistic.

2011-12-08 Thread Ben Pfaff
This makes flow_extract() happier with TCP packets that this function produces. --- lib/flow.c|3 +++ lib/packets.h |1 + 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/lib/flow.c b/lib/flow.c index a491aff..a352f07 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -1020,6 +1

[ovs-dev] [flow-stats 09/14] timeval: Add ability to fast-forward time, for unit testing.

2011-12-08 Thread Ben Pfaff
--- lib/dummy.h |3 ++- lib/timeval.c | 54 ++ 2 files changed, 56 insertions(+), 1 deletions(-) diff --git a/lib/dummy.h b/lib/dummy.h index fe15087..efc1696 100644 --- a/lib/dummy.h +++ b/lib/dummy.h @@ -1,5 +1,5 @@ /* - * Copyright (

[ovs-dev] [flow-stats 08/14] poll-loop: Track the poll timeout as an absolute, not a relative time.

2011-12-08 Thread Ben Pfaff
This is a necessary prerequisite for allowing time to be "fast forwarded" in unit tests, to keep tests that depend on the passage of time from running in real time. Without this change, a code sequence like this: poll_timer_wait(1000); ...fast forward time 5 seconds... pol

[ovs-dev] [flow-stats 07/14] netdev-dummy: Allow injecting traffic.

2011-12-08 Thread Ben Pfaff
This paves the way to allow unit tests to test the whole switch on an end-to-end basis. --- lib/dummy.c|3 +- lib/netdev-dummy.c | 161 2 files changed, 152 insertions(+), 12 deletions(-) diff --git a/lib/dummy.c b/lib/dummy.c inde

[ovs-dev] [flow-stats 06/14] packets: New function eth_from_hex().

2011-12-08 Thread Ben Pfaff
An upcoming commit will add another user. --- lib/packets.c | 25 + lib/packets.h |2 ++ ofproto/ofproto-dpif.c | 12 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/lib/packets.c b/lib/packets.c index 46a44bd..b9f37bb

[ovs-dev] [flow-stats 05/14] unixctl: Implement quoting.

2011-12-08 Thread Ben Pfaff
The protocol used by ovs-appctl has a long-standing bug that there is no way to distinguish "ovs-appctl a b c" from "ovs-appctl 'a b c'". This isn't a big deal because none of the current commands really want to accept arguments that include spaces, but it's kind of a silly limitation. At the same

[ovs-dev] [flow-stats 04/14] socket-util: Don't try to listen to a UDP socket.

2011-12-08 Thread Ben Pfaff
The "listen" system call doesn't work and isn't necessary for UDP, but inet_open_passive() would still try to call it (and fail). This doesn't fix a real bug because the two existing callers both use inet_open_passive() to listen for TCP connections. --- lib/socket-util.c |2 +- 1 files chang

[ovs-dev] [flow-stats 03/14] netdev-linux: Report error for truncated packets on receive.

2011-12-08 Thread Ben Pfaff
Found by inspection. --- lib/netdev-linux.c|7 +-- lib/netdev-provider.h |3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 9ff286e..27a123c 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -802,8 +802,11

[ovs-dev] [flow-stats 02/14] netdev-linux: Translate errno value to name in log message.

2011-12-08 Thread Ben Pfaff
--- lib/netdev-linux.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index a100898..9ff286e 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -1244,8 +1244,8 @@ get_stats_via_vport(const struct netdev *netdev_,

[ovs-dev] [flow-stats 01/14] ofproto-dpif: Include datapath flow misses in flow statistics.

2011-12-08 Thread Ben Pfaff
Commit 501f8d1fd75 (ofproto-dpif: Batch interacting with the dpif on flow miss operations.) caused packets handled manually in userspace not to be counted in flow statistics. This patch fixes the problem. --- ofproto/ofproto-dpif.c |8 1 files changed, 8 insertions(+), 0 deletions(-)

[ovs-dev] [flow-stats 00/14] flow stats fixes plus NetFlow unit tests

2011-12-08 Thread Ben Pfaff
The first patch in this series fixes flow statistics that were broken a while back. The rest culminates in adding basic unit tests for NetFlow, which is the context in which the incorrect flow statistics was first noticed. Ben Pfaff (14): ofproto-dpif: Include datapath flow misses in flow stati

Re: [ovs-dev] [PATCH 1/3] ofproto: Device stats should include packets generated by userspace/controller

2011-12-08 Thread Pravin Shelar
Thanks, I pushed this series to master. On Thu, Dec 8, 2011 at 1:18 PM, Ben Pfaff wrote: > Looks good, thanks. > > On Thu, Dec 08, 2011 at 01:17:56PM -0800, Pravin B Shelar wrote: >> Here's incremental patch. >> --- >>  ofproto/ofproto-dpif.c |    1 + >>  1 files changed, 1 insertions(+), 0 dele

[ovs-dev] [PATCH] datapath: Alphabetize include/net/ipv6.h compat header.

2011-12-08 Thread Jesse Gross
Signed-off-by: Jesse Gross --- I applied this patch directly. --- datapath/linux/Modules.mk |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/datapath/linux/Modules.mk b/datapath/linux/Modules.mk index fdd952e..f6cb88e 100644 --- a/datapath/linux/Modules.mk +++ b/datapath/

Re: [ovs-dev] [PATCH] ofproto-dpif-sflow: avoid to specify agent device when configuring sFlow

2011-12-08 Thread Neil Mckee
On Dec 6, 2011, at 2:18 PM, Luca Giraudo wrote: > Hi Neil, > replies in-line. > > On Tue, Dec 6, 2011 at 1:43 PM, Neil Mckee wrote: > Hi Luca, > > Just checking does this mean that the sFlow-agent-address might change > just because the first collector in the list changed? Or because th

Re: [ovs-dev] [PATCH 1/3] ofproto: Device stats should include packets generated by userspace/controller

2011-12-08 Thread Ben Pfaff
Looks good, thanks. On Thu, Dec 08, 2011 at 01:17:56PM -0800, Pravin B Shelar wrote: > Here's incremental patch. > --- > ofproto/ofproto-dpif.c |1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > > diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c > index 14cdeee..1b654fd 1

[ovs-dev] [PATCH 1/3] ofproto: Device stats should include packets generated by userspace/controller

2011-12-08 Thread Pravin B Shelar
Here's incremental patch. --- ofproto/ofproto-dpif.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 14cdeee..1b654fd 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -670,6 +670,7 @@ construct(struct

Re: [ovs-dev] [PATCH v2 2/2] sflow: Use ofproto_port_get_stats().

2011-12-08 Thread Ben Pfaff
On Thu, Dec 08, 2011 at 12:53:45PM -0800, Pravin B Shelar wrote: > Fixed according to comments from Ben. > v1-v2: > - removed netdev and odp_port from struct dpif_sflow_port. Thank you, this looks good to me. ___ dev mailing list dev@openvswitch.

Re: [ovs-dev] [PATCH v2 1/2] ofproto: Device stats should include packets generated by userspace/controller

2011-12-08 Thread Ben Pfaff
On Thu, Dec 08, 2011 at 12:53:33PM -0800, Pravin B Shelar wrote: > Fixed according to comments from Ben. > v1-v2: > - updated comments > - added UINT64_MAX check before updating stats > - removed memset from ofproto_port_get_stats() Looking again, I think you also need to z

[ovs-dev] [PATCH v2 2/2] sflow: Use ofproto_port_get_stats().

2011-12-08 Thread Pravin B Shelar
Fixed according to comments from Ben. v1-v2: - removed netdev and odp_port from struct dpif_sflow_port. --8<--cut here-->8-- --- ofproto/ofproto-dpif-sflow.c | 46 +++-- ofproto/ofproto-dpif-sflow.h |

[ovs-dev] [PATCH v2 1/2] ofproto: Device stats should include packets generated by userspace/controller

2011-12-08 Thread Pravin B Shelar
Fixed according to comments from Ben. v1-v2: - updated comments - added UINT64_MAX check before updating stats - removed memset from ofproto_port_get_stats() --8<--cut here-->8-- Following patch account packets consumed and c

Re: [ovs-dev] [PATCH 1/2] ofproto: Device stats should include packets generated by userspace/controller

2011-12-08 Thread Pravin Shelar
On Thu, Dec 8, 2011 at 11:34 AM, Ben Pfaff wrote: > On Thu, Dec 08, 2011 at 11:30:27AM -0800, Pravin Shelar wrote: >> On Fri, Dec 2, 2011 at 2:38 PM, Ben Pfaff wrote: >> > On Fri, Dec 02, 2011 at 02:17:04PM -0800, Pravin B Shelar wrote: >> >> Following patch account packets consumed and composed

Re: [ovs-dev] [PATCH 1/2] ofproto: Device stats should include packets generated by userspace/controller

2011-12-08 Thread Ben Pfaff
On Thu, Dec 08, 2011 at 11:30:27AM -0800, Pravin Shelar wrote: > On Fri, Dec 2, 2011 at 2:38 PM, Ben Pfaff wrote: > > On Fri, Dec 02, 2011 at 02:17:04PM -0800, Pravin B Shelar wrote: > >> Following patch account packets consumed and composed in userspace > >> as received on and transmitted from lo

Re: [ovs-dev] [PATCH 1/2] ofproto: Device stats should include packets generated by userspace/controller

2011-12-08 Thread Pravin Shelar
On Fri, Dec 2, 2011 at 2:38 PM, Ben Pfaff wrote: > On Fri, Dec 02, 2011 at 02:17:04PM -0800, Pravin B Shelar wrote: >> Following patch account packets consumed and composed in userspace >> as received on and transmitted from local port. > > It looks good to me, I only have two small comments. > >

[ovs-dev] [PATCH v2] datapath: Implement flow table re-hashing.

2011-12-08 Thread Pravin B Shelar
Fixed according to comments from Jesse. v1-v2: - uses genl_mutex to protect flow-hash-table. - adds REHASH cmd to dp_datapath_genl_ops so that we can rehash flow-table holding genl_mutex. --8<--cut here-->8-- Following patc