[ovs-dev] [PATCH] python/ovs/stream: TypeError: bad operand type for unary -: 'NoneType'

2012-11-20 Thread Isaku Yamahata
This fixes the following exception. When Stream.__scs_connecting doesn't change self.state, Stream.connect() returns None as an implicit return value. Then, the following exception is raised. I guess this case doesn't happen in unix socket case, but does in TCP socket case. > File "ovs/jsonrpc.p

[ovs-dev] [PATCH] v2 vswitchd: Log all tunnel parameters of given flow.

2012-11-20 Thread Pravin B Shelar
Fixed according to comments from Ben and Jesse. --8<--cut here-->8-- Signed-off-by: Pravin B Shelar --- lib/flow.c | 43 +++ lib/flow.h |6 ++ lib/match.c| 118 lib/meta-flow.c

Re: [ovs-dev] [PATCH v2] vswitchd: Make Interface's ofport a persistent column.

2012-11-20 Thread Gurucharan Shetty
On Tue, Nov 20, 2012 at 1:29 PM, Justin Pettit wrote: > Can you make sure you document this behavior in "vswitchd/vswitch.xml". I forgot to do it. This patch probably will need another respin and I will include it. In the meanwhile, do you think the following change is good enough. Here is an in

Re: [ovs-dev] Possible user-space datapath regression

2012-11-20 Thread Simon Horman
On Tue, Nov 20, 2012 at 03:12:26PM -0500, Justin Pettit wrote: > On Nov 20, 2012, at 12:08 PM, Ben Pfaff wrote: > > > I think that Justin was debugging some userspace datapath[*] problems > > late last week. I remember discussing fixes with him. It looks like he > > didn't send out the fix befo

Re: [ovs-dev] Possible user-space datapath regression

2012-11-20 Thread Simon Horman
On Tue, Nov 20, 2012 at 09:08:32AM -0800, Ben Pfaff wrote: > On Tue, Nov 20, 2012 at 05:44:30PM +0900, Simon Horman wrote: > > I believe I have found a regression that affects the behaviour of the > > datapath. A quick bisection points to the following patch: > > > > acf60855126bcfa79ea22d7846

Re: [ovs-dev] [PATCHv4] datapath: add skb mark matching and set action

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 03:05:24PM -0800, Ansis Atteka wrote: > This patch adds support for skb mark matching and set action. > > Signed-off-by: Ansis Atteka I would increment FLOW_WC_SEQ to draw attention to some other places that might require updates. I worry that it will be very difficult t

[ovs-dev] [PATCHv4] datapath: add skb mark matching and set action

2012-11-20 Thread Ansis Atteka
This patch adds support for skb mark matching and set action. Signed-off-by: Ansis Atteka --- NEWS|4 +++- datapath/actions.c |4 datapath/compat.h | 33 + datapath/datapath.c |8 datap

Re: [ovs-dev] [so_error 3/3] socket-util: Remove get_socket_error().

2012-11-20 Thread Ben Pfaff
Ethan reviewed this and patch 2 in a separate thread: http://openvswitch.org/pipermail/dev/2012-November/023176.html so I pushed them. ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] so_error 2/3 and 3/3

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 02:39:21PM -0800, Ethan Jackson wrote: > For some reason I didn't get this series. Is that why I have so many patches out for review? ;-) > http://openvswitch.org/pipermail/dev/2012-November/023128.html > Acked-by: Ethan Jackson > > http://openvswitch.org/pipermail/dev/

Re: [ovs-dev] [PATCH 2/2] vswitchd: Log all tunnel parameters of given flow.

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 10:15:52AM -0800, Pravin B Shelar wrote: > Signed-off-by: Pravin B Shelar I don't see a good reason to make flow_tun_flag_to_string() a "static inline" function in a header file. It's not performance-critical, I hope. In flow_tunnel_format, passing '.' to format_flags()

Re: [ovs-dev] [PATCH] ofproto: Fix ofport allocation.

2012-11-20 Thread Gurucharan Shetty
On Tue, Nov 20, 2012 at 12:40 PM, Ben Pfaff wrote: > On Tue, Nov 20, 2012 at 03:29:03AM -0800, Gurucharan Shetty wrote: >> From: Gurucharan Shetty > > You used shettyg as author and committer but signed off as gshetty. I > think that the repository hook will reject that, requiring > consistency.

[ovs-dev] so_error 2/3 and 3/3

2012-11-20 Thread Ethan Jackson
For some reason I didn't get this series. http://openvswitch.org/pipermail/dev/2012-November/023128.html Acked-by: Ethan Jackson http://openvswitch.org/pipermail/dev/2012-November/023129.html Acked-by: Ethan Jackson Ethan ___ dev mailing list dev@op

