Re: [ovs-discuss] Failed to add ovs bridge

2017-05-11 Thread fukaige
Nothing seems unusual in setup. Just hit this by accident. I am checking that if there is any chance failing to delete the netdev. > -Original Message- > From: Ben Pfaff [mailto:b...@ovn.org] > Sent: Friday, May 12, 2017 10:50 AM > To: fukaige > Cc: ovs-discuss@openvswitch.org;

Re: [ovs-discuss] Possible issue/bug at Open vSwitch and ovsdb.

2017-05-11 Thread Andy Zhou
I posted the fix to the mailing list. The patch now include a unit test to cover this bug. https://mail.openvswitch.org/pipermail/ovs-dev/2017-May/332362.html On Thu, May 11, 2017 at 1:16 PM, Andy Zhou wrote: > On Thu, May 11, 2017 at 2:42 AM, Tulio Ribeiro >

Re: [ovs-discuss] OVS conntrack

2017-05-11 Thread Matt Warner
On Thu, May 11, 2017 at 4:28 PM, Joe Stringer wrote: > On 11 May 2017 at 13:38, Matt Warner wrote: > > Good afternoon. I've been experimenting with OVS and the conntrack > feature. > > I'd like to be able to use conntrack to maintain state. Specifically,

Re: [ovs-discuss] Failed to add ovs bridge

2017-05-11 Thread fukaige
I am not using STP/RSTP.I saw the bug fix you mentioned, seems it is irrelevant to my problem. May be there is some race condition lead to deleting netdev in netdev_shash. But, I cannot figure it out right now. The occurrence probability is very low. I just hit this for three times in two

Re: [ovs-discuss] Anyway to move/load data between ct_mark/ct_label and field/register ?

2017-05-11 Thread Ben Pfaff
What's your high-level goal? Most fields will be the same on every trip through the connection tracker for a given (half-)connection, so there would be limited value in that. On Thu, May 11, 2017 at 02:37:13PM +, Zang MingJie wrote: > It can only set to immediately value, I want to copy some

Re: [ovs-discuss] OVS conntrack

2017-05-11 Thread Joe Stringer
On 11 May 2017 at 13:38, Matt Warner wrote: > Good afternoon. I've been experimenting with OVS and the conntrack feature. > I'd like to be able to use conntrack to maintain state. Specifically, in the > man pages it says that this configuration should allow traffic to

Re: [ovs-discuss] Failed to add ovs bridge

2017-05-11 Thread Ben Pfaff
Are you aware of anything unusual in your setup? We have not had any similar reports. On Fri, May 12, 2017 at 01:34:46AM +, fukaige wrote: > I am not using STP/RSTP.I saw the bug fix you mentioned, seems it is > irrelevant to my problem. > May be there is some race condition lead to

Re: [ovs-discuss] Anyway to move/load data between ct_mark/ct_label and field/register ?

2017-05-11 Thread Zang MingJie
It can only set to immediately value, I want to copy some field into ct_label On Thu, May 11, 2017, 21:30 Ben Pfaff wrote: > On Thu, May 11, 2017 at 11:11:58AM +, Zang MingJie wrote: > > I wonder if there is any way to move data from or to ct_label like nicira > > move or load

Re: [ovs-discuss] [openvswitch 2.5.2] netlink: Unknown conntrack attr (2)

2017-05-11 Thread Ben Pfaff
On Thu, May 11, 2017 at 03:34:14PM +0800, mhzhang wrote: > I just want to conntrack tcp flows for testing. But when I put the follow > command into CLI, > > ovs-ofctl add-flow "in_port=1, tcp, ct_state=-trk, > action=ct(table=1)", > > with few seconds gone, I get such output info at CLI, >

Re: [ovs-discuss] ovs version with openflow meter support

2017-05-11 Thread Ben Pfaff
On Thu, May 11, 2017 at 05:07:19PM +0530, Thiyagu Subramanyam wrote: > Hi, >I am trying to add meter to ovs-bridge, but its failing with the > following error > "OFPT_ERROR (OF1.3) (xid=0x2): OFPMMFC_OUT_OF_METERS" > > OVS version which i am using is 2.3.1. > Can anyone tell me whether

Re: [ovs-discuss] Anyway to move/load data between ct_mark/ct_label and field/register ?

2017-05-11 Thread Ben Pfaff
On Thu, May 11, 2017 at 11:11:58AM +, Zang MingJie wrote: > I wonder if there is any way to move data from or to ct_label like nicira > move or load extension ? > > I want to store some value of packet field or register to ct_lable on the > first packet, and the load ct_label to some fields

Re: [ovs-discuss] Failed to add ovs bridge

