Re: [ovs-dev] [branch-1.1 0/3] backported bug fixes for 1.1

2011-04-11 Thread Justin Pettit
Thanks for taking care of this, Ben. Do you not think the other two patches from the "uswitch" series are important enough to be included in 1.1.1? f23347e: netdev-linux: Fix netdev_send() to tap device. b98162: netdev-linux: Fix blocking while sending packets. Otherwise, the se

Re: [ovs-dev] [PATCH 1/2] xenserver: Warn when installing OVS on a bridged system.

2011-04-11 Thread Justin Pettit
On Apr 11, 2011, at 6:33 PM, Ethan Jackson wrote: > --- > xenserver/openvswitch-xen.spec |8 > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec > index 7a2e176..c445f3d 100644 > --- a/xenserver/openvswitc

Re: [ovs-dev] [PATCH 2/2] xenserver: Only call xapi-update in vswitch mode.

2011-04-11 Thread Andrew Evans
The patch looks good to me. I think a better title for the commit would be "Only update vswitch config from XAPI if vswitch is enabled." On 4/11/11 6:33 PM, Ethan Jackson wrote: > --- > xenserver/etc_init.d_openvswitch-xapi-update | 17 + > 1 files changed, 17 insertions(+), 0 d

Re: [ovs-dev] [PATCH 1/2] xenserver: Warn when installing OVS on a bridged system.

2011-04-11 Thread Andrew Evans
The patch looks fine to me. I'd prefer "upgrading" to "installing" in the commit title, since this only happens on upgrade. On 4/11/11 6:33 PM, Ethan Jackson wrote: > --- > xenserver/openvswitch-xen.spec |8 > 1 files changed, 8 insertions(+), 0 deletions(-) > > diff --git a/xenserv

[ovs-dev] [PATCH 2/2] tests: Link test-multipath with libm.

2011-04-11 Thread Andrew Evans
This seems to be required by glibc 2.11.2. --- tests/automake.mk |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/automake.mk b/tests/automake.mk index 7872d21..e02a951 100644 --- a/tests/automake.mk +++ b/tests/automake.mk @@ -226,7 +226,7 @@ tests_test_lockfile_LDA

[ovs-dev] [PATCH 1/2] pcap: Silence warnings about fwrite(3) return value being ignored.

2011-04-11 Thread Andrew Evans
--- lib/pcap.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/pcap.c b/lib/pcap.c index afd41fa..e860bc1 100644 --- a/lib/pcap.c +++ b/lib/pcap.c @@ -100,7 +100,7 @@ pcap_write_header(FILE *file) ph.sigfigs = 0; ph.snaplen = 1518; ph.network = 1;

[ovs-dev] [PATCH 0/2] Fix compilation problems on Gentoo.

2011-04-11 Thread Andrew Evans
These patches are required to make Open vSwitch compile cleanly on Gentoo systems. Andrew Evans (2): pcap: Silence warnings about fwrite(3) return value being ignored. tests: Link test-multipath with libm. lib/pcap.c|6 +++--- tests/automake.mk |2 +- 2 files changed, 4 inser

Re: [ovs-dev] [PATCH 2/2] xenserver: Only call xapi-update in vswitch mode.

2011-04-11 Thread Ethan Jackson
I haven't tested this series, but I will be sure to before merging. Ethan On Mon, Apr 11, 2011 at 6:33 PM, Ethan Jackson wrote: > --- >  xenserver/etc_init.d_openvswitch-xapi-update |   17 + >  1 files changed, 17 insertions(+), 0 deletions(-) > > diff --git a/xenserver/etc_init.

[ovs-dev] [PATCH 1/2] xenserver: Warn when installing OVS on a bridged system.

2011-04-11 Thread Ethan Jackson
--- xenserver/openvswitch-xen.spec |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index 7a2e176..c445f3d 100644 --- a/xenserver/openvswitch-xen.spec +++ b/xenserver/openvswitch-xen.spec @@ -235,6 +235,

[ovs-dev] [PATCH 2/2] xenserver: Only call xapi-update in vswitch mode.

2011-04-11 Thread Ethan Jackson
--- xenserver/etc_init.d_openvswitch-xapi-update | 17 + 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/xenserver/etc_init.d_openvswitch-xapi-update b/xenserver/etc_init.d_openvswitch-xapi-update index 7b2efd1..14d2cc9 100755 --- a/xenserver/etc_init.d_openvswit

[ovs-dev] [PATCH] tests: Unit test autopath via ovs-ofctl.

