>-----Original Message-----
>From: Mauricio Vásquez [mailto:[email protected]]
>Sent: Wednesday, June 1, 2016 11:17 AM
>To: ovs dev <[email protected]>
>Cc: Bodireddy, Bhanuprakash <[email protected]>
>Subject: --with-dpdk configure option issue
>
>Dear All,
>I noticed that when I run the command
>./configure --with-dpdk=$SOME_NON_EXISTING_ENV_VAR
>it does not give me an error, somewhere it says:
>"checking whether dpdk datapath is enabled... no" but there is not an explicit
>error.
>I think this behavior should be avoided, an explicit error should be printed to
>avoid any possible confusion, as for example when DPDK_BUILD is not set.
Thanks for reporting this issue. This is treated more a misconfiguration than
a bug. Please see below.
The configure script was modified to handle auto discovery of DPDK library if
present in standard search paths with ' ./configure --with-dpdk' option.
It also handles other valid options as listed below in case (a),(b),(c), (e).
All the below options will set string 'with_dpdk' in OVS_CHECK_DPDK function in
acinclude.m4.
(a) ./configure --with-dpdk=$DPDK_BUILD [ $with_dpdk
will be a valid $DPDK_BUILD dir]
(b) ./configure --with-dpdk=$DPDK_BUILD/install [ $with_dpdk will be a
valid $DPDK_BUILD/install dir]
(c) ./configure --without-dpdk.
[$with_dpdk will be 'no']
(d) ./configure --with-dpdk=""
[$with_dpdk will be an empty string]
(e) ./configure
[ $with_dpdk will be an empty string]
In case (d), when empty string is passed to --with-dpdk option, it's not known
if user has invoked case (d) or case (e). Hence I throw dpdk datapath isn't
enabled as part of configuration.
i.e "checking whether dpdk datapath is enabled... no".
>
>Bhanuprakash, I CC'ed you because you are author of 40b5ea86319f
>("acinclude: Autodetect DPDK location when configuring OVS"), then I think
>you know how to fix it.
>Mauricio V,
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev