[ovs-discuss] Meter IDs and meter cleanup on disconnect

2014-09-20 Thread Gur Stavi
Hi all, I have 2 questions about meters: If OVS loses connection to controller it delete active flows but does not delete active meters. Shouldn't meters be deleted as well. Meters are stored in an array in ofproto where meter_id is used as an index into the array. The datapath need to pre-dec

Re: [ovs-discuss] any idea to change the link speed?

2014-09-20 Thread Ben Pfaff
This isn't an Open vSwitch question--Open vSwitch doesn't implement the virtual NICs. On Sat, Sep 20, 2014 at 04:06:56PM -0400, tim huang wrote: > yes, I can understand. However, I'm not working on the production or real > network but trying to implement some of my thoughts with openvswitch and I

Re: [ovs-discuss] any idea to change the link speed?

2014-09-20 Thread tim huang
yes, I can understand. However, I'm not working on the production or real network but trying to implement some of my thoughts with openvswitch and I only need to set the link speed lower to create artificial congestion in the network. >From my understanding, the only way to set the openvswitch por

Re: [ovs-discuss] any idea to change the link speed?

2014-09-20 Thread Ben Pfaff
On Sat, Sep 20, 2014 at 03:38:14PM -0400, tim huang wrote: > Does this mean the virtual NIC doesn't support changing the link speed? I > asked one of my friends he said the command works fine with his physical > NIC. Cause I'm using ubuntu as the virtual machine with my Mac, I don't > have any phys

Re: [ovs-discuss] any idea to change the link speed?

2014-09-20 Thread tim huang
Hi Ben, Thanks for your reply. I tried on my ubuntu. The ethtool also doesn't work. Here is the output. sudo ethtool -s s1-eth1 speed 100 Cannot set new settings: Operation not supported not setting speed Does this mean the virtual NIC doesn't support changing the link speed? I asked one of my

Re: [ovs-discuss] any idea to change the link speed?

2014-09-20 Thread Ben Pfaff
On Sat, Sep 20, 2014 at 02:22:18PM -0400, tim huang wrote: > Is there any way to change to link_speed ? I tried a lot command like > sudo ovs-vsctl add-port s1 eth0 link_speed=1. It doesn't work. I also > found some mails 1 or 2 years ago asking same question, the reply for the > question at th

[ovs-discuss] any idea to change the link speed?

2014-09-20 Thread tim huang
Hi guys, When I used the sudo ovs-vsctl list interface, I can get the parameters of the interface something like this. _uuid : 921d913d-d22b-471e-a179-d540bd92dbcd admin_state : up cfm_fault : [] cfm_fault_status: [] cfm_health : [] cfm_mpid

Re: [ovs-discuss] add meter problem - Open vSwitch

2014-09-20 Thread Ben Pfaff
On Thu, Sep 18, 2014 at 05:04:51PM -0700, est B.y wrote: > I installed Open vSwitch version 2.3 to get support for the Openflow 1.3 > Meters feature. Though when I try > and add a meter I get the OUT_OF_METERS error: $ sudo ovs-ofctl -O OpenFlow13 > add-meter br0 meter=1,kbps,band=type=drop,rate=

Re: [ovs-discuss] question about ovs kernel version

2014-09-20 Thread Ben Pfaff
On Fri, Sep 19, 2014 at 03:10:58PM +0800, ychen wrote: >I have met a strange phenomenon. > openvswitch FAQ says that ovs version 2.1.x only compatible with linux > kernel version 2.6.32 to 3.11, > and ovs version 1.11.x only compatible with linux kernel version 2.6.32 to > 3.8 The table

[ovs-discuss] question about ovs kernel version

2014-09-20 Thread ychen
hi: I have met a strange phenomenon. openvswitch FAQ says that ovs version 2.1.x only compatible with linux kernel version 2.6.32 to 3.11, and ovs version 1.11.x only compatible with linux kernel version 2.6.32 to 3.8 Here is my enviroment: [root@l3vpn2 linux-3.14.19]# cat /etc/issue

[ovs-discuss] add meter problem - Open vSwitch

2014-09-20 Thread est B.y
I installed Open vSwitch version 2.3 to get support for the Openflow 1.3 Meters feature. Though when I try and add a meter I get the OUT_OF_METERS error: $ sudo ovs-ofctl -O OpenFlow13 add-meter br0 meter=1,kbps,band=type=drop,rate=3 OFPT_ERROR (OF1.3) (xid=0x2): OFPMMFC_OUT_OF_METERS OFPT_ME