Re: [ovs-dev] [ovs-discuss] How to specify the OF version in OVS?

2013-01-06 Thread Isaku Yamahata
c6e3afab2923 Mon Sep 17 00:00:00 2001 Message-Id: <1e06d7a4dc75f2bbabca4f904747c6e3afab2923.1357530055.git.yamah...@valinux.co.jp> In-Reply-To: <0639ad6e831c28768eceef30fc1325b30eddfa84.1357530055.git.yamah...@valinux.co.jp> References: <0639ad6e831c28768eceef30fc1325b30eddfa84.1357530055.git.yamah...@valinux.co.jp>

Re: [ovs-dev] [PATCH 3/3] dpif-linux: Give each port its own userspace-kernel channel.

2013-01-07 Thread Isaku Yamahata
On Sat, Jan 05, 2013 at 11:25:57AM -0800, Justin Pettit wrote: > Userspace-kernel communication is a possible bottleneck when OVS is > receiving a large number of flow set up requests. To help prevent a bad > actor from consuming too much of this resource, we introduced channels > to segegrate tra

[ovs-dev] [PATCH] datapath/tunnel: reset skb->pkt_type when sending tunneled packets.

2013-06-25 Thread Isaku Yamahata
| V OVS_ACTION_ATTR_OUTPUT ovs-switchd Signed-off-by: Isaku Yamahata --- datapath/tunnel.c |1 + 1 file changed, 1 insertion(+) diff --git a/datapath/tunnel.c b/datap

Re: [ovs-dev] [PATCH] datapath/tunnel: reset skb->pkt_type when sending tunneled packets.

2013-06-25 Thread Isaku Yamahata
I think the upstream kernel has a similar issue with tunneling. I'm preparing a patch. thanks, On Tue, Jun 25, 2013 at 05:11:47PM +0900, Isaku Yamahata wrote: > Reset skb->pkt_type when sending tunneled packets. > Packet can have pkt_type of PACKET_OTHERHOST when coming to ovs bri

[ovs-dev] [PATCH] loopback: set pkt_type to PACKET_HOST explicitly

2013-06-26 Thread Isaku Yamahata
10.0.0.3 vetha ^CSent 2 probes (2 broadcast(s)) Received 0 response(s) Cc: Pravin B Shelar Cc: Jesse Gross Cc: dev@openvswitch.org Signed-off-by: Isaku Yamahata --- drivers/net/loopback.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/loopback.c b/drivers/net/loop

Re: [ovs-dev] [PATCH] loopback: set pkt_type to PACKET_HOST explicitly

2013-06-26 Thread Isaku Yamahata
On Wed, Jun 26, 2013 at 01:40:22AM -0700, Eric Dumazet wrote: > On Wed, 2013-06-26 at 16:34 +0900, Isaku Yamahata wrote: > > Reset pkt_type to PACKET_HOST when loopback device receives packet > > before calling eth_type_trans() > > > > ip-encapsulated packets can be ha

Re: [ovs-dev] [PATCH] loopback: set pkt_type to PACKET_HOST explicitly

2013-06-26 Thread Isaku Yamahata
On Wed, Jun 26, 2013 at 03:29:30PM -0700, David Miller wrote: > From: Isaku Yamahata > Date: Wed, 26 Jun 2013 18:37:51 +0900 > > > veth does. vethb-peer in the above example. > > (veth_xmit() -> dev_forward_skb() -> eth_type_trans()) > > The destination mac addre

[ovs-dev] [PATCH] core/dev: set pkt_type after eth_type_trans() in dev_forward_skb()

2013-07-02 Thread Isaku Yamahata
Cong Wang Cc: Pravin B Shelar Cc: Jesse Gross Cc: dev@openvswitch.org Signed-off-by: Isaku Yamahata --- net/core/dev.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/core/dev.c b/net/core/dev.c index 722f633..b179b8a 100644 --- a/net/core/dev.c +++ b/net/core/dev.c

[ovs-dev] [PATCH] datapath: reset skb->pkt_type when receiving pkt_type of PACKET_OTHERHOST

2013-07-09 Thread Isaku Yamahata
| |upcall | V OVS_ACTION_ATTR_OUTPUT ovs-switchd Cc: Murphy McCauley Cc: Jesse Gros

Re: [ovs-dev] [PATCH] datapath: reset skb->pkt_type when receiving pkt_type of PACKET_OTHERHOST

2013-07-09 Thread Isaku Yamahata
On Tue, Jul 09, 2013 at 02:08:03PM -0700, Jesse Gross wrote: > On Tue, Jul 9, 2013 at 4:07 AM, Isaku Yamahata wrote: > > The upstream has the fix for dev_forward_skb() to reset pkt_type to > > PACKET_HOST. the change set of 06a23fe31ca3992863721f21bdb0307af93da807 > &g

Re: [ovs-dev] [PATCH] datapath: reset skb->pkt_type when receiving pkt_type of PACKET_OTHERHOST

2013-07-09 Thread Isaku Yamahata
On Tue, Jul 09, 2013 at 10:23:42PM -0700, Jesse Gross wrote: > On Tue, Jul 9, 2013 at 7:48 PM, Isaku Yamahata wrote: > > On Tue, Jul 09, 2013 at 02:08:03PM -0700, Jesse Gross wrote: > >> On Tue, Jul 9, 2013 at 4:07 AM, Isaku Yamahata > >> wrote: > >

[ovs-dev] [PATCH] datapath: set skb->pkt_type to PACKET_OUTGOING when sending encapsulated skb

2013-07-16 Thread Isaku Yamahata
ovs-switchd Cc: Murphy McCauley Cc: Jesse Gross Signed-off-by: Isaku Yamahata --- datapath/tunnel.c|1 + datapath/vport-gre.c |1 + 2 files changed, 2 insertions(+) diff --git a/datapath/tunnel.c b/datapath/tunnel.c index ef46a69..b955384

