Re: [ovs-discuss] "could not add network device ethX to ofproto (File exists)"

2018-04-25 Thread Ben Pfaff
On Fri, Apr 20, 2018 at 04:35:27PM +0200, Riccardo Ravaioli wrote:
> Hi all,
> 
> I bumped into a configuration error while trying to add a physical network
> interface to a switch:
> $ ovs-vsctl add-br myswitch
> $ ovs-vsctl add-port myswitch eth9
> ovs-vsctl: Error detected while setting up 'eth9': could not add network
> device eth9 to ofproto (File exists).  See ovs-vswitchd log for details.
> ovs-vsctl: The default log directory is "/opt/oa/var/log/openvswitch".
> 
> Then I go to the specified log file and I don't see much more:
> 2018-04-20T14:26:05.226Z|00174|dpif|WARN|system@ovs-system: failed to add
> eth9 as port: File exists
> 2018-04-20T14:26:05.226Z|00175|bridge|WARN|could not add network device
> eth9 to ofproto (File exists)
> 
> The interface is up and bound to the correct driver:
> # ip a show dev eth9
> 206: eth9:  mtu 1500 qdisc mq master
> ovs-system state UP group default qlen 1000
> link/ether 00:90:0b:54:88:58 brd ff:ff:ff:ff:ff:ff

"master ovs-system" means that the interface is already part of a Open
vSwitch bridge.  Probably you added it to an Open vSwitch bridge some
funny way?  What does "ovs-dpctl show" print?  How about "brctl show"?

Thanks,

Ben.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Questions about modified ofproto.c

2018-04-25 Thread Ben Pfaff
Please don't drop the mailing list.

On Thu, Apr 26, 2018 at 12:12:58AM +0800, 林志仁 wrote:
> 2018-04-26 0:02 GMT+08:00 Ben Pfaff :
> 
> > On Mon, Apr 23, 2018 at 10:56:19PM +0800, 林志仁 wrote:
> > >  I modified ofproto.c   "handle_flow_stats_request"   function.  I added
> > a
> > > while loop to check the flow table every 2 seconds.
> > >
> > > I want to ask "handle_openflow_"  can handle other request, like packet -
> > > in?
> >
> > If you make handle_flow_stats_request() block, then nothing else will
> > get handled.
> >
> 
> If i want to  "handle_flow_stats_request"   function while loop to check
> the flow table every 2 seconds  and ovs also can handle other request
> Do you have any suggested modifications or directions?

I'd suggest having the controller submit a flow stats request every 2
seconds.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


[ovs-discuss] libnuma missing FreeBSD 11.1

2018-04-25 Thread fpostic--- via discuss
Hello,

I'm trying to build Open vSwitch by following this guide :

http://docs.openvswitch.org/en/latest/intro/install/dpdk/

uname -a gives :

FreeBSD 11.1-RELEASE-p9

In the guide I skipped the part for installing DPDK from source and followed 
this guide instead :

https://dpdk.org/doc/guides/freebsd_gsg/install_from_ports.html

Everything runs fine until I try to run ./configure 
--with-dpdk=/usr/local/share/dpdk/x86_64-native-bsdapp-clan/lib in ovs folder.

I get the following error :

 Non relevant output from ./configure

checking target hint for cgcc... x86_64

checking whether dpdk datapath is enabled... yes

checking for library containing get_mempolicy... no

configure: error: unable to find libnuma, install the dependency package

I guess this error message is intended to linux users because searching on the 
web libnuma+freebsd returns no package or port to install on FreeBSD. Instead I 
found that numactl was available since FreeBSD 11.0.

./configure end correctly without --with-dpdk option

What can I do to fix this?

thanks,

Florian___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss


Re: [ovs-discuss] Questions about modified ofproto.c

2018-04-25 Thread Ben Pfaff
On Mon, Apr 23, 2018 at 10:56:19PM +0800, 林志仁 wrote:
>  I modified ofproto.c   "handle_flow_stats_request"   function.  I added a
> while loop to check the flow table every 2 seconds.
> 
> I want to ask "handle_openflow_"  can handle other request, like packet -
> in?

If you make handle_flow_stats_request() block, then nothing else will
get handled.
___
discuss mailing list
disc...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss