Re: [ovs-dev] Does ovs-vsctl add-br br01 really create a bridge just like brctl add-br br01?

2013-02-08 Thread Ben Pfaff
On Fri, Feb 08, 2013 at 11:18:07AM +0800, ?? wrote: >Thanks your reply. Yes, I read that manual several times before i sent > the previous post here. This manual tell me that ovs-vsctl is a db client > to configure Open vSwitch configuration database maintained by > ovsdb-server. So when

Re: [ovs-dev] [PATCH 1/2] tunnel: Log tunneling changes at INFO level.

2013-02-08 Thread Ben Pfaff
On Thu, Feb 07, 2013 at 07:04:21PM -0800, Ethan Jackson wrote: > These log messages occur infrequently, and are quite useful when > debugging problems after the fact. So they should be logged at > info level which makes them more readily available. > > Signed-off-by: Ethan Jackson Looks good, t

Re: [ovs-dev] [PATCH 2/2] tunnel: Treat in_key=0 the same as a missing in_key.

2013-02-08 Thread Ben Pfaff
On Thu, Feb 07, 2013 at 07:04:22PM -0800, Ethan Jackson wrote: > The documented behavior of ovs is that a missing key is the > same as a zero key. However, the tunneling code actually treated > them differently. This could cause problems with tunneling modes > such as vxlan which always have a ke

Re: [ovs-dev] [PATCH] ovs-ctl: Add support for built-in (non-modular) kernel support.

2013-02-08 Thread Ben Pfaff
On Wed, Feb 06, 2013 at 08:44:36AM -0800, Ben Pfaff wrote: > On Wed, Feb 06, 2013 at 03:54:14PM +0800, Cong Wang wrote: > > On 02/06/2013 03:14 AM, Ben Pfaff wrote: > > >Reported-by: Cong Wang > > >Signed-off-by: Ben Pfaff > > >--- > > >Cong, will you verify that this makes the init script work O

[ovs-dev] [PATCH] datapath: Fix ovs_vport_cmd_del return value on success

2013-02-08 Thread Rich Lane
If the pointer does not represent an error then the PTR_ERR macro may still return a nonzero value. The fix is the same as in ovs_vport_cmd_set. Signed-off-by: Rich Lane --- datapath/datapath.c |1 + 1 file changed, 1 insertion(+) diff --git a/datapath/datapath.c b/datapath/datapath.c index

Re: [ovs-dev] [PATCH] stream-unix: append ovs_rundir to socket

2013-02-08 Thread Ben Pfaff
On Thu, Feb 07, 2013 at 03:48:14PM -0800, Pavithra Ramesh wrote: > If socket path specified is relative to ovs_rundir(), > append the directory name to in unix_open and punix_open. > Freed the new newly allocated strings. > Also included the change in bridge.c to relax the whitelist > check, only i

Re: [ovs-dev] [PATCH] datapath: Fix ovs_vport_cmd_del return value on success

2013-02-08 Thread Jesse Gross
On Fri, Feb 8, 2013 at 9:11 AM, Rich Lane wrote: > If the pointer does not represent an error then the PTR_ERR macro may still > return a nonzero value. The fix is the same as in ovs_vport_cmd_set. > > Signed-off-by: Rich Lane Applied, thank you. ___ d

Re: [ovs-dev] [PATCH] stream-unix: append ovs_rundir to socket

2013-02-08 Thread Pavithra Ramesh
Thanks Ben. The patch looks good. Do we also want to change the python stream implementation to behave the same way? -Pavithra - Original Message - From: "Ben Pfaff" To: "Pavithra Ramesh" Cc: dev@openvswitch.org Sent: Friday, February 8, 2013 9:14:13 AM Subject: Re: [ovs-dev] [PATCH] s

Re: [ovs-dev] [PATCH] stream-unix: append ovs_rundir to socket

2013-02-08 Thread Ben Pfaff
Yes, would you mind taking a first shot? On Fri, Feb 08, 2013 at 09:51:33AM -0800, Pavithra Ramesh wrote: > Thanks Ben. The patch looks good. > Do we also want to change the python stream implementation > to behave the same way? > > -Pavithra > > - Original Message - > From: "Ben Pfaff"

Re: [ovs-dev] [PATCH] stream-unix: append ovs_rundir to socket

2013-02-08 Thread Pavithra Ramesh
Sure, I've made the change and will send out a new patch. Can you push this one? Thanks, Pavithra - Original Message - From: "Ben Pfaff" To: "Pavithra Ramesh" Cc: dev@openvswitch.org Sent: Friday, February 8, 2013 11:18:38 AM Subject: Re: [ovs-dev] [PATCH] stream-unix: append ovs_rundir

[ovs-dev] [PATCH] datapath: Fix ovs_vport_cmd_new return value on success

2013-02-08 Thread Rich Lane
This bug was introduced in 1fc7083d (datapath: Remove vport MAC address configuration.) Signed-off-by: Rich Lane --- datapath/datapath.c |1 + 1 file changed, 1 insertion(+) diff --git a/datapath/datapath.c b/datapath/datapath.c index f78c232..87c96ae 100644 --- a/datapath/datapath.c +++ b/

Re: [ovs-dev] [BUG] SLB bonding & bond-rebalance-interval not working as expected

2013-02-08 Thread Zoltan Kiss
Hi, On 30/01/13 14:44, Markus Schuster wrote: Hi, looks like I'm currently in SLB bonding bug hunting mood :) - I think I found an additional bug / strange behaviour with balance-slb bonding: Two VMs suffered from short term (a few minutes) connectivity issues every now and then, so I started