Re: [ovs-dev] [PATCH] datapath: set skb->pkt_type to PACKET_OUTGOING when sending encapsulated skb

2013-07-18 Thread Isaku Yamahata
On Thu, Jul 18, 2013 at 10:02:52AM -0700, Jesse Gross wrote: > On Tue, Jul 16, 2013 at 8:20 PM, Isaku Yamahata > wrote: > > diff --git a/datapath/vport-gre.c b/datapath/vport-gre.c > > index c74f5fc..604fe94 100644 > > --- a/datapath/vport-gre.c > > +++ b/data

[ovs-dev] [PATCH v4 00/10] instruction apply-actions/goto-table support

2012-08-01 Thread Isaku Yamahata
-> v2: - introduce ofpact_instruction to represent instruction delimiter thanks, Isaku Yamahata (10): ofp-actions: allow ofpacts_put_openflow10() return error ofp-actions: allow ofpacts_to_openflow11_{actions, instructions} return error ofp-actions: export OVSINST_OFPIT11_xxx of

[ovs-dev] [PATCH v4 04/10] ofp-actions: sort OVSINST_OFPIT11_xxx value in execution order

2012-08-01 Thread Isaku Yamahata
This order is used by parser from text string to check if the instruction is given in this order. Signed-off-by: Isaku Yamahata --- v4 - improve commit message/comment to clarify it's for parser from text string v3 - newly introduced --- lib/ofp-actions.h |

[ovs-dev] [PATCH v4 02/10] ofp-actions: allow ofpacts_to_openflow11_{actions, instructions} return error

2012-08-01 Thread Isaku Yamahata
When OF1.2+ only actions are introduced, ofpacts_put_openflow11_{actions, instructions}() will be unable to handle all ofp-actions. For such cases, allow it return error. Signed-off-by: Isaku Yamahata --- v4 - newly introduced --- lib/ofp-actions.c | 17 - lib/ofp

[ovs-dev] [PATCH v4 03/10] ofp-actions: export OVSINST_OFPIT11_xxx

2012-08-01 Thread Isaku Yamahata
They will be used by ofp-parser.c. Signed-off-by: Isaku Yamahata --- v4 - no change v3 - no change v2 - newly introduced --- lib/ofp-actions.c | 33 - lib/ofp-actions.h | 35 +++ 2 files changed, 35 insertions(+), 33

[ovs-dev] [PATCH v4 01/10] ofp-actions: allow ofpacts_put_openflow10() return error

2012-08-01 Thread Isaku Yamahata
When OF11+ only actions is introduced, ofpacts_put_openflow10() will be unable to handle all ofp-actions. So allow it return error in that case. Signed-off-by: Isaku Yamahata --- v4 - newly introduced --- lib/learning-switch.c | 35 + lib/ofp-actions.c | 11

[ovs-dev] [PATCH v4 07/10] ofproto-dpif: refactor rule_dpif_lookup() for table miss whose id > 0

2012-08-01 Thread Isaku Yamahata
The refactored function, rule_dpif_miss_rule(), will be used for handling table miss whose table_id > 0 by goto-table instruction. Signed-off-by: Isaku Yamahata --- v4 - commit message v3 - no change v2 - no chnage --- ofproto/ofproto-dpif.c | 31 --- 1 fi

[ovs-dev] [PATCH v4 09/10] instruction/clear-actions: string parser/formater, of packet decoder/encoder

2012-08-01 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v4 - clear-actions part is split outed. - check zero padding - man page --- lib/ofp-actions.c| 33 ++--- lib/ofp-actions.h| 14 +- lib/ofp-parse.c |5 + ofproto/ofproto-dpif.c |8

[ovs-dev] [PATCH v4 10/10] instruction/write-actions: add text parser/formater, of packet decoder/encoder

2012-08-01 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v4 - write-action part is split out - man page --- lib/ofp-actions.c| 55 + lib/ofp-actions.h| 10 +--- lib/ofp-parse.c |6 +--- ofproto/ofproto-dpif.c | 10 tests/ofp

[ovs-dev] [PATCH v4 08/10] ofproto-dpif: teach goto-table instruction packet-in

2012-08-01 Thread Isaku Yamahata
When goto-table instruction results in table miss, generate packet-in event Signed-off-by: Isaku Yamahata --- v4 - manual rebase v3 - changed for OFPACT_GOTO_ABLE v2 - minor change to compile Conflicts: ofproto/ofproto-dpif.c --- ofproto/ofproto-dpif.c | 29

[ovs-dev] [PATCH v4 05/10] ofp-actions/instruction: helper functions for intructions

2012-08-01 Thread Isaku Yamahata
This patch introduces helper functions - to cast - to convert from/to text Signed-off-by: Isaku Yamahata --- v4 - newly introduced --- lib/ofp-actions.c | 42 ++ lib/ofp-actions.h |3 +++ 2 files changed, 45 insertions(+), 0 deletions(-) diff --git

[ovs-dev] [PATCH v4 06/10] instruction: support goto-table action

2012-08-01 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v4 - squashed goto-table instruction part into single patch - only introduce goto-table. Other instruction will be addressed by other patches. - check zero padding - man page - unit test v3 - introduce OFPACT_{CLEAR_ACTIONS, WRITE_ACTIONS, GOTO_TABLE} v2

Re: [ovs-dev] [PATCH v4 05/10] ofp-actions/instruction: helper functions for intructions

2012-08-14 Thread Isaku Yamahata
On Tue, Aug 14, 2012 at 10:02:24AM -0700, Ben Pfaff wrote: > On Thu, Aug 02, 2012 at 12:24:10AM +0900, Isaku Yamahata wrote: > > This patch introduces helper functions > > - to cast > > - to convert from/to text > > > > Signed-off-by:

