Re: [ovs-discuss] Assign specific OpenFlow port no. when adding port

2014-09-17 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 07:16:10PM -0700, Nikhil Handigol wrote: > Is there a way to assign a specific OpenFlow port no. when adding a port to > an OVS bridge via "ovs-vsctl add-port" (or any other command)? Yes, see the documentation for ofport_request in ovs-vswitchd.conf.db(5).

[ovs-discuss] Assign specific OpenFlow port no. when adding port

2014-09-17 Thread Nikhil Handigol
Is there a way to assign a specific OpenFlow port no. when adding a port to an OVS bridge via "ovs-vsctl add-port" (or any other command)? Thanks, -/\/ ___ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss

Re: [ovs-discuss] Error trying to add flow with strip_vlan action

2014-09-17 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 03:03:11PM -0700, Nikhil Handigol wrote: > On Wed, Sep 17, 2014 at 2:22 PM, Ben Pfaff wrote: > > > On Wed, Sep 17, 2014 at 11:49:26AM -0700, Nikhil Handigol wrote: > > > I've setup an OVS bridge br0 with the following commands: > > > $ sudo ovs-vsctl add-br br0 > > > $ sud

Re: [ovs-discuss] Error trying to add flow with strip_vlan action

2014-09-17 Thread Nikhil Handigol
On Wed, Sep 17, 2014 at 2:22 PM, Ben Pfaff wrote: > On Wed, Sep 17, 2014 at 11:49:26AM -0700, Nikhil Handigol wrote: > > I've setup an OVS bridge br0 with the following commands: > > $ sudo ovs-vsctl add-br br0 > > $ sudo ovs-vsctl set bridge br0 > > protocols=OpenFlow10,OpenFlow11,OpenFlow12,Ope

Re: [ovs-discuss] looking for why TX packets - or how to go out of OVS bridge for normal routing

2014-09-17 Thread samantha Andares
I just wanted to specify packets are dropped at port eth1 in br_access but I have no idea how to debug that... must have some debug available somewhere... but the logs in ovswitch don't tell me anything about the reasons why packets are dropped... thanks for your time, I really need to fix th

Re: [ovs-discuss] Error trying to add flow with strip_vlan action

2014-09-17 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 11:49:26AM -0700, Nikhil Handigol wrote: > I've setup an OVS bridge br0 with the following commands: > $ sudo ovs-vsctl add-br br0 > $ sudo ovs-vsctl set bridge br0 > protocols=OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13 > $ sudo ovs-vsctl set bridge br0 datapath_type=netdev

Re: [ovs-discuss] Possible double-free on ofproto.c:delete_flows_loose

2014-09-17 Thread Ben Pfaff
Thanks for reporting the bug. I'll look into backporting the fix. On Wed, Sep 17, 2014 at 2:17 PM, Anup Khadka wrote: > Yes, I got a crash with 100 rules which led me to inspect the code. > > The collect_rule function inside collect_rules_loose returns > OFPROTO_POSTPONE if rule->pending is non-

Re: [ovs-discuss] Possible double-free on ofproto.c:delete_flows_loose

2014-09-17 Thread Anup Khadka
Yes, I got a crash with 100 rules which led me to inspect the code. The collect_rule function inside collect_rules_loose returns OFPROTO_POSTPONE if rule->pending is non-zero (this is possible if the ofproto vendor class in not done inserting the rules). In such cases, collect_rules_loose functio

[ovs-discuss] looking for why TX packets - or how to go out of OVS bridge for normal routing

2014-09-17 Thread samantha Andares
Hi all, Trying to find the reason why my packets are dropped on my last outgoing port. I am receiving packets in an OVS bridge, sending those packets to another OVS bridge on the same node using patch-ports. Kind of the following: __NODE A___ ___NODE B__

Re: [ovs-discuss] Possible double-free on ofproto.c:delete_flows_loose

2014-09-17 Thread Ben Pfaff
According to the commit message, the bug could not cause a real problem in practice. Do you see a way that it could? On Wed, Sep 17, 2014 at 04:50:04PM -0400, Anup Khadka wrote: > Looks like this code was added in July: > https://github.com/openvswitch/ovs/commit/bfd3dbf6a0c978ceb20faf292bca51 >

Re: [ovs-discuss] Possible double-free on ofproto.c:delete_flows_loose

2014-09-17 Thread Anup Khadka
Looks like this code was added in July: https://github.com/openvswitch/ovs/commit/bfd3dbf6a0c978ceb20faf292bca51 3a63e2b68c I was using an older code-base. Thanks, Anup On Wed, Sep 17, 2014 at 4:37 PM, Ben Pfaff wrote: > On Wed, Sep 17, 2014 at 02:58:50PM -0400, Anup Khadka wrote: > > On Tue, Se

Re: [ovs-discuss] Possible double-free on ofproto.c:delete_flows_loose

2014-09-17 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 02:58:50PM -0400, Anup Khadka wrote: > On Tue, Sep 16, 2014 at 3:30 PM, Anup Khadka wrote: > > > It looks like OVS tries to double-free in delete_flows_loose if the > > rules->rules (inside struct rule_collection *rules is not equal to > > rules->stub). > > > > A little mo