Re: [ovs-dev] [PATCH] stream-unix: append ovs_rundir to socket

2013-02-08 Thread Ben Pfaff
Usually we put both the C and Python versions into one patch, if we remember to change both versions at the same time. On Fri, Feb 08, 2013 at 11:24:45AM -0800, Pavithra Ramesh wrote: > Sure, I've made the change and will send out a new patch. > Can you push this one? > > Thanks, > Pavithra > >

[ovs-dev] [PATCH] stream-unix: append ovs_rundir to socket

2013-02-08 Thread Pavithra Ramesh
If socket path specified is relative to ovs_rundir(), append the directory name to in unix_open and punix_open. Made the change in the stream-unix implementation of C and Python. Also modified bridge.c to relax the whitelist check, only if there is no '/' in socket name. --- lib/stream-unix.c

Re: [ovs-dev] [PATCH 1/2] Optimize classifier by maintaining the priority of the highest priority rule in each table.

2013-02-08 Thread Ben Pfaff
On Fri, Feb 08, 2013 at 12:06:22AM +0200, Jarno Rajahalme wrote: > > Signed-off-by: Jarno Rajahalme Well done. I applied this to master. I only added {} around a statement where it was missing and ending punctuation to a few comments. Thanks a lot. Ben ___

Re: [ovs-dev] [PATCH] datapath: Fix ovs_vport_cmd_new return value on success

2013-02-08 Thread Jesse Gross
On Fri, Feb 8, 2013 at 12:09 PM, Rich Lane wrote: > This bug was introduced in 1fc7083d (datapath: Remove vport MAC address > configuration.) > > Signed-off-by: Rich Lane Also applied, thanks. ___ dev mailing list dev@openvswitch.org http://openvswitch

Re: [ovs-dev] [PATCH] ofproto-dpif: Reduce number of get_ofp_port() calls during flow xlate.

2013-02-08 Thread Ethan Jackson
The patch pretty much looks good to me. I still don't think we have the patch port code exactly correct though. Suppose we're neither in the forwarding state, nor the learning state. It looks to me like we'll still run through the learning code when sending through the patch port, though we don't

Re: [ovs-dev] [PATCH 2/2] tunnel: Treat in_key=0 the same as a missing in_key.

2013-02-08 Thread Ethan Jackson
Thanks for the reviews. I've pushed this to master and 1.10 Ethan On Fri, Feb 8, 2013 at 8:45 AM, Ben Pfaff wrote: > On Thu, Feb 07, 2013 at 07:04:22PM -0800, Ethan Jackson wrote: >> The documented behavior of ovs is that a missing key is the >> same as a zero key. However, the tunneling code

[ovs-dev] [PATCH] ovs-pki: Increase the validity period for all certificates.

2013-02-08 Thread Gurucharan Shetty
This patch increases the certificate validity to 100 years for certificate authorities, the certificates that they certify and for self signed certificates. Signed-off-by: Gurucharan Shetty --- utilities/ovs-pki.in |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util

[ovs-dev] [PATCH 1/2] datapath: Call genlmsg_end in queue_userspace_packet

2013-02-08 Thread Rich Lane
Without genlmsg_end the upcall message ends (according to nlmsg_len) after the struct ovs_header. Signed-off-by: Rich Lane --- datapath/datapath.c |1 + 1 file changed, 1 insertion(+) diff --git a/datapath/datapath.c b/datapath/datapath.c index 87c96ae..5d18def 100644 --- a/datapath/datapat

[ovs-dev] [PATCH 2/2] datapath: Fix parsing invalid LLC/SNAP ethertypes

2013-02-08 Thread Rich Lane
Before this patch, if an LLC/SNAP packet with OUI 00:00:00 had an ethertype less than 1536 the flow key given to userspace in the upcall would contain the invalid ethertype (for example, 3). If userspace attempted to insert a kernel flow for this key it would be rejected by ovs_flow_from_nlattrs.

Re: [ovs-dev] [PATCH] ovs-pki: Increase the validity period for all certificates.

2013-02-08 Thread Ben Pfaff
On Fri, Feb 08, 2013 at 02:49:12PM -0800, Gurucharan Shetty wrote: > This patch increases the certificate validity to 100 years > for certificate authorities, the certificates that they certify > and for self signed certificates. > > Signed-off-by: Gurucharan Shetty Thanks, this seems reasonable

Re: [ovs-dev] Does ovs-vsctl add-br br01 really create a bridge just like brctl add-br br01?

2013-02-08 Thread 黄登辉
HI Thanks, so, to do kernel configuration, how does ovs-vswitchd do? by direct function call or some other mechanism? 2013/2/9 Ben Pfaff > On Fri, Feb 08, 2013 at 11:18:07AM +0800, ?? wrote: > >Thanks your reply. Yes, I read that manual several times before i sent > > the previous

Re: [ovs-dev] [PATCH] ovs-ctl: Add support for built-in (non-modular) kernel support.

2013-02-08 Thread Cong Wang
On Sat, Feb 9, 2013 at 12:46 AM, Ben Pfaff wrote: > On Wed, Feb 06, 2013 at 08:44:36AM -0800, Ben Pfaff wrote: >> On Wed, Feb 06, 2013 at 03:54:14PM +0800, Cong Wang wrote: >> > On 02/06/2013 03:14 AM, Ben Pfaff wrote: >> > >Reported-by: Cong Wang >> > >Signed-off-by: Ben Pfaff >> > >--- >> > >C