Re: [ovs-dev] [PATCH v4 01/10] ofp-actions: allow ofpacts_put_openflow10() return error

2012-08-14 Thread Isaku Yamahata
On Tue, Aug 14, 2012 at 09:43:16AM -0700, Ben Pfaff wrote: > On Thu, Aug 02, 2012 at 12:24:06AM +0900, Isaku Yamahata wrote: > > When OF11+ only actions is introduced, ofpacts_put_openflow10() will be > > unable to handle all ofp-actions. So allow it return error in that case. >

Re: [ovs-dev] [PATCH v4 02/10] ofp-actions: allow ofpacts_to_openflow11_{actions, instructions} return error

2012-08-14 Thread Isaku Yamahata
On Tue, Aug 14, 2012 at 09:46:05AM -0700, Ben Pfaff wrote: > On Thu, Aug 02, 2012 at 12:24:07AM +0900, Isaku Yamahata wrote: > > When OF1.2+ only actions are introduced, > > ofpacts_put_openflow11_{actions, instructions}() will be unable to handle > > all > > ofp-action

Re: [ovs-dev] [PATCH v3] ofp-actions: Implement writing to metadata field

2012-08-14 Thread Isaku Yamahata
Basically it looks good. One minor comment inline. On Wed, Aug 15, 2012 at 12:28:47AM +1200, Joe Stringer wrote: > diff --git a/lib/ofp-actions.h b/lib/ofp-actions.h > index 272b8e8..a16c04a 100644 > --- a/lib/ofp-actions.h > +++ b/lib/ofp-actions.h ... > @@ -311,6 +311,15 @@ struct ofpact_fin_tim

[ovs-dev] How many tables are available?

2012-08-16 Thread Isaku Yamahata
Hi. Right now OVS tells a controller that 256 tables available as SWITCH_FEATURES response. (i.e. ofp_switch_features->n_tables = 256 = N_TABLES) But the table whose id is TBL_INTERNAL = N_TABLES - 1 is used for ovs internal use so can't be available to a controller. Addition to the above, the doc

Re: [ovs-dev] How many tables are available?

2012-08-16 Thread Isaku Yamahata
Oops, I meant n_tables = 255, table_id = 254. So we will report that table_id=254 isn't usable for controllers with OF1.1+. Thank you for clarification. thanks, On Thu, Aug 16, 2012 at 09:18:31AM -0700, Ben Pfaff wrote: > On Thu, Aug 16, 2012 at 05:16:53PM +0900, Isaku Yamahata wrote

[ovs-dev] [PATCH 0/2] python/ovs: add tcp socket support

2012-08-22 Thread Isaku Yamahata
This patch series add tcp socket support to python ovs binding in addition to unix socket. Isaku Yamahata (2): python/ovs/socket_util: add tcp related helper functions which will be used by tcp python/ovs/stream: teach stream.py tcp socket python/ovs/socket_util.py | 40

[ovs-dev] [PATCH 1/2] python/ovs/socket_util: add tcp related helper functions which will be used by tcp

2012-08-22 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- python/ovs/socket_util.py | 40 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/python/ovs/socket_util.py b/python/ovs/socket_util.py index a8e8d92..d05f165 100644 --- a/python/ovs/socket_util.py +++ b

[ovs-dev] [PATCH 2/2] python/ovs/stream: teach stream.py tcp socket

2012-08-22 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- python/ovs/stream.py | 62 +++-- 1 files changed, 54 insertions(+), 8 deletions(-) diff --git a/python/ovs/stream.py b/python/ovs/stream.py index 9c10612..b8dfe6a 100644 --- a/python/ovs/stream.py +++ b/python/ovs

[ovs-dev] [PATCH] python/ovs/poller: monkey patch to select.poll for eventlet/gevent

2012-08-22 Thread Isaku Yamahata
eventlet/gevent doesn't work well with select.poll because it blocks. So ovsdb python binding can't be used with eventlet/gevent. So monkey patch to select.poll with a function that emulate select.poll with select.select. Signed-off-by: Isaku Yamahata --- python/ovs/poller

Re: [ovs-dev] [PATCH 0/2] python/ovs: add tcp socket support

2012-08-27 Thread Isaku Yamahata
On Sun, Aug 26, 2012 at 05:27:24PM -0700, Ben Pfaff wrote: > On Wed, Aug 22, 2012 at 07:05:39PM +0900, Isaku Yamahata wrote: > > This patch series add tcp socket support to python ovs binding in addition > > to unix socket. > > At first glance these seem reasonable but I di

Re: [ovs-dev] [PATCH] python/ovs/poller: monkey patch to select.poll for eventlet/gevent

2012-08-28 Thread Isaku Yamahata
On Mon, Aug 27, 2012 at 10:10:13PM -0700, Ben Pfaff wrote: > On Wed, Aug 22, 2012 at 07:07:05PM +0900, Isaku Yamahata wrote: > > eventlet/gevent doesn't work well with select.poll because it blocks. > > So ovsdb python binding can't be used with eventlet/gevent. > >

[ovs-dev] [PATCH v5 0/6] instruction apply-actions/goto-table support

2012-08-28 Thread Isaku Yamahata
on delimiter thanks, Isaku Yamahata (6): lib/ofp-actions: improve ofpact_instruction_name_from_type() instruction: support goto-table action ofproto-dpif: refactor rule_dpif_lookup() for table miss whose id > 0 ofproto-dpif: teach goto-table instruction packet-in instruction/clear-actions

[ovs-dev] [PATCH v5 2/6] instruction: support goto-table action

