Re: [ovs-discuss] after setting ovs-vsctl set open . external-ids:ovn-encap-ip=, eth0 stops tansmitting any packets in docker container

2017-01-31 Thread Hexin Wang
How is the hardware offload support for geneve in intel nic? Geneve seems a better/flexible encap, not only support layer3 payload, but also having the logical egress port to bypass the ingress pipeline. Thanks. Hexin From:

Re: [ovs-discuss] after setting ovs-vsctl set open . external-ids:ovn-encap-ip=, eth0 stops tansmitting any packets in docker container

2017-01-31 Thread Numan Siddique
On Wed, Feb 1, 2017 at 11:30 AM, Hexin Wang wrote: > How is the hardware offload support for geneve in intel nic? > ​ > > ​ > ​It depends on which intel nic you are using. We have tested with Intel X710 which has Geneve offload support.​ ​Thanks Numan ​ > Geneve

Re: [ovs-discuss] after setting ovs-vsctl set open . external-ids:ovn-encap-ip=, eth0 stops tansmitting any packets in docker container

2017-01-31 Thread Numan Siddique
On Wed, Feb 1, 2017 at 12:06 AM, Ritesh Rekhi wrote: > Hi Ben, > > Thx for the reply > > To repro this issue we don't need any entries in North bound and south > bound database. > > Here are the steps > > 1) run my docker container > > docker run -itd --privileged -e

Re: [ovs-discuss] after setting ovs-vsctl set open . external-ids:ovn-encap-ip=, eth0 stops tansmitting any packets in docker container

2017-01-31 Thread Hexin Wang
Looks like the problem is because ovn is trying to touch eth0 qos. The moment it changes qos_type from “linux-other” to “linux-htb”. Traffic stops working. setup_qos (queue_map=0x7fffc230, egress_iface=0x63ae10 "eth0") at ovn/controller/binding.c:240 240 int error =

Re: [ovs-discuss] after setting ovs-vsctl set open . external-ids:ovn-encap-ip=, eth0 stops tansmitting any packets in docker container

2017-01-31 Thread Ben Pfaff
OK, what is OVN doing to the routing table or IP address configuration for the docker container? On Tue, Jan 31, 2017 at 11:12:40PM +, Ritesh Rekhi wrote: > That is what I am not able to find.If I have only 1 chassis connected things > work fine. Looks like OVN is doing something to the

[ovs-discuss] any help from Python experts? (was: Re: Branch v2.6.1 repo does not make (github))

