Re: [ovs-discuss] Flow removed message bug

2011-02-17 Thread Derek Cormier
Yes, that's true. I though about using the cookie field, but I want to leave that open for a future use. My main concern is that it goes against the OpenFlow protocol. - Derek On 02/18/2011 12:05 PM, Justin Pettit wrote: What about flow cookies? They're 64-bit identifiers that exist in both

Re: [ovs-discuss] Flow removed message bug

2011-02-17 Thread Justin Pettit
What about flow cookies? They're 64-bit identifiers that exist in both the Flow Mod and Flow Removed messages. --Justin On Feb 17, 2011, at 6:50 PM, Derek Cormier wrote: > Sure, let me explain the problem. I am maintaining a copy of the flows in > memory outside of the controller (Nox). When

Re: [ovs-discuss] Flow removed message bug

2011-02-17 Thread Derek Cormier
Sure, let me explain the problem. I am maintaining a copy of the flows in memory outside of the controller (Nox). When a flow is removed, I need to remove it from the stored flows. However, if the wildcards are not exact in the removed message, I cannot identify exactly which flow it is. I coul

Re: [ovs-discuss] Flow removed message bug

2011-02-17 Thread Justin Pettit
Hi, Derek. I just wanted to let you know that we're still discussing how to best handle this. How difficult is it from your perspective if OVS continued to behave in this manner? There was a time when this normalization was more important from a performance perspective than it is now, so we m

Re: [ovs-discuss] No packet-in with ofp_action_output + OFPP_CONTROLLER

2011-02-17 Thread Ben Pfaff
Thanks for testing. I pushed this to our "master" branch. On Thu, Feb 17, 2011 at 03:44:18PM -0800, kk yap wrote: > Perfect!. That works. Thanks for the patch. > > Regards > KK > > On 17 February 2011 15:06, Ben Pfaff wrote: > > I found the problem. > > > > Please try this patch: > > > > --8

Re: [ovs-discuss] No packet-in with ofp_action_output + OFPP_CONTROLLER

2011-02-17 Thread kk yap
Perfect!. That works. Thanks for the patch. Regards KK On 17 February 2011 15:06, Ben Pfaff wrote: > I found the problem. > > Please try this patch: > > --8<--cut here-->8-- > > From: Ben Pfaff > Date: Thu, 17 Feb 2011 15:04:44 -0800 > Subject:

Re: [ovs-discuss] No packet-in with ofp_action_output + OFPP_CONTROLLER

2011-02-17 Thread Ben Pfaff
I found the problem. Please try this patch: --8<--cut here-->8-- From: Ben Pfaff Date: Thu, 17 Feb 2011 15:04:44 -0800 Subject: [PATCH] ofproto: Fix behavior when special_cb not present (as with ovs-openflowd). The special_cb hook allows ofproto

Re: [ovs-discuss] No packet-in with ofp_action_output + OFPP_CONTROLLER

2011-02-17 Thread Ben Pfaff
On Thu, Feb 17, 2011 at 01:40:21PM -0800, kk yap wrote: > I cannot seem to connect with vos-vswitchd (ovs-vswitchd -v > tcp:127.0.0.1:6633). It is giving me protocol error for some reason. The command line argument for ovs-vswitchd is the OVSDB server to which it should connect over JSON-RPC. It

Re: [ovs-discuss] No packet-in with ofp_action_output + OFPP_CONTROLLER

2011-02-17 Thread kk yap
Hi, I actually did reboot the machine and re-insert the datapath on that try, so the version should be consistent. I cannot seem to connect with vos-vswitchd (ovs-vswitchd -v tcp:127.0.0.1:6633). It is giving me protocol error for some reason. Feb 17 13:37:22|00026|poll_loop|DBG|[POLLOUT] on fd

Re: [ovs-discuss] No packet-in with ofp_action_output + OFPP_CONTROLLER

2011-02-17 Thread Ben Pfaff
On Thu, Feb 17, 2011 at 11:37:06AM -0800, kk yap wrote: > I tried in vain to replicate your success with ovs-controller. My > ovs-openflowd is showing the following warnings. Not sure what it > means One possible reason is that the Open vSwitch kernel module and userspace do not match, that is,

Re: [ovs-discuss] No packet-in with ofp_action_output + OFPP_CONTROLLER

2011-02-17 Thread kk yap
Hi Ben, I tried in vain to replicate your success with ovs-controller. My ovs-openflowd is showing the following warnings. Not sure what it means Feb 17 11:31:39|00060|dpif|WARN|system@dp0: failed to flow_get (No such file or directory) in_port(2),eth(src=00:14:22:72:38:d1,dst=ff:ff:ff:ff:ff:f

Re: [ovs-discuss] No packet-in with ofp_action_output + OFPP_CONTROLLER

2011-02-17 Thread Ben Pfaff
On Wed, Feb 16, 2011 at 05:31:48PM -0800, kk yap wrote: > I am OVS kernel datapath with ovs-openflowd. I have installed the > following flow entries. > > cookie=0x0, duration=292.116s, table_id=0, n_packets=0, n_bytes=0, > priority=24576,icmp actions=CONTROLLER:1500 > cookie=0x0, duration=292.1

Re: [ovs-discuss] get vlan id of a port

2011-02-17 Thread Ben Pfaff
On Thu, Feb 17, 2011 at 8:04 AM, Xavier COUDIN wrote: > Yes, we are talking about the same document, > > So I can not see what you were talking about: > >>> "ovs-vsctl list port " will list all the properties of port >>> , including its VLAN ID. > > I can only find (page 6) : > list-ports bridge

Re: [ovs-discuss] get vlan id of a port

2011-02-17 Thread Ben Pfaff
On Thu, Feb 17, 2011 at 1:01 AM, Xavier COUDIN wrote: > But I can find none of thoses instructions in the documentation that is > downloadable on the website (  (file : "ovsman.cgi.pdf" , dated november > 2009). I see full documentation for ovs-vsctl here: http://openvswitch.org/cgi-bin/ovsman.cg

Re: [ovs-discuss] get vlan id of a port

2011-02-17 Thread Xavier COUDIN
Thank you Ben for your answer, But I can find none of thoses instructions in the documentation that is downloadable on the website ( (file : "ovsman.cgi.pdf" , dated november 2009). Is this man-page outdated ? Are those instructions new features ? Ben Pfaff a écrit : On Tue, Feb 15, 201