Re: [Ryu-devel] [PATCH 0/6] switch from python-gflags to openstack cfg

2013-02-13 Thread FUJITA Tomonori
On Tue, 12 Feb 2013 17:20:55 +0900 YAMAMOTO Takashi wrote: > openstack cfg.py is more flexible wrt schema modifications. > eg. it allows introducing options at module import time. > > YAMAMOTO Takashi (6): > import cfg.py from oslo-incubator > use openstack.common.cfg instead of gflags > a

Re: [Ryu-devel] Recent changes to the event system: How to handle dispatcher changes

2013-02-13 Thread FUJITA Tomonori
On Wed, 13 Feb 2013 15:08:17 +0100 Jeremias Blendin wrote: > many changes to ryu where applied the last days. One of them Sorry, I know I have to write some docs about them... try to do so soon. > removed the dispatcher in favor of a new system. Most of my code > still works, however I cannot r

Re: [Ryu-devel] [PATCH] controller: fix send_q draining

2013-02-13 Thread FUJITA Tomonori
On Wed, 13 Feb 2013 13:23:40 +0900 YAMAMOTO Takashi wrote: > when stopping the sender thread, ensure that no one is going to block > on send_q. otherwise a ryu app who wants to do send_msg on the datapath > can block on the queue forever if the queue is full. > > Signed-off-by: YAMAMOTO Takashi

Re: [Ryu-devel] [PATCH] halve the number of recv and header parsing by simplifying _recv_loop

2013-02-13 Thread YAMAMOTO Takashi
hi, > On Wed, 13 Feb 2013 16:10:17 +0900 > YAMAMOTO Takashi wrote: > >> cbench results before the change: >> cbench >> RESULT: 16 switches 15 tests min/max/avg/stdev = >> 8257.99/8485.97/8348.71/70.46 responses/s >> cbench -t >> RESULT: 16 switches 15 tests min/max/avg/stdev = >> 8050.82/20660

Re: [Ryu-devel] [PATCH] halve the number of recv and header parsing by simplifying _recv_loop

2013-02-13 Thread FUJITA Tomonori
On Wed, 13 Feb 2013 16:10:17 +0900 YAMAMOTO Takashi wrote: > cbench results before the change: > cbench > RESULT: 16 switches 15 tests min/max/avg/stdev = > 8257.99/8485.97/8348.71/70.46 responses/s > cbench -t > RESULT: 16 switches 15 tests min/max/avg/stdev = > 8050.82/20660.79/14935.69/3820.

[Ryu-devel] Recent changes to the event system: How to handle dispatcher changes

2013-02-13 Thread Jeremias Blendin
Hi, many changes to ryu where applied the last days. One of them removed the dispatcher in favor of a new system. Most of my code still works, however I cannot register handlers for dispatcher changes any more. I used the example code from event_dumper.py: @set_ev_cls(dispatcher.EventDispatcherCh

Re: [Ryu-devel] [PATCH] of1.2: fix OFPQueueProp parser

2013-02-13 Thread FUJITA Tomonori
On Wed, 13 Feb 2013 10:59:37 +0900 KONDOH Tasuku wrote: > - add OFP_QUEUE_PROP_HEADER_SIZE to offset of argument of propreties class. > > Signed-off-by: KONDOH Tasuku > --- > ryu/ofproto/ofproto_v1_2_parser.py|1 + > ryu/tests/unit/ofproto/test_parser_v12.py | 110 > +

[Ryu-devel] Simple layer-2 learning switch for OFP 1.3

2013-02-13 Thread Krzysztof Rutka
Hi guys, While working on LINC I wrote this module for Ryu: https://github.com/FlowForwarding/LINC-Switch/blob/master/scripts/ryu/l2_switch_v1_3.py It's a simple layer-2 learning switch controller logic using OpenFlow Protocol 1.3. Feel free to include it (with or without changes) in Ryu if y

Re: [Ryu-devel] [PATCH v3] controller/ofp_handler: improve version negotiation

2013-02-13 Thread FUJITA Tomonori
On Wed, 13 Feb 2013 12:06:19 +0900 Isaku Yamahata wrote: > - fix string concatenation. Needs surrounding paren. > - more version checks > - make hello_failed private. (adding "_" prefix) > > Signed-off-by: Isaku Yamahata > --- > ryu/controller/ofp_handler.py | 90 > +