2017-05-11 Thread Ben Pfaff
Are you using STP or RSTP? There's a bug fix related to them on branch-2.5. On Thu, May 11, 2017 at 11:11:02AM +, fukaige wrote: > Hi all, > > Occasionally, I get error when creating a bridge using “ovs-vsctl add-br > br-eth” > > > ovs-vsctl: Error detected while setting up 'br-eth'.

[ovs-discuss] [openvswitch 2.5.2] netlink: Unknown conntrack attr (2)

2017-05-11 Thread mhzhang
Hi, I just want to conntrack tcp flows for testing. But when I put the follow command into CLI, ovs-ofctl add-flow "in_port=1, tcp, ct_state=-trk, action=ct(table=1)", with few seconds gone, I get such output info at CLI, "netlink: Unknown conntrack attr (2) openvswitch: netlink: Flow

Re: [ovs-discuss] a struct to keep flow scores

2017-05-11 Thread Ben Pfaff
OVS already has mechanisms for this kind of thing. For datapath flows, OVS already evicts flows based on these criteria. For OpenFlow flows, OVS already supports approximate-LRU eviction. I'm not sure what you're going to additionally get out of adding more to these mechanisms. Do you have a

Re: [ovs-discuss] a struct to keep flow scores

2017-05-11 Thread Ben Pfaff
OK. I'm not certain why you need new high-level data structures for this. The code already propagates information from the datapath into the OpenFlow flows and I think that you can just follow the existing pattern to convey your new data. On Thu, May 11, 2017 at 01:50:32PM +, Avi Cohen (A)

Re: [ovs-discuss] Flow Entry Statistics Trigger support

2017-05-11 Thread Ben Pfaff
On Thu, May 11, 2017 at 12:08:25PM +0530, Rohith Basavaraja wrote: > Wanted to check whether anyone working on the Flow Entry Statistics Trigger > support in OVS or this work not started yet?.If anyone started working on > this what is targeted OVS release this feature will be supported. There's

Re: [ovs-discuss] a struct to keep flow scores

2017-05-11 Thread Avi Cohen (A)
Thanks Ben, We need to test another eviction criteria - not LRU, but learn the flows other scores such as flow effective time / flow usage , and to do eviction based on these scores Best Regards avi > -Original Message- > From: Ben Pfaff [mailto:b...@ovn.org] > Sent: Thursday, 11 May,

[ovs-discuss] how to connect two open vSwitch on openwrt with one controller

2017-05-11 Thread 黄 坚基
Hi: Now I have two openwrt routers which OVS is in them, I want to connect them to a same controller,now the controller is connected to router1 ,but my controller can’t connect router2 through router1. I have try the patch port,it seems not work Could any one do me a

[ovs-discuss] Failed to add ovs bridge

2017-05-11 Thread fukaige
Hi all, Occasionally, I get error when creating a bridge using “ovs-vsctl add-br br-eth” ovs-vsctl: Error detected while setting up 'br-eth'. See ovs-vswitchd log for details. Ovs-vswitched log is below: 2017-05-11T03:45:25.293Z|00026|ofproto_dpif|INFO|system@ovs-system: Datapath supports

[ovs-discuss] Anyway to move/load data between ct_mark/ct_label and field/register ?

2017-05-11 Thread Zang MingJie
Hi all: I wonder if there is any way to move data from or to ct_label like nicira move or load extension ? I want to store some value of packet field or register to ct_lable on the first packet, and the load ct_label to some fields of the following packet.

Re: [ovs-discuss] Possible issue/bug at Open vSwitch and ovsdb.

2017-05-11 Thread Tulio Ribeiro
Hi Andy, I did the patch but now the command $sudo ovs-vsctl add-br s1 stuck (the bridge is added but the command does not return). The command sudo ovs-vsctl set-controller s1 tcp:192.168.1.215:6653 do not return as well. The role of a bridge is not defined, which means, the initial role

[ovs-discuss] (no subject)

2017-05-11 Thread fukaige
Hi all, Occasionally, I get error when creating a bridge using “ovs-vsctl add-br br-eth” ovs-vsctl: Error detected while setting up 'br-eth'. See ovs-vswitchd log for details. Ovs-vswitched log is below: 2017-05-11T03:45:25.293Z|00026|ofproto_dpif|INFO|system@ovs-system: Datapath supports

Re: [ovs-discuss] Possible issue/bug at Open vSwitch and ovsdb.

2017-05-11 Thread Andy Zhou
On Thu, May 11, 2017 at 2:42 AM, Tulio Ribeiro wrote: > Hi Andy, > > I did the patch but now the command $sudo ovs-vsctl add-br s1 stuck (the > bridge is added but the command does not return). > > The command sudo ovs-vsctl set-controller s1 tcp:192.168.1.215:6653 do