2017-01-31 Thread Ben Pfaff
OK, so looking closer... The OVS build process runs a few Python programs using syntax like this: PYTHONPATH=$(srcdir)/python:$(PYTHONPATH) python program.py This means that sys.path ends up looking like: ['/dir/for/program.py', ..., '/usr/lib/python2.7/dist-packages', ...

Re: [ovs-discuss] netdev_linux_update_flags() needs seq_change() ?

2017-01-31 Thread Ben Pfaff
On Fri, Jan 13, 2017 at 01:03:32PM -0800, Ben Pfaff wrote: > On Wed, Jan 11, 2017 at 04:05:51PM +0800, Brandon Cheng wrote: > > After all statements of netdev_linux_update_flags() executed successfully, > > it also executes seq_change() to tell ofproto_run() something changed to > > update ovsdb.

Re: [ovs-discuss] after setting ovs-vsctl set open . external-ids:ovn-encap-ip=, eth0 stops tansmitting any packets in docker container

2017-01-31 Thread Ritesh Rekhi
That is what I am not able to find.If I have only 1 chassis connected things work fine. Looks like OVN is doing something to the docker eth0 interface .Again this problem does't happen on a Vm. It only happens on a docker container (:. Thx Ritesh -Original Message- From: Ben Pfaff

Re: [ovs-discuss] after setting ovs-vsctl set open . external-ids:ovn-encap-ip=, eth0 stops tansmitting any packets in docker container

2017-01-31 Thread Ben Pfaff
OK, well then, what is happening to the networking stack that causes the problem? OVN doesn't do anything to the host routing table or IP address configuration, at least not intentionally. What's happening to the host? On Tue, Jan 31, 2017 at 06:36:10PM +, Ritesh Rekhi wrote: > Hi Ben, > >

Re: [ovs-discuss] after setting ovs-vsctl set open . external-ids:ovn-encap-ip=, eth0 stops tansmitting any packets in docker container

2017-01-31 Thread Ritesh Rekhi
One more pointer, this problem will only happen when you have more then 1 chassis attached -Original Message- From: ovs-discuss-boun...@openvswitch.org [mailto:ovs-discuss-boun...@openvswitch.org] On Behalf Of Ritesh Rekhi Sent: Tuesday, January 31, 2017 10:36 AM To: Ben Pfaff

Re: [ovs-discuss] Possible bug with OVS LACP + VPC

2017-01-31 Thread Ben Pfaff
On Wed, Jan 18, 2017 at 04:56:00PM -0600, Chad Norgan wrote: > Thanks so much for the deeper understanding. I think from here I'm > going to get a mirror port setup on the switch so I can confirm that > the switch is indeed sending that pdu on the restored link. I can then > take that to the

Re: [ovs-discuss] after setting ovs-vsctl set open . external-ids:ovn-encap-ip=, eth0 stops tansmitting any packets in docker container

2017-01-31 Thread Ritesh Rekhi
Hi Ben, Thx for the reply To repro this issue we don't need any entries in North bound and south bound database. Here are the steps 1) run my docker container docker run -itd --privileged -e CTL=10.4.163.249 riteshrekhi/ovnstuff:2.6.90 do docker attach and go inside docker container ,

Re: [ovs-discuss] after setting ovs-vsctl set open . external-ids:ovn-encap-ip=, eth0 stops tansmitting any packets in docker container

2017-01-31 Thread Ben Pfaff
On Mon, Jan 30, 2017 at 02:11:15AM +, Ritesh Rekhi wrote: > To test scalability of controller, I made a docker container which simulates > as chassis using the instructions given by Dustin > http://blog.spinhirne.com/2016/09/a-primer-on-ovn.html. > > Everything was working fine, I was able

Re: [ovs-discuss] A sorted tree to hold dumped-flows

2017-01-31 Thread Ben Pfaff
There's already a heap, see lib/heap.[ch]. On Tue, Jan 31, 2017 at 03:34:26PM +, Avi Cohen (A) wrote: > Thanks - I'll implement a heap > > > -Original Message- > > From: Ben Pfaff [mailto:b...@ovn.org] > > Sent: Tuesday, 31 January, 2017 5:30 PM > > To: Avi Cohen (A) > > Cc:

Re: [ovs-discuss] A sorted tree to hold dumped-flows

2017-01-31 Thread Avi Cohen (A)
Thanks - I'll implement a heap > -Original Message- > From: Ben Pfaff [mailto:b...@ovn.org] > Sent: Tuesday, 31 January, 2017 5:30 PM > To: Avi Cohen (A) > Cc: ovs-discuss@openvswitch.org > Subject: Re: [ovs-discuss] A sorted tree to hold dumped-flows > > A shash is not a tree. > > On

Re: [ovs-discuss] A sorted tree to hold dumped-flows

2017-01-31 Thread Ben Pfaff
A shash is not a tree. On Tue, Jan 31, 2017 at 01:17:52PM +, Avi Cohen (A) wrote: > I don't see any sorted tree in the code for the dumped flows, but I see that > in ofproto-dpif.c a'shash' is used for a sorted db. > I think to use a shash tree also. > > > -Original

Re: [ovs-discuss] A sorted tree to hold dumped-flows

2017-01-31 Thread Ben Pfaff
On Tue, Jan 31, 2017 at 12:53:32PM +, Avi Cohen (A) wrote: > I need to store (in userspace) the dumped datapath cache entries into a > sorted tree - based on a score that will be given to each entry. > Is the existing flows data-base (ofproto module) already includes a sorted > tree for

[ovs-discuss] Calling added code

2017-01-31 Thread Per Danielsson
Hi! I am adding a small hack to OVS and would like my code to be called quite frequently (millisecond level if possible). Where can I add a call to my code to achieve that? I think I would prefer not to add a new thread, because I imagine that will cause synchronization problems that I want to

[ovs-discuss] A sorted tree to hold dumped-flows

2017-01-31 Thread Avi Cohen (A)
Hi, I need to store (in userspace) the dumped datapath cache entries into a sorted tree - based on a score that will be given to each entry. Is the existing flows data-base (ofproto module) already includes a sorted tree for the dumped flows ? If not - what tree is available in ovs lib for