2011-04-11 Thread Ethan Jackson
This patch adds test designed to verify the correctness of the parsing function introduced with the autopath action. --- tests/automake.mk |1 + tests/autopath.at | 35 +++ tests/testsuite.at |1 + 3 files changed, 37 insertions(+), 0 deletions(-) creat

[ovs-dev] [minor fixes 0/6] a set of minor bug fixes

2011-04-11 Thread Ben Pfaff
These fix a number of small, miscellaneous bugs that I noticed while working on other issues. Ben Pfaff (6): ofproto: Avoid memory leak in classifier on destruction. bridge: Initialize mirrors' uuid member. daemon: Reduce log level of "pid file is stale" message. bridge: Reintroduce log me

[ovs-dev] [minor fixes 1/6] ofproto: Avoid memory leak in classifier on destruction.

2011-04-11 Thread Ben Pfaff
ofproto_flush_flows() flushes the flow table but then it reintroduces flows required by fail-open or in-band. These are then leaked when the classifier is destroyed a little later. This fixes the problem by not reintroducing these flows when ofproto is being destroyed. --- ofproto/ofproto.c |

[ovs-dev] [minor fixes 6/6] vlog: Fix VLOG and VLOG_RL macros' treatment of LEVEL argument.

2011-04-11 Thread Ben Pfaff
These macros expanded the LEVEL argument without protecting it with parentheses, which meant that an argument like 'cond ? VLL_DBG : VLL_WARN' did not have the desired effect (and caused a GCC warning). This commit fixes the problem and avoids expanding LEVEL more than once, too. --- lib/vlog.h |

[ovs-dev] [minor fixes 2/6] bridge: Initialize mirrors' uuid member.

2011-04-11 Thread Ben Pfaff
Otherwise mirrors get destroyed and re-created on every reconfiguration. --- vswitchd/bridge.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 59100cc..1e5caf9 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -3504,6 +35

[ovs-dev] [minor fixes 3/6] daemon: Reduce log level of "pid file is stale" message.

2011-04-11 Thread Ben Pfaff
This message will appear repeatedly when ovs-vswitchd is running, if there is any stale pidfile in /var/run/openvswitch, because ovs-vswitchd reads all of the pidfiles in that directory periodically to update statistics. --- lib/daemon.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-)

[ovs-dev] [minor fixes 4/6] bridge: Reintroduce log message that was lost (and wrong).

2011-04-11 Thread Ben Pfaff
Setting the 'mac' in the Interface record for a bridge's local port has always been ineffective, but the log message was suppressed because of a check at too high of a level. This commit fixes the problem. It also fixes the wording of the log message, which has been obsolete since the introductio

[ovs-dev] [minor fixes 5/6] bridge: Fix VLAN selection mirroring logic.

2011-04-11 Thread Ben Pfaff
The logic here did not make sense. A packet arriving on a port is mirrored if the port is a mirroring source port AND (not OR) the packet is in one of the VLANs that is mirrored. This test has been here since the mirroring code was introduced. It seems to me that it was never correct. --- vswit

[ovs-dev] [branch-1.1 3/3] dpif-linux: Avoid logging error on ENOENT in dpif_linux_is_internal_device().

2011-04-11 Thread Ben Pfaff
ENOENT can be returned if the kernel module isn't loaded. If that's the case then we've already logged that and there's no point in logging it again. --- lib/dpif-linux.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/dpif-linux.c b/lib/dpif-linux.c index fd08e64..f

[ovs-dev] [branch-1.1 1/3] vswitch: Improve schema documentation.

2011-04-11 Thread Ben Pfaff
--- vswitchd/vswitch.xml | 17 + 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/vswitchd/vswitch.xml b/vswitchd/vswitch.xml index dc6c197..a16ddfb 100644 --- a/vswitchd/vswitch.xml +++ b/vswitchd/vswitch.xml @@ -1522,6 +1522,12 @@ + +T

[ovs-dev] [branch-1.1 0/3] backported bug fixes for 1.1

2011-04-11 Thread Ben Pfaff
These are cherry-picked commits from "master" that also apply to branch-1.1, presumably for inclusion in OVS 1.1.1. All of these have been reviewed already for master, so the goal for this review cycle is to determine whether they are suitable for 1.1. Ben Pfaff (3): vswitch: Improve schema doc

[ovs-dev] [branch-1.1 2/3] dpif-linux: Avoid segfault on netdev_get_stats() without kernel module.