Re: [ovs-dev] [PATCH] ovs-appctl: fix help message for ofporot/trace command

2012-11-20 Thread Ansis Atteka
On Tue, Nov 20, 2012 at 2:04 PM, Reid Price wrote: > s/ofporot/ofproto/ Thanks. Fixed that typo and applied to master and branch-1.9, ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH v2] vswitchd: Make Interface's ofport a persistent column.

2012-11-20 Thread Gurucharan Shetty
On Tue, Nov 20, 2012 at 1:14 PM, Ben Pfaff wrote: > > On Tue, Nov 20, 2012 at 03:40:50AM -0800, Gurucharan Shetty wrote: > > From: Gurucharan Shetty > > > > Currently, the 'ofport' column in Interface table is > > ephemeral and is populated by vswitchd everytime it is > > started or when a new in

Re: [ovs-dev] [PATCH] bridge: Fix typo in comment.

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 01:55:10PM -0800, Ansis Atteka wrote: > On Tue, Nov 20, 2012 at 1:09 PM, Ben Pfaff wrote: > > Signed-off-by: Ben Pfaff > > --- > > vswitchd/bridge.c |2 +- > > 1 files changed, 1 insertions(+), 1 deletions(-) > > > > diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c

Re: [ovs-dev] [PATCH] ovs-appctl: fix help message for ofporot/trace command

2012-11-20 Thread Jesse Gross
On Tue, Nov 20, 2012 at 1:49 PM, Ansis Atteka wrote: > The usage message for this command was wrong, because it did not > specify priority as one of its arguments. > > Signed-off-by: Ansis Atteka Looks good to me. ___ dev mailing list dev@openvswitch.o

Re: [ovs-dev] [PATCH] ovs-appctl: fix help message for ofporot/trace command

2012-11-20 Thread Reid Price
s/ofporot/ofproto/ On Tue, Nov 20, 2012 at 1:49 PM, Ansis Atteka wrote: > The usage message for this command was wrong, because it did not > specify priority as one of its arguments. > > Signed-off-by: Ansis Atteka > --- > ofproto/ofproto-dpif.c |2 +- > 1 file changed, 1 insertion(+), 1 d

Re: [ovs-dev] [PATCH] bridge: Fix typo in comment.

2012-11-20 Thread Ansis Atteka
On Tue, Nov 20, 2012 at 1:09 PM, Ben Pfaff wrote: > Signed-off-by: Ben Pfaff > --- > vswitchd/bridge.c |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c > index 8f16432..998ea81 100644 > --- a/vswitchd/bridge.c > +++ b/vswitchd/b

[ovs-dev] [PATCH] ovs-appctl: fix help message for ofporot/trace command

2012-11-20 Thread Ansis Atteka
The usage message for this command was wrong, because it did not specify priority as one of its arguments. Signed-off-by: Ansis Atteka --- ofproto/ofproto-dpif.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 45527e3..

Re: [ovs-dev] [PATCH v2] vswitchd: Make Interface's ofport a persistent column.

2012-11-20 Thread Justin Pettit
Can you make sure you document this behavior in "vswitchd/vswitch.xml". Thanks, --Justin On Nov 20, 2012, at 6:40 AM, Gurucharan Shetty wrote: > From: Gurucharan Shetty > > Currently, the 'ofport' column in Interface table is > ephemeral and is populated by vswitchd everytime it is > starte

Re: [ovs-dev] [PATCH 2/2] vswitchd: Log all tunnel parameters of given flow.

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 01:08:09PM -0800, Jesse Gross wrote: > On Tue, Nov 20, 2012 at 10:15 AM, Pravin B Shelar wrote: > > Signed-off-by: Pravin B Shelar > > --- > > lib/flow.c | 30 > > lib/flow.h | 19 + > > lib/match.c| 44 --- > > lib/meta-

Re: [ovs-dev] [PATCH v2] vswitchd: Make Interface's ofport a persistent column.

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 03:40:50AM -0800, Gurucharan Shetty wrote: > From: Gurucharan Shetty > > Currently, the 'ofport' column in Interface table is > ephemeral and is populated by vswitchd everytime it is > started or when a new interface is created with vswitchd > running. > > Making it persi

[ovs-dev] [PATCH] bridge: Fix typo in comment.

