On Tue, 2017-11-14 at 12:45 +0000, Shachar Beiser wrote:
>  
> 
>  
> 
> 
> 
> 
> From: Marco Varlese [mailto:mvarl...@suse.de] 
> 
> Sent: Tuesday, November 14, 2017 1:29 PM
> 
> To: Shachar Beiser <shacha...@mellanox.com>; vpp-dev@lists.fd.io
> 
> Cc: Amir Zeidner <amir...@mellanox.com>; Shahaf Shuler <shah...@mellanox.com>;
> Eyal Lavee <ela...@mellanox.com>
> 
> Subject: Re: [vpp-dev] VPP with DPDK external build
> 
> 
> 
>  
> 
> 
> It looks like you didn't build the dpdk plugin (dpdk_plugin.so) in VPP...
> 
> 
> 
>  
> 
> 
> 
> The first command you ran
> 
> 
> 
> >                      root@kickseed:/home/shacharbe/vpp.dlopen# sudo
> > ./src/bin/vpp -c ${PWD}/src/vpp/conf/startup.conf
> 
>  
> is correct but the DPDK plugin is not loaded (I can't see it listed in the
> output you shared)
> 
> 
> 
> 
> 
> > load_one_plugin:184: Loaded plugin: acl_plugin.so (Access Control Lists)
> > load_one_plugin:184: Loaded plugin: flowprobe_plugin.so (Flow per Packet)
> > load_one_plugin:184: Loaded plugin: gtpu_plugin.so (GTPv1-U)
> > load_one_plugin:184: Loaded plugin: ila_plugin.so (Identifier-locator
> > addressing for IPv6)
> > load_one_plugin:184: Loaded plugin: ioam_plugin.so (Inbound OAM)
> > load_one_plugin:114: Plugin disabled (default): ixge_plugin.so
> > load_one_plugin:184: Loaded plugin: lb_plugin.so (Load Balancer)
> > load_one_plugin:184: Loaded plugin: libsixrd_plugin.so (IPv6 Rapid
> > Deployment on IPv4 Infrastructure (RFC5969))
> > load_one_plugin:184: Loaded plugin: memif_plugin.so (Packet Memory Interface
> > (experimetal))
> > load_one_plugin:184: Loaded plugin: nat_plugin.so (Network Address
> > Translation)
> > load_one_plugin:184: Loaded plugin: pppoe_plugin.so (PPPoE)
> 
>  
> 
> Hence you get the error about an "unrecognized option" while parsing the
> configuration file.
> 
> 
> 
> > vlib_call_all_config_functions: unknown input `dpdk  dev 0000:03:00.0 { num-
> > rx-queues 2 } no-multi-seg socket-mem 2048,2048 '
> 
>  
> 
> 
> 
> 
> Can you check that you have the dpdk plugin (file: dpdk_plugin.so) in the
> folder you currently use as your plugin directory? As per your output below
> 
> 
> 
> 
> > vlib_plugin_early_init:356: plugin path /usr/lib/vpp_plugins
> 
> 
> 
> I believe it's /usr/lib/vpp_plugins
> 
>  
> 
>  
> 
> [S.B]
> 
> Yes it is in the /usr/lib/vpp_plugins , but I am using dpdk external and the
> library path is probably different ?!
Not, at all. As I told you in my previous email, I build VPP using DPDK-shared
mode too. Where the plugins are being "installed" does not depend on whether you
use shared or non-shared DPDK...
> root@kickseed:/home/shacharbe/vpp.dlopen# ls /usr/lib/vpp_plugins
> acl_plugin.so   flowprobe_plugin.so  ila_plugin.so   ixge_plugin.so 
> libsixrd_plugin.so  nat_plugin.so
>   dpdk_plugin.so  gtpu_plugin.so       ioam_plugin.so  lb_plugin.so   
> memif_plugin.so     pppoe_plugin.so
>  
> 
> 
> 
> My plugins are in the directory:
> 
> /home/shacharbe/vpp.dlopen/src/plugins/.libs/dpdk_plugin.so
I am puzzled at how you got the plugins into the /usr/lib/vpp_plugins directory
if you still run VPP from within the folder where you build it.Did you manually
copy the plugins .so to the /usr/lib/vpp_plugins ? From your previous command,
you simply execute "make -j 32" and that does not do any "install of execs/libs
on the filesystem".
>  
> 
> Anyway setting in the startup.conf the plugin path resolves this issue.
Sure, adding the correct path helps but - somehow - in your previous execution
you were not "executing" either the right VPP (e.g. a vpp executable built
without DPDK support) or executing VPP with the DPDK plugin disabled (that is an
option you can specify in the startup.conf file) or - finally - pointing to a
folder without the dpdk plugin .so file otherwise the error couldn't be
explained...
>  
> 
> 
>  
> 
> 
> Cheers,
> 
> 
> Marco
> 
> 
>  
> 
> 
> On Tue, 2017-11-14 at 10:07 +0000, Shachar Beiser wrote:
> 
> > Hi ,
> >  
> >        I have successfully build the DPDK by:
> >                 make T=x86_64-native-linuxapp-gcc install CPU_CFLAGS="-g
> > -fpic"
> >        then I compiled successfully the vpp with the DPDK external by
> > following the procedure :
> >                 cd vpp/
> > sed -i '/vpp_uses_dpdk_mlx5_pmd/s/^# //g' build-data/platforms/vpp.mk
> > cd src/
> > autoreconf -fis
> > export CFLAGS="-g -DFORTIFY_SOURCE=2 -fstack-protector -fPIC
> > -march=sandybridge -O2 -I/home/shacharbe/dpdk.org/x86_64-native-linuxapp-
> > gcc/include -L/home/shacharbe/dpdk.org/x86_64-native-linuxapp-gcc/lib"
> > ./configure --disable-japi
> > make -j32
> >      
> >         now I have an issue while I try to run the vpp with startup.conf .
> > 
> >         What is the right command that I should use ?
> >       
> >              -Shachar Beiser
> >  
> >             Different commands that  I have tried :
> >                      
> > root@kickseed:/home/shacharbe/vpp.dlopen# sudo ./src/bin/vpp -c
> > ${PWD}/src/vpp/conf/startup.conf
> > vlib_plugin_early_init:356: plugin path /usr/lib/vpp_plugins
> > load_one_plugin:184: Loaded plugin: acl_plugin.so (Access Control Lists)
> > load_one_plugin:184: Loaded plugin: flowprobe_plugin.so (Flow per Packet)
> > load_one_plugin:184: Loaded plugin: gtpu_plugin.so (GTPv1-U)
> > load_one_plugin:184: Loaded plugin: ila_plugin.so (Identifier-locator
> > addressing for IPv6)
> > load_one_plugin:184: Loaded plugin: ioam_plugin.so (Inbound OAM)
> > load_one_plugin:114: Plugin disabled (default): ixge_plugin.so
> > load_one_plugin:184: Loaded plugin: lb_plugin.so (Load Balancer)
> > load_one_plugin:184: Loaded plugin: libsixrd_plugin.so (IPv6 Rapid
> > Deployment on IPv4 Infrastructure (RFC5969))
> > load_one_plugin:184: Loaded plugin: memif_plugin.so (Packet Memory Interface
> > (experimetal))
> > load_one_plugin:184: Loaded plugin: nat_plugin.so (Network Address
> > Translation)
> > load_one_plugin:184: Loaded plugin: pppoe_plugin.so (PPPoE)
> > vlib_call_all_config_functions: unknown input `dpdk  dev 0000:03:00.0 { num-
> > rx-queues 2 } no-multi-seg socket-mem 2048,2048 '
> > root@kickseed:/home/shacharbe/vpp.dlopen# sudo ./src/bin/vpp -c
> > ${PWD}/src/vpp/conf/startup.conf plugin_path ${PWD}/plugins/.libs/
> > vlib_plugin_early_init:356: plugin path
> > /home/shacharbe/vpp.dlopen/plugins/.libs/
> > vlib_call_all_config_functions: unknown input `-c
> > /home/shacharbe/vpp.dlopen/src/vpp/conf/startup.conf'
> > root@kickseed:/home/shacharbe/vpp.dlopen# sudo ./src/bin/vpp unix -c
> > ${PWD}/src/vpp/conf/startup.conf
> > vlib_plugin_config: unknown input '/home/shacharbe/vpp.dlopen/src...'
> > root@kickseed:/home/shacharbe/vpp.dlopen# sudo ./src/bin/vpp
> > vlib_plugin_early_init:356: plugin path /usr/lib/vpp_plugins
> > load_one_plugin:184: Loaded plugin: acl_plugin.so (Access Control Lists)
> > load_one_plugin:184: Loaded plugin: flowprobe_plugin.so (Flow per Packet)
> > load_one_plugin:184: Loaded plugin: gtpu_plugin.so (GTPv1-U)
> > load_one_plugin:184: Loaded plugin: ila_plugin.so (Identifier-locator
> > addressing for IPv6)
> > load_one_plugin:184: Loaded plugin: ioam_plugin.so (Inbound OAM)
> > load_one_plugin:114: Plugin disabled (default): ixge_plugin.so
> > load_one_plugin:184: Loaded plugin: lb_plugin.so (Load Balancer)
> > load_one_plugin:184: Loaded plugin: libsixrd_plugin.so (IPv6 Rapid
> > Deployment on IPv4 Infrastructure (RFC5969))
> > load_one_plugin:184: Loaded plugin: memif_plugin.so (Packet Memory Interface
> > (experimetal))
> > load_one_plugin:184: Loaded plugin: nat_plugin.so (Network Address
> > Translation)
> > load_one_plugin:184: Loaded plugin: pppoe_plugin.so (PPPoE)
> >  
> >  
> >  
> > _______________________________________________
> > vpp-dev mailing list
> > vpp-dev@lists.fd.io
> > https://lists.fd.io/mailman/listinfo/vpp-dev
> 
> 
> 
> 
_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to