2011-04-11 Thread Ben Pfaff
netdev_linux_get_stats() calls into netdev_vport_get_stats(), which in turn attempts a transaction on genl_sock. If the kernel module isn't loaded, then genl_sock won't be there, and in any case there's nothing that guarantees that it's been initialized yet. This fixes the problem by ensuring tha

Re: [ovs-dev] [PATCH] autopath: Create the autopath action.

2011-04-11 Thread Ethan Jackson
> I guess only values in the range 1...1023 and OFPP_LOCAL are currently > useful?  I guess I don't care then.  The current code is fine. Anything else they type in is going to result in OFPP_NONE going into the register. We do document in the ofctl man page that openflow port numbers should be u

Re: [ovs-dev] [uswitch 4/4] dpif-linux: Avoid logging error on ENOENT in dpif_linux_is_internal_device().

2011-04-11 Thread Ben Pfaff
On Mon, Apr 11, 2011 at 10:21:27AM -0700, Andrew Evans wrote: > On 4/8/11 4:41 PM, Ben Pfaff wrote: > > ENOENT can be returned if the kernel module isn't loaded. If that's the > > case then we've already logged that and there's no point in logging it > > again. > > Looks good to me. Thanks. I f

Re: [ovs-dev] [PATCH] autopath: Create the autopath action.

2011-04-11 Thread Ben Pfaff
On Mon, Apr 11, 2011 at 10:48:41AM -0700, Ethan Jackson wrote: > > autopath_parse() rejects nonpositive 'id' values but the > > NXAST_AUTOPATH action description doesn't say that only positive > > values are valid. > > I'm not sure here whether the correct thing to do is document that > positive I

Re: [ovs-dev] [PATCH] autopath: Create the autopath action.

2011-04-11 Thread Ethan Jackson
> autopath_parse() rejects nonpositive 'id' values but the > NXAST_AUTOPATH action description doesn't say that only positive > values are valid. I'm not sure here whether the correct thing to do is document that positive ID values are required, or loosen the requirement. From the action's persp

Re: [ovs-dev] [PATCH] autopath: Create the autopath action.

2011-04-11 Thread Ben Pfaff
On Fri, Apr 08, 2011 at 06:35:22PM -0700, Ethan Jackson wrote: > The newly created autopath action will be the way OpenFlow > interacts with the existing bonding infrastructure. Looks good. In autopath_parse(), you can omit the extra " " in the first line of: > +ovs_fatal(0, "%s: autopath

Re: [ovs-dev] [uswitch 4/4] dpif-linux: Avoid logging error on ENOENT in dpif_linux_is_internal_device().

2011-04-11 Thread Andrew Evans
On 4/8/11 4:41 PM, Ben Pfaff wrote: > ENOENT can be returned if the kernel module isn't loaded. If that's the > case then we've already logged that and there's no point in logging it > again. Looks good to me. ___ dev mailing list dev@openvswitch.org ht

Re: [ovs-dev] [uswitch 3/4] dpif-linux: Avoid segfault on netdev_get_stats() without kernel module.

2011-04-11 Thread Andrew Evans
On 4/8/11 4:41 PM, Ben Pfaff wrote: > netdev_linux_get_stats() calls into netdev_vport_get_stats(), which in > turn attempts a transactino on genl_sock. If the kernel module isn't ^^^ What's a transactino? Is that a miniature Italian transaction? Looks good to me otherw

Re: [ovs-dev] [uswitch 2/4] netdev-linux: Fix netdev_send() to tap device.

2011-04-11 Thread Andrew Evans
On 4/8/11 4:41 PM, Ben Pfaff wrote: > Commit 76c308b50d3 "netdev-linux: Support 'send' for netdevs opened with > NETDEV_ETH_TYPE_NONE" broke sending packets to tap devices. Sending a > packet to a tap device with an AF_PACKET socket causes that packet to be > looped back to be received on the tap

Re: [ovs-dev] [uswitch 1/4] netdev-linux: Fix blocking while sending packets.

2011-04-11 Thread Andrew Evans
On 4/8/11 4:41 PM, Ben Pfaff wrote: > The AF_PACKET socket needs to be in nonblocking mode or trying to send > a packet can take a long time. Looks good to me. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] netdev-linux: Avoid "cleverness" in swap_uint64().

2011-04-11 Thread Ben Pfaff
Thanks, I pushed this one. On Sun, Apr 10, 2011 at 11:17:39PM -0700, Justin Pettit wrote: > Looks good to me. > > --Justin > > > On Apr 8, 2011, at 4:45 PM, Ben Pfaff wrote: > > > Obviously correct code is easier on everyone. As the C FAQ says: ___