2012-11-20 Thread Ben Pfaff
Signed-off-by: Ben Pfaff --- vswitchd/bridge.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c index 8f16432..998ea81 100644 --- a/vswitchd/bridge.c +++ b/vswitchd/bridge.c @@ -1243,7 +1243,7 @@ bridge_refresh_one_ofp_port(struct bri

Re: [ovs-dev] [PATCH 2/2] vswitchd: Log all tunnel parameters of given flow.

2012-11-20 Thread Jesse Gross
On Tue, Nov 20, 2012 at 10:15 AM, Pravin B Shelar wrote: > Signed-off-by: Pravin B Shelar > --- > lib/flow.c | 30 > lib/flow.h | 19 + > lib/match.c| 44 --- > lib/meta-flow.c| 211 > +++- >

Re: [ovs-dev] [PATCH] ofproto: Fix ofport allocation.

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 03:29:03AM -0800, Gurucharan Shetty wrote: > From: Gurucharan Shetty You used shettyg as author and committer but signed off as gshetty. I think that the repository hook will reject that, requiring consistency. > Currently running the following 3 commands results > in vs

Re: [ovs-dev] Possible user-space datapath regression

2012-11-20 Thread Justin Pettit
On Nov 20, 2012, at 12:08 PM, Ben Pfaff wrote: > I think that Justin was debugging some userspace datapath[*] problems > late last week. I remember discussing fixes with him. It looks like he > didn't send out the fix before he left on vacation, which means that > they weren't quite ready yet.

[ovs-dev] [PATCH v2] vswitchd: Make Interface's ofport a persistent column.

2012-11-20 Thread Gurucharan Shetty
From: Gurucharan Shetty Currently, the 'ofport' column in Interface table is ephemeral and is populated by vswitchd everytime it is started or when a new interface is created with vswitchd running. Making it persistent lets vswitchd try and assign the same ofport number to a particular interface

[ovs-dev] [PATCH] ofproto: Fix ofport allocation.

2012-11-20 Thread Gurucharan Shetty
From: Gurucharan Shetty Currently running the following 3 commands results in vswitchd running in an infinite loop. ovs-vsctl add-port br1 port1 -- set interface port1 \ type=internal ofport_request=1 ovs-vsctl add-port br1 port2 -- set interface port2 \ type=internal ofport_request=2 ovs-vsctl

Re: [ovs-dev] [PATCH 1/2] odp-util: handle ipv4_tunnel key in odp_flow_key_to_flow()

2012-11-20 Thread Jesse Gross
On Tue, Nov 20, 2012 at 11:22 AM, Pravin Shelar wrote: > On Tue, Nov 20, 2012 at 11:17 AM, Jesse Gross wrote: >> >> On Tue, Nov 20, 2012 at 10:15 AM, Pravin B Shelar >> wrote: >> > Signed-off-by: Pravin B Shelar >> > --- >> > lib/odp-util.c | 14 ++ >> > 1 file changed, 14 insert

Re: [ovs-dev] [PATCH] ovs-ofctl: Don't rely on stat() to check unix sockets.

2012-11-20 Thread Ben Pfaff
Let's leave it as-is then. On Tue, Nov 20, 2012 at 11:20:21AM -0800, Ethan Jackson wrote: > I can't seem to get it to produce an ENOTDIR in my testing. At least on > Linux and ESX, it seems to always give me an ENOENT. I could add it as > a precaution if you feel strongly about it. Thoughts? >

Re: [ovs-dev] [PATCH 1/2] odp-util: handle ipv4_tunnel key in odp_flow_key_to_flow()

2012-11-20 Thread Pravin Shelar
On Tue, Nov 20, 2012 at 11:17 AM, Jesse Gross wrote: > On Tue, Nov 20, 2012 at 10:15 AM, Pravin B Shelar > wrote: > > Signed-off-by: Pravin B Shelar > > --- > > lib/odp-util.c | 14 ++ > > 1 file changed, 14 insertions(+) > > > > diff --git a/lib/odp-util.c b/lib/odp-util.c > > i

Re: [ovs-dev] [PATCH] ovs-ofctl: Don't rely on stat() to check unix sockets.

2012-11-20 Thread Ethan Jackson
I can't seem to get it to produce an ENOTDIR in my testing. At least on Linux and ESX, it seems to always give me an ENOENT. I could add it as a precaution if you feel strongly about it. Thoughts? Ethan On Tue, Nov 20, 2012 at 9:18 AM, Ben Pfaff wrote: > On Tue, Nov 20, 2012 at 09:14:02AM -

Re: [ovs-dev] [PATCH 1/2] odp-util: handle ipv4_tunnel key in odp_flow_key_to_flow()

2012-11-20 Thread Jesse Gross
On Tue, Nov 20, 2012 at 10:15 AM, Pravin B Shelar wrote: > Signed-off-by: Pravin B Shelar > --- > lib/odp-util.c | 14 ++ > 1 file changed, 14 insertions(+) > > diff --git a/lib/odp-util.c b/lib/odp-util.c > index 9b0876c..3884b4d 100644 > --- a/lib/odp-util.c > +++ b/lib/odp-util.

Re: [ovs-dev] [PATCH 1/2] odp-util: handle ipv4_tunnel key in odp_flow_key_to_flow()

2012-11-20 Thread Kyle Mestery (kmestery)
On Nov 20, 2012, at 12:15 PM, Pravin B Shelar wrote: > Signed-off-by: Pravin B Shelar Acked-by: Kyle Mestery ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

[ovs-dev] [PATCH 2/2] vswitchd: Log all tunnel parameters of given flow.

2012-11-20 Thread Pravin B Shelar
Signed-off-by: Pravin B Shelar --- lib/flow.c | 30 lib/flow.h | 19 + lib/match.c| 44 --- lib/meta-flow.c| 211 +++- lib/meta-flow.h| 13 +++- lib/odp-util.c | 45 ++- tes

[ovs-dev] [PATCH 1/2] odp-util: handle ipv4_tunnel key in odp_flow_key_to_flow()

2012-11-20 Thread Pravin B Shelar
Signed-off-by: Pravin B Shelar --- lib/odp-util.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/lib/odp-util.c b/lib/odp-util.c index 9b0876c..3884b4d 100644 --- a/lib/odp-util.c +++ b/lib/odp-util.c @@ -1874,6 +1874,20 @@ odp_flow_key_to_flow(const struct nlattr *key, siz

Re: [ovs-dev] [PATCH] ovs-ofctl: Don't rely on stat() to check unix sockets.

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 09:14:02AM -0800, Ben Pfaff wrote: > On Mon, Nov 19, 2012 at 05:48:10PM -0800, Ethan Jackson wrote: > > ESX supports unix sockets, but they don't manifest themselves in > > file system like they do on Linux. Instead of using stat to check > > if a unix socket exist, this pa

Re: [ovs-dev] [PATCH] ovs-ofctl: Don't rely on stat() to check unix sockets.

2012-11-20 Thread Ben Pfaff
On Mon, Nov 19, 2012 at 05:48:10PM -0800, Ethan Jackson wrote: > ESX supports unix sockets, but they don't manifest themselves in > file system like they do on Linux. Instead of using stat to check > if a unix socket exist, this patch simply tries to open it instead. > > Signed-off-by: Ethan Jack

Re: [ovs-dev] Possible user-space datapath regression

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 05:44:30PM +0900, Simon Horman wrote: > I believe I have found a regression that affects the behaviour of the > datapath. A quick bisection points to the following patch: > > acf60855126bcfa79ea22d7846af5f2efe26cd30 > ofproto-dpif: Use a single underlying datapa

Re: [ovs-dev] [PATCH] dpif-netdev: Make odp_flow_key_to_flow() check more explicit.

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 02:09:52PM +, Kyle Mestery (kmestery) wrote: > On Nov 19, 2012, at 5:12 PM, Ben Pfaff wrote: > > ODP_FIT_PERFECT has value 0 but this 'if' statement doesn't make much sense > > unless you happen to know that. > > > > Signed-off-by: Ben Pfaff > > > Acked-by: Kyle Mes

Re: [ovs-dev] [so_error 1/3] python/ovs/socket_util: Fix error path in set_nonblocking.

2012-11-20 Thread Ben Pfaff
On Tue, Nov 20, 2012 at 02:10:53PM +, Kyle Mestery (kmestery) wrote: > On Nov 19, 2012, at 5:57 PM, Ben Pfaff wrote: > > 'e' is an exception, not a socket, so get_exception_errno() is the > > appropriate function to obtain an error code from it. > > > > Signed-off-by: Ben Pfaff > > > Acked

Re: [ovs-dev] [so_error 1/3] python/ovs/socket_util: Fix error path in set_nonblocking.

2012-11-20 Thread Kyle Mestery (kmestery)
On Nov 19, 2012, at 5:57 PM, Ben Pfaff wrote: > 'e' is an exception, not a socket, so get_exception_errno() is the > appropriate function to obtain an error code from it. > > Signed-off-by: Ben Pfaff Acked-by: Kyle Mestery ___ dev mailing list dev@o

Re: [ovs-dev] [PATCH] dpif-netdev: Make odp_flow_key_to_flow() check more explicit.

2012-11-20 Thread Kyle Mestery (kmestery)
On Nov 19, 2012, at 5:12 PM, Ben Pfaff wrote: > ODP_FIT_PERFECT has value 0 but this 'if' statement doesn't make much sense > unless you happen to know that. > > Signed-off-by: Ben Pfaff Acked-by: Kyle Mestery ___ dev mailing list dev@openvswitch.or

[ovs-dev] Possible user-space datapath regression

2012-11-20 Thread Simon Horman
Hi, I believe I have found a regression that affects the behaviour of the datapath. A quick bisection points to the following patch: acf60855126bcfa79ea22d7846af5f2efe26cd30 ofproto-dpif: Use a single underlying datapath across multiple bridges. For my test I run Open vSwtich in