[ovs-discuss] Open vSwitch with DPDK on FreeBSD

Daniele Di Proietto diproiettod at vmware.com
Sat Nov 7 00:29:25 UTC 2015


Hi,

Using OVS with DPDK on BSD is not supported at the moment.

The current OVS code assumes that the DPDK is compiled with vhost support,
which is not supported on BSD.  Also, some of the APIs that we use in
netdev-dpdk.c are linux specific (e.g. pthread_setaffinity_np).

I suppose it won't be to hard to work around these limitations and,
obviously,
patches are welcome!



On 06/11/2015 15:40, "Jeremias Blendin" <jeremias at blendin.org> wrote:

>Hi,
>
>I am having trouble compiling OVS with DPDK on FreeBSD. Is this
>configuration supposed to work?
>
>OVS looks for virtio, which DPDK seems not to provide, although it is
>enabled in the configuration. Any ideas on pointers on the issue?
>
>Thanks!
>
>Here is the output:
>
>DPDK_BUILD=/usr/home/user/install/dpdk/x86_64-native-bsdapp-clang
>./configure --with-dpdk=$DPDK_BUILD CFLAGS="-g -O2 -Wno-cast-align
>-march=native"
>
>gmake
>------8<------
>libtool: compile:  cc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I
>./lib -I ./lib -I/usr/include -Wstrict-prototypes -Wall -Wextra
>-Wno-sign-compare -Wpointer-arith -Wformat-security -Wswitch-enum
>-Wunused-parameter -Wbad-function-cast -Wcast-align
>-Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes
>-Wmissing-field-initializers -Wthread-safety -fno-strict-aliasing
>-Qunused-arguments
>-I/usr/home/user/install/dpdk/x86_64-native-bsdapp-clang/include
>-mssse3 -D_FILE_OFFSET_BITS=64 -g -O2 -Wno-cast-align -march=native
>-MT lib/netdev-dpdk.lo -MD -MP -MF lib/.deps/netdev-dpdk.Tpo -c
>lib/netdev-dpdk.c -o lib/netdev-dpdk.o
>lib/netdev-dpdk.c:55:10: fatal error: 'rte_virtio_net.h' file not found
>#include "rte_virtio_net.h"
>         ^
>1 error generated.
>Makefile:3584: recipe for target 'lib/netdev-dpdk.lo' failed
>gmake[2]: *** [lib/netdev-dpdk.lo] Error 1
>gmake[2]: Leaving directory '/usr/home/user/install/ovs'
>Makefile:4188: recipe for target 'all-recursive' failed
>gmake[1]: *** [all-recursive] Error 1
>gmake[1]: Leaving directory '/usr/home/user/install/ovs'
>Makefile:2327: recipe for target 'all' failed
>gmake: *** [all] Error 2
>_______________________________________________
>discuss mailing list
>discuss at openvswitch.org
>https://urldefense.proofpoint.com/v2/url?u=http-3A__openvswitch.org_mailma
>n_listinfo_discuss&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&
>r=SmB5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJqZ2uWLlE&m=02q1IWwJIe0oxPhzb_unTziH1B
>vqErQ6WaRQIbZncS4&s=XBr7Hm3XDQnL4TzUVxMViof8mAxCmHbZ9Cowt5NJIsQ&e= 




More information about the discuss mailing list