Re: [ovs-discuss] Error trying to add flow with strip_vlan action

2014-09-17 Thread Nikhil Handigol
The command that Rod specified works fine on my local setup (ovs v2.3.0) as well. So, what's wrong with the command: sudo ovs-ofctl -O OpenFlow13 add-flow br0 "cookie=0x0, table=1, send_flow_rem priority=30,vlan_tci=0x0ffe/0x1fff,arp,metadata= 0x,arp_tpa=10.0.0.1 actions=strip_vlan,

Re: [ovs-discuss] Error trying to add flow with strip_vlan action

2014-09-17 Thread Rod N. Melton
i'm building my network with mininet but when i add this flow it works correctly. i use OVS 2.1.0. sudo ovs-ofctl -O OpenFlow13 add-flow s5 in_port=1,cookie=5,idle_timeout=90,icmp,dl_vlan=0x0040,actions=strip_vlan,output:2 ovs-vsctl --version ovs-vsctl (Open vSwitch) 2.1.0 Compiled May 26 2

Re: [ovs-discuss] Possible double-free on ofproto.c:delete_flows_loose

2014-09-17 Thread Anup Khadka
On Tue, Sep 16, 2014 at 3:30 PM, Anup Khadka wrote: > It looks like OVS tries to double-free in delete_flows_loose if the > rules->rules (inside struct rule_collection *rules is not equal to > rules->stub). > > A little more detail: > In the function delete_flows_loose, the call to the function >

[ovs-discuss] Error trying to add flow with strip_vlan action

2014-09-17 Thread Nikhil Handigol
I've setup an OVS bridge br0 with the following commands: $ sudo ovs-vsctl add-br br0 $ sudo ovs-vsctl set bridge br0 protocols=OpenFlow10,OpenFlow11,OpenFlow12,OpenFlow13 $ sudo ovs-vsctl set bridge br0 datapath_type=netdev I tried to insert the following flow with a strip_vlan action: $ sudo ov

Re: [ovs-discuss] ovs del-port does not clean up ethX.Y vlan interfaces

2014-09-17 Thread Ben Pfaff
OK. OVS is supposed to remove the vlan interfaces when they are no longer needed. VLAN splinters are not widely used so there could be a bug. I'll try to check but it's a low priority. Until then, please consider using some other workaround. The FAQ lists several: Q: VLANs don't work. A: Many

Re: [ovs-discuss] ovs del-port does not clean up ethX.Y vlan interfaces

2014-09-17 Thread Madhur Sethi
No Ben. No ipaddress was configured on the eth3.5. None of the ethX on the host in my setup have ipaddresses. Regards, Madhur Sethi -Original Message- From: Ben Pfaff [mailto:b...@nicira.com] Sent: 17 September 2014 23:23 To: Madhur Sethi Cc: 'discuss@openvswitch.org' Subject: Re: [ovs-d

Re: [ovs-discuss] ovs del-port does not clean up ethX.Y vlan interfaces

2014-09-17 Thread Ben Pfaff
Did you configure an IP address on eth3.5 (e.g. with "ifconfig")? On Wed, Sep 17, 2014 at 05:26:50PM +, Madhur Sethi wrote: > Thanks for the reply Ben. > > Yes , I did enable the vlan-splinters. The ports have intel igb drivers and > the vlan doesn't work without enabling the vlan splinters.

Re: [ovs-discuss] ovs del-port does not clean up ethX.Y vlan interfaces

2014-09-17 Thread Madhur Sethi
Thanks for the reply Ben. Yes , I did enable the vlan-splinters. The ports have intel igb drivers and the vlan doesn't work without enabling the vlan splinters. If its deprecated then could you please point me to the newer workaround? Regards, Madhur Sethi -Original Message- From: Ben

Re: [ovs-discuss] [openvswitch 2.3.0] testsuite: 372 373 374 375 376 377 1281 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 13

2014-09-17 Thread Ben Pfaff
These errors seem to be caused by an OpenSSL error about an unknown message digest algorithm. Do you have an unusual version of OpenSSL? Is there something else special about this system or installation? ___ discuss mailing list discuss@openvswitch.org h

Re: [ovs-discuss] ovs del-port does not clean up ethX.Y vlan interfaces

2014-09-17 Thread Ben Pfaff
On Wed, Sep 17, 2014 at 09:49:23AM +, Madhur Sethi wrote: > I am facing an issue wrt the del-port command here. Refer to my config here: > Commands used: > ovs-vsctl add-port OVS-VlanBridge vnet96 > ovs-vsctl set port vnet96 tag=5 > ovs-vsctl add-port OVS-VlanBridge eth3 > > > [root@ kvm ~]#

[ovs-discuss] ovs del-port does not clean up ethX.Y vlan interfaces

2014-09-17 Thread Madhur Sethi
Hi Guys, I am facing an issue wrt the del-port command here. Refer to my config here: Commands used: ovs-vsctl add-port OVS-VlanBridge vnet96 ovs-vsctl set port vnet96 tag=5 ovs-vsctl add-port OVS-VlanBridge eth3 [root@ kvm ~]# ovs-vsctl show 412338cc-eca8-4ea0-a4d8-793ec0444d23 Bridge OVS-VlanB