2012-08-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v5 - manual rebase v4 - squashed goto-table instruction part into single patch - only introduce goto-table. Other instruction will be addressed by other patches. - check zero padding - man page - unit test v3 - introduce OFPACT_{CLEAR_ACTIONS, WRITE_ACTIONS

[ovs-dev] [PATCH v5 4/6] ofproto-dpif: teach goto-table instruction packet-in

2012-08-28 Thread Isaku Yamahata
When goto-table instruction results in table miss, generate packet-in event Signed-off-by: Isaku Yamahata --- v5 - no change v4 - manual rebase v3 - changed for OFPACT_GOTO_ABLE v2 - minor change to compile Conflicts: ofproto/ofproto-dpif.c --- ofproto/ofproto-dpif.c | 29

[ovs-dev] [PATCH v5 6/6] instruction/write-actions: add text parser/formater, of packet decoder/encoder

2012-08-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v5 - manual rebase v4 - write-action part is split out - man page --- lib/ofp-actions.c| 55 + lib/ofp-actions.h| 11 ++--- lib/ofp-parse.c |6 +--- ofproto/ofproto-dpif.c | 10

[ovs-dev] [PATCH v5 1/6] lib/ofp-actions: improve ofpact_instruction_name_from_type()

2012-08-28 Thread Isaku Yamahata
eliminate unnecessary loop. Signed-off-by: Isaku Yamahata --- v5 - newly introduced --- lib/ofp-actions.c |8 +--- 1 files changed, 1 insertions(+), 7 deletions(-) diff --git a/lib/ofp-actions.c b/lib/ofp-actions.c index 0e8b9da..baa6fdd 100644 --- a/lib/ofp-actions.c +++ b/lib/ofp

[ovs-dev] [PATCH v5 3/6] ofproto-dpif: refactor rule_dpif_lookup() for table miss whose id > 0

2012-08-28 Thread Isaku Yamahata
The refactored function, rule_dpif_miss_rule(), will be used for handling table miss whose table_id > 0 by goto-table instruction. Signed-off-by: Isaku Yamahata --- v5 - no change v4 - commit message v3 - no change v2 - no chnage --- ofproto/ofproto-dpif.c |

[ovs-dev] [PATCH v5 5/6] instruction/clear-actions: string parser/formater, of packet decoder/encoder

2012-08-28 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v5 - manual rebase v4 - clear-actions part is split outed. - check zero padding - man page --- lib/ofp-actions.c| 33 ++--- lib/ofp-actions.h| 13 - lib/ofp-parse.c |5 + ofproto

Re: [ovs-dev] [PATCH] python/ovs/poller: monkey patch to select.poll for eventlet/gevent

2012-08-30 Thread Isaku Yamahata
On Wed, Aug 29, 2012 at 10:18:59AM -0700, Ben Pfaff wrote: > On Tue, Aug 28, 2012 at 05:37:06PM +0900, Isaku Yamahata wrote: > > On Mon, Aug 27, 2012 at 10:10:13PM -0700, Ben Pfaff wrote: > > > On Wed, Aug 22, 2012 at 07:07:05PM +0900, Isaku Yamahata wrote: > > > >

Re: [ovs-dev] [PATCH] python/ovs/poller: monkey patch to select.poll for eventlet/gevent

2012-08-30 Thread Isaku Yamahata
On Thu, Aug 30, 2012 at 11:25:25AM -0700, Ben Pfaff wrote: > On Fri, Aug 31, 2012 at 03:19:57AM +0900, Isaku Yamahata wrote: > > On Wed, Aug 29, 2012 at 10:18:59AM -0700, Ben Pfaff wrote: > > > On Tue, Aug 28, 2012 at 05:37:06PM +0900, Isaku Yamahata wrote: > > > >

Re: [ovs-dev] [PATCH v5 6/6] instruction/write-actions: add text parser/formater, of packet decoder/encoder

2012-08-30 Thread Isaku Yamahata
On Wed, Aug 29, 2012 at 01:16:55PM -0700, Ben Pfaff wrote: > On Wed, Aug 29, 2012 at 02:19:05AM +0900, Isaku Yamahata wrote: > > Signed-off-by: Isaku Yamahata > > I don't fully understand the purpose of this patch. Can you say a few > more words? If this patch confused

Re: [ovs-dev] [PATCH v5 2/6] instruction: support goto-table action

2012-08-30 Thread Isaku Yamahata
Thank you for review. I'll try to simplify the logic. Since I don't have strong opinion for textual form, I'll change its syntax as you suggest. thanks, On Tue, Aug 28, 2012 at 09:05:33PM -0700, Ben Pfaff wrote: > On Wed, Aug 29, 2012 at 02:19:01AM +0900, Isaku Yamahata wrote:

Re: [ovs-dev] [PATCH] python/ovs/poller: monkey patch to select.poll for eventlet/gevent

2012-08-30 Thread Isaku Yamahata
On Thu, Aug 30, 2012 at 12:53:50PM -0700, Ben Pfaff wrote: > On Fri, Aug 31, 2012 at 03:39:26AM +0900, Isaku Yamahata wrote: > > On Thu, Aug 30, 2012 at 11:25:25AM -0700, Ben Pfaff wrote: > > > But I think you might have implied that just switching from "poll" to &

[ovs-dev] [PATCH v2] python/ovs/pollar: use select.select instead of select.poll

2012-09-04 Thread Isaku Yamahata
.poll with select.select because using python means that performance isn't so important. Signed-off-by: Isaku Yamahata --- change v1 -> v2: - replace select.poll with select.select for simplicity instead of monkey patching --- python/ovs/poller.py | 71

[ovs-dev] [PATCH v3] python/ovs/pollar: use select.select instead of select.poll

2012-09-05 Thread Isaku Yamahata
.poll with select.select because using python means that performance isn't so important. Signed-off-by: Isaku Yamahata --- changes v2 -> v3: - minor nit picks change v1 -> v2: - replace select.poll with select.select for simplicity instead of monkey patching --- python

Re: [ovs-dev] [PATCH v2] python/ovs/pollar: use select.select instead of select.poll

2012-09-05 Thread Isaku Yamahata
On Tue, Sep 04, 2012 at 11:04:52PM -0700, Reid Price wrote: > Seems reasonable. Some notes inline, mostly nits and questions. Thank you for review. > +class _SelectSelect(object): > +""" select.poll emulation by using select.select. > +Only register and poll are needed at th

[ovs-dev] [PATCH 0/5] python/ovs: various fixes

2012-09-11 Thread Isaku Yamahata
This patch series addresses various random issues in ovs python binding. Please see commit log in each patches for details. Isaku Yamahata (5): python/ovs: socket_util uses select.poll python/ovs/db/idl: counter part of ovsdb_idl_add_table() to SchemaHelper python/ovs/db/idl: make

[ovs-dev] [PATCH 4/5] python/ovs/db/idl.py: Transaction._substitute doesn't handle list/tuple

2012-09-11 Thread Isaku Yamahata
", "20c2a046-ae7e-4453-a576-11034db24985"]]]} In the above case, uuid in "row" aren't replaced by "named-uuid" because the function doesn't look into elements of lists. When list/tuple is found, look into elements recursively. Si

[ovs-dev] [PATCH 3/5] python/ovs/db/idl: make SchemaHelper accept schema in json form

2012-09-11 Thread Isaku Yamahata
This is needed when using schema that was retrieved from ovsdb by get_schema method. Signed-off-by: Isaku Yamahata --- python/ovs/db/idl.py | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py index c2278ba..7fed0cf

[ovs-dev] [PATCH 1/5] python/ovs: socket_util uses select.poll

2012-09-11 Thread Isaku Yamahata
The changeset of ed815d9bd28422a490fe370d7804d24bcd676806 eliminated the use of select.poll for eventlet/gevent. It forgot to select.poll in socket_util. Signed-off-by: Isaku Yamahata --- python/ovs/poller.py |4 ++-- python/ovs/socket_util.py |3 ++- 2 files changed, 4 insertions

[ovs-dev] [PATCH 2/5] python/ovs/db/idl: counter part of ovsdb_idl_add_table() to SchemaHelper

2012-09-11 Thread Isaku Yamahata
add register_table method to SchemaHelper as counter part of ovsdb_idl_add_table(). Signed-off-by: Isaku Yamahata --- python/ovs/db/idl.py |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py index e4b98e8..c2278ba 100644

[ovs-dev] [PATCH 5/5] python/ovs/db/idl: getattr(Row) raises TypeError, not AttributeError.

2012-09-11 Thread Isaku Yamahata
etattr(Row instance, attrname, default value) doesn't work. This occurs when row._changes doesn't include attrname and row._data is None. So teach Row.__getattr__ _data=None case. Signed-off-by: Isaku Yamahata --- python/ovs/db/idl.py |3 +++ tests/ovsdb-idl.at |9 + tes

Re: [ovs-dev] [PATCH 2/5] python/ovs/db/idl: counter part of ovsdb_idl_add_table() to SchemaHelper

2012-09-12 Thread Isaku Yamahata
On Wed, Sep 12, 2012 at 11:45:12AM -0700, Ben Pfaff wrote: > On Wed, Sep 12, 2012 at 03:17:22PM +0900, Isaku Yamahata wrote: > > add register_table method to SchemaHelper as counter part of > > ovsdb_idl_add_table(). > > > > Signed-off-by: Isaku Yamahata > >

Re: [ovs-dev] [PATCH 3/5] python/ovs/db/idl: make SchemaHelper accept schema in json form

2012-09-12 Thread Isaku Yamahata
e. for example, The size of vswitch.ovsschema is 16988 bytes. Here is the updated one. >From b26ede3940487d631ed1f2fff296e2bf0120e918 Mon Sep 17 00:00:00 2001 Message-Id: In-Reply-To: References: From: Isaku Yamahata Date: Wed, 12 Sep 2012 14:35:11 +0900 Subject: [PATCH] python/ovs/db/idl: m

Re: [ovs-dev] [PATCH 4/5] python/ovs/db/idl.py: Transaction._substitute doesn't handle list/tuple

2012-09-12 Thread Isaku Yamahata
On Wed, Sep 12, 2012 at 08:32:15AM -0700, Reid Price wrote: > One note inline > > On Sep 11, 2555 BE, at 23:17, Isaku Yamahata wrote: > > > Since Transaction._substitute doesn't substitute elements of list/tuple, > > setting list references results in transact

Re: [ovs-dev] [PATCH 4/5] python/ovs/db/idl.py: Transaction._substitute doesn't handle list/tuple

2012-09-12 Thread Isaku Yamahata
On Wed, Sep 12, 2012 at 08:56:41PM -0700, Ben Pfaff wrote: > On Thu, Sep 13, 2012 at 11:30:23AM +0900, Isaku Yamahata wrote: > > From: Isaku Yamahata > > Date: Mon, 10 Sep 2012 18:21:20 +0900 > > Subject: [PATCH] python/ovs/db/idl.py: Transaction._substitute doesn

[ovs-dev] [PATCH] ovsdb/jsonrpc-server: ovsdb-server closes accepted connections immediately

2012-09-14 Thread Isaku Yamahata
need to restart DB / OVS on changing dscp value. - f125905cdd3dc0339ad968c0a70128807884b400 Allow configuring DSCP on controller and manager connections. 5 Signed-off-by: Isaku Yamahata --- There still remains an issue of ovsdb-server and vswitchd. When the setting of dscp is dynamicall

Re: [ovs-dev] [PATCH] ovsdb/jsonrpc-server: ovsdb-server closes accepted connections immediately

2012-09-19 Thread Isaku Yamahata
issue by reconnection. Comments inlined below. > On Fri, Sep 14, 2012 at 1:56 AM, Isaku Yamahata > wrote: > > Thus ovsdb-client aborts as follows. > > > # ovs-vsctl set-manager ptcp:6634 > > # ovsdb-client get-schema tcp:127.0.0.1:6634 > > 2012-

Re: [ovs-dev] [PATCH] ovsdb/jsonrpc-server: ovsdb-server closes accepted connections immediately

2012-09-21 Thread Isaku Yamahata
On Fri, Sep 21, 2012 at 01:20:52PM -0700, Mehak Mahajan wrote: > Hey Isaku, > > I apologize. I seem to have misunderstood the intent earlier. > The patch looks good to me. > > Regarding the issue of ovsdb-server and vswitchd, I am more inclined towards > your second option > "setsockopt(new dsc

[ovs-dev] [PATCH v2 0/5] dynamic change of DSCP for passive method

2012-09-26 Thread Isaku Yamahata
nd resolves disconnection issues. Isaku Yamahata (5): stream-provider: remove stale declaration of stream_set_dscp() lib/socket-util: export set_dscp() ovsdb: initialize struct ovsdb_jsonrpc_options::dscp uniformly lib/pstream: add set_dscp method ovsdb/jsonrpc-server: ovsdb-server cl

[ovs-dev] [PATCH v2 1/5] stream-provider: remove stale declaration of stream_set_dscp()

2012-09-26 Thread Isaku Yamahata
It isn't defined anywhere. Signed-off-by: Isaku Yamahata --- lib/stream-provider.h |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lib/stream-provider.h b/lib/stream-provider.h index 0708c72..9e91d61 100644 --- a/lib/stream-provider.h +++ b/lib/stream-provi

[ovs-dev] [PATCH v2 3/5] ovsdb: initialize struct ovsdb_jsonrpc_options::dscp uniformly

2012-09-26 Thread Isaku Yamahata
dscp member of struct ovsdb_jsonrpc_options isn't initialized uniformly. Initialize the member by ovsdb_jsonrpc_default_options uniformly. Signed-off-by: Isaku Yamahata --- ovsdb/jsonrpc-server.c |1 + ovsdb/ovsdb-server.c |1 - 2 files changed, 1 insertions(+), 1 deletions(-)

[ovs-dev] [PATCH v2 2/5] lib/socket-util: export set_dscp()

2012-09-26 Thread Isaku Yamahata
It will be used later for dynamic dscp change to listening socket. Signed-off-by: Isaku Yamahata --- lib/socket-util.c |2 +- lib/socket-util.h |1 + 2 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lib/socket-util.c b/lib/socket-util.c index 7c40ab8..e32c03d 100644 --- a

[ovs-dev] [PATCH v2 4/5] lib/pstream: add set_dscp method

2012-09-26 Thread Isaku Yamahata
Introduce set_dscp method to pstream. This will be used by dynamic dscp change of listening socket. Signed-off-by: Isaku Yamahata --- lib/stream-fd.c | 16 +++- lib/stream-fd.h |1 + lib/stream-provider.h |3 +++ lib/stream-ssl.c |8 lib

[ovs-dev] [PATCH v2 5/5] ovsdb/jsonrpc-server: ovsdb-server closes accepted connections immediately

2012-09-26 Thread Isaku Yamahata
Allow configuring DSCP on controller and manager connections. 5 Signed-off-by: Isaku Yamahata --- Changes v1 -> v2: - addressed listening socket --- lib/jsonrpc.c | 17 ++- lib/jsonrpc.h |3 +- ovsdb/jsonrpc-server.c | 20 ++- t

Re: [ovs-dev] [PATCH v2 3/5] ovsdb: initialize struct ovsdb_jsonrpc_options::dscp uniformly

2012-09-26 Thread Isaku Yamahata
On Wed, Sep 26, 2012 at 10:12:29AM -0700, Ben Pfaff wrote: > On Wed, Sep 26, 2012 at 04:12:07PM +0900, Isaku Yamahata wrote: > > dscp member of struct ovsdb_jsonrpc_options isn't initialized uniformly. > > Initialize the member by ovsdb_jsonrpc_default_options uniformly. &g

[ovs-dev] [PATCH v3 0/2] dynamic change of DSCP for passive method

2012-09-26 Thread Isaku Yamahata
27.0.0.1:6634: receive error: > Connection reset by peer > ovsdb-client: transaction failed (Connection reset by peer) This patch series addresses passive method case with DSCP dynamic change and resolves disconnection issues. Isaku Yamahata (2): lib/pstream: add set_dscp method ovsdb/

[ovs-dev] [PATCH v3 1/2] lib/pstream: add set_dscp method

2012-09-26 Thread Isaku Yamahata
Introduce set_dscp method to pstream. This will be used by dynamic dscp change of listening socket. Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - eliminated warning > cc1: warnings being treated as errors > ../lib/stream.c: In function ��pstream_set_dscp��: > ../lib/

[ovs-dev] [PATCH v3 2/2] ovsdb/jsonrpc-server: ovsdb-server closes accepted connections immediately

2012-09-26 Thread Isaku Yamahata
Allow configuring DSCP on controller and manager connections. 5 Signed-off-by: Isaku Yamahata --- Changes v2 -> v3: - bisectability with ovsdb_jsonrpc_default_options() Changes v1 -> v2: - addressed listening socket --- lib/jsonrpc.c | 17 ++- lib/jsonrpc.h

[ovs-dev] [PATCH v2 0/2] python/ovs: add tcp socket support

2012-09-27 Thread Isaku Yamahata
This patch series add tcp socket support to python ovs binding in addition to unix socket. Changes v1 -> v2: - unit test Isaku Yamahata (2): python/ovs/socket_util: add tcp related helper functions which will be used by tcp python/ovs/stream: teach stream.py tcp socket python/

[ovs-dev] [PATCH v2 1/2] python/ovs/socket_util: add tcp related helper functions which will be used by tcp

2012-09-27 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- Change v1 -> v2: - typo --- python/ovs/socket_util.py | 42 ++ 1 file changed, 42 insertions(+) diff --git a/python/ovs/socket_util.py b/python/ovs/socket_util.py index a978707..845511e 100644 --- a/python/

[ovs-dev] [PATCH v2 2/2] python/ovs/stream: teach stream.py tcp socket

2012-09-27 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- changes v1 -> v2: - unit test --- python/ovs/stream.py | 66 ++ tests/ovsdb-idl.at | 22 - 2 files changed, 77 insertions(+), 11 deletions(-) diff --git a/python/ovs/stream.py b/python/

[ovs-dev] [PATCH RESEND] python/ovs/db/idl: getattr(Row) raises TypeError, not AttributeError.

2012-09-27 Thread Isaku Yamahata
etattr(Row instance, attrname, default value) doesn't work. This occurs when row._changes doesn't include attrname and row._data is None. So teach Row.__getattr__ _data=None case. Signed-off-by: Isaku Yamahata --- python/ovs/db/idl.py |3 +++ tests/ovsdb-idl.at |9 + tes

[ovs-dev] [PATCH] vswitch: allow to specify ofport when creating port

2012-10-01 Thread Isaku Yamahata
For stable bridge configuration, sometimes it is desirable to be able to add-port with port number specified. This patch implements it and it can be done by setting ofport column of Interface table like ovs-vsctl add-port s1 eth2 -- set Interface eth2 ofport=10 Signed-off-by: Isaku Yamahata

Re: [ovs-dev] [PATCH] vswitch: allow to specify ofport when creating port

2012-10-01 Thread Isaku Yamahata
On Mon, Oct 01, 2012 at 11:42:36PM -0700, Justin Pettit wrote: > On Oct 1, 2012, at 10:08 AM, Ben Pfaff wrote: > > > But there's another issue too. As part of the ongoing effort to > > upstream tunneling to the Linux kernel, Justin is currently reworking > > how ports are assigned to datapaths.

[ovs-dev] [PATCH] ofproto/ofproto.c: After port_mod + barrier, port config may not be updated

2012-10-02 Thread Isaku Yamahata
erate the event when OFPC_LINK_DOWN flag is changed. Signed-off-by: Isaku Yamahata --- I can't find any explicit description in the spec about whether to generate port_status event when OFPC_ flags are changed. So which way do we like? generate port_status event or not? Anyway I think port_status even

[ovs-dev] [PATCH v6 0/2] instruction apply-actions/goto-table support

2012-10-04 Thread Isaku Yamahata
ction delimiter thanks, Isaku Yamahata (2): instruction: support goto-table action instruction/clear-actions: string parser/formater, of packet decoder/encoder lib/ofp-actions.c| 109 ++- lib/ofp-actions.h| 28 -- lib/ofp-parse.c

[ovs-dev] [PATCH 2/2] instruction/clear-actions: string parser/formater, of packet decoder/encoder

2012-10-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v5 - manual rebase - remove check of zero padding v4 - clear-actions part is split outed. - check zero padding - man page --- lib/ofp-actions.c| 28 ++-- lib/ofp-actions.h| 13 - lib/ofp-parse.c

[ovs-dev] [PATCH 1/2] instruction: support goto-table action

2012-10-04 Thread Isaku Yamahata
Signed-off-by: Isaku Yamahata --- v6 - manual rebase - simplify logic - remove all zero check - update unit tests v5 - manual rebase v4 - squashed goto-table instruction part into single patch - only introduce goto-table. Other instruction will be addressed by other patches. - check zero

Re: [ovs-dev] [PATCH v2 5/5] ovsdb/jsonrpc-server: ovsdb-server closes accepted connections immediately

2012-10-05 Thread Isaku Yamahata
h.org/pipermail/dev/2012-September/021477.html thanks, On Thu, Oct 04, 2012 at 11:51:55PM -0700, Mehak Mahajan wrote: > Hey Isaku, > > Thanks for the patch. > I have applied it to master. > > thanx! > mehak > > On Wed, Sep 26, 2012 at 12:12 AM, Isaku Yamahata > wrote: &

Re: [ovs-dev] [PATCH 1/4] datapath: Add basic MPLS support to kernel

2012-10-09 Thread Isaku Yamahata
On Tue, Oct 09, 2012 at 04:08:32PM +0900, Simon Horman wrote: > +static int push_mpls(struct sk_buff *skb, const struct ovs_action_push_mpls > *mpls) > +{ > + u32 l2_size; > + __be32 *new_mpls_label; > + > + if (skb_cow_head(skb, MPLS_HLEN) < 0) { > + kfree_skb(skb); > +

Re: [ovs-dev] [PATCH 2/4] user-space datapath: Add basic MPLS support to kernel

2012-10-09 Thread Isaku Yamahata
On Tue, Oct 09, 2012 at 04:08:33PM +0900, Simon Horman wrote: > This is to match the kernel implementation in the > patch "datapath: Add basic MPLS support to kernel" > by Leo Alterman. > > Cc: Leo Alterman > Signed-off-by: Simon Horman > > --- > > v2.2 > * No change > > v2.1 > * Initial post

Re: [ovs-dev] [PATCH 4/4] User-Space MPLS actions and matches

2012-10-09 Thread Isaku Yamahata
On Tue, Oct 09, 2012 at 04:08:35PM +0900, Simon Horman wrote: > @@ -938,6 +990,15 @@ mf_is_value_valid(const struct mf_field *mf, const union > mf_value *value) > case MFF_IPV6_LABEL: > return !(value->be32 & ~htonl(IPV6_LABEL_MASK)); > > +case MFF_MPLS_LABEL: > +return

Re: [ovs-dev] [PATCH 1/4] datapath: Add basic MPLS support to kernel

2012-10-10 Thread Isaku Yamahata
On Wed, Oct 10, 2012 at 07:31:25PM +0900, Simon Horman wrote: > On Wed, Oct 10, 2012 at 11:57:15AM +0900, Isaku Yamahata wrote: > > On Tue, Oct 09, 2012 at 04:08:32PM +0900, Simon Horman wrote: > > > +static int push_mpls(struct sk_buff *skb, const struct > > >

Re: [ovs-dev] [PATCH 4/4] User-Space MPLS actions and matches

2012-10-11 Thread Isaku Yamahata
On Thu, Oct 11, 2012 at 11:14:40AM +0900, Simon Horman wrote: > diff --git a/lib/odp-util.c b/lib/odp-util.c > index 5a1d31c..5ffbaef 100644 > --- a/lib/odp-util.c > +++ b/lib/odp-util.c ... > @@ -1911,6 +2045,33 @@ commit_vlan_action(const struct flow *flow, struct > flow *base, > } > > stati

Re: [ovs-dev] [PATCH 4/4] User-Space MPLS actions and matches

2012-10-11 Thread Isaku Yamahata
On Fri, Oct 12, 2012 at 09:04:09AM +0900, Simon Horman wrote: > On Thu, Oct 11, 2012 at 10:10:39PM +0900, Isaku Yamahata wrote: > > On Thu, Oct 11, 2012 at 11:14:40AM +0900, Simon Horman wrote: > > > diff --git a/lib/odp-util.c b/lib/odp-util.c > > > index 5a1d31c..5ff

Re: [ovs-dev] [PATCH 4/4] User-Space MPLS actions and matches

2012-10-11 Thread Isaku Yamahata
On Fri, Oct 12, 2012 at 10:24:24AM +0900, Isaku Yamahata wrote: > On Fri, Oct 12, 2012 at 09:04:09AM +0900, Simon Horman wrote: > > On Thu, Oct 11, 2012 at 10:10:39PM +0900, Isaku Yamahata wrote: > > > On Thu, Oct 11, 2012 at 11:14:40AM +0900, Simon Horman wrote: > >

Re: [ovs-dev] [PATCH 2/3] ofproto: Do not add flow on flow mod if new_cookie is UINT64_MAX

2012-10-12 Thread Isaku Yamahata
On Fri, Oct 12, 2012 at 09:26:28AM +0900, Simon Horman wrote: > Internally a new_cookie value UINT64_MAX is used for > an OpenFlow 1.2 flow mod whose command is not Add. > Open Flow 1.2 does not permit adding flows for such commands. > Also, UINT64_MAX is a prohibited cookie value, and the > existi

Re: [ovs-dev] [PATCH v6 0/2] instruction apply-actions/goto-table support

2012-10-15 Thread Isaku Yamahata
Ping? What can I do to make progress? On Fri, Oct 05, 2012 at 03:56:55PM +0900, Isaku Yamahata wrote: > This patch adds instruction OF11 apply-actions/goto-table supports. > Write-actions support is on my TODO. > > Change v5 -> v6: > - revised syntax > - eliminated

Re: [ovs-dev] [PATCH v2 0/2] python/ovs: add tcp socket support

2012-10-15 Thread Isaku Yamahata
Ping? What's the blocker? If the use of decorator is the issue, I'll rewrite it without decorator. On Thu, Sep 27, 2012 at 09:20:53AM -0700, Ben Pfaff wrote: > On Thu, Sep 27, 2012 at 06:28:06PM +0900, Isaku Yamahata wrote: > > This patch series add tcp socket support to py

Re: [ovs-dev] [PATCH v2 0/2] python/ovs: add tcp socket support

2012-10-15 Thread Isaku Yamahata
0ce1a6b26cf3 Mon Sep 17 00:00:00 2001 Message-Id: From: Isaku Yamahata Date: Tue, 16 Oct 2012 06:46:07 +0900 Subject: [PATCH] python/ovs/socket_util: don't use Exception, but ValueError 67656b9ff297f305b3bfcca2868e8e870e108283 used Exception, but it should be more specific error as R

Re: [ovs-dev] [PATCH 4/4] User-Space MPLS actions and matches

2012-10-15 Thread Isaku Yamahata
On Mon, Oct 15, 2012 at 02:42:27PM +0900, Simon Horman wrote: > On Fri, Oct 12, 2012 at 01:05:05PM +0900, Simon Horman wrote: > > On Fri, Oct 12, 2012 at 10:24:24AM +0900, Isaku Yamahata wrote: > > > On Fri, Oct 12, 2012 at 09:04:09AM +0900, Simon Horman wrote: > > > &

Re: [ovs-dev] [PATCH] ofproto/ofproto.c: After port_mod + barrier, port config may not be updated

2012-10-16 Thread Isaku Yamahata
On Tue, Oct 16, 2012 at 10:23:05AM -0700, Ben Pfaff wrote: > On Tue, Oct 02, 2012 at 07:42:12PM +0900, Isaku Yamahata wrote: > > The following OF packets may produce the wrong result as follows. > > It depends on how ovs-vswitchd serves OF packets. Sending the OF packets > >

Re: [ovs-dev] [PATCH] ofproto/ofproto.c: After port_mod + barrier, port config may not be updated

2012-10-16 Thread Isaku Yamahata
On Tue, Oct 16, 2012 at 11:08:15AM -0700, Ben Pfaff wrote: > Do you have any patches out for review right now? I think that I am > caught up. No. Thanks. -- yamahata ___ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev

Re: [ovs-dev] [PATCH] stream.py: Don't use class decorators.

2012-10-17 Thread Isaku Yamahata
Hi. The patch looks reasonable. If it isn't used as decorator, returning class is not necessary. I'll send a patch to fix it. On Wed, Oct 17, 2012 at 10:04:49AM -0700, Justin Pettit wrote: > I went ahead and pushed the change, since it was blocking our internal > testing. Please let me know if

  1   2   3   >