Hi Ronald,

Try OFED install with the following flags as well

mlnxofedinstall --dpdk --upstream-libs

Cheers,

Daniel Bernier | Bell Canada
________________________________________
From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> on behalf of Marco Varlese 
<mvarl...@suse.de>
Sent: Friday, April 6, 2018 2:49 AM
To: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] how to compile for Mellanox ConnectX-5 for VPP 18.01 and 
DPDK 18.02?

Hi Ronald,

I think you may need to set "vpp_dpdk_shared_lib = yes", I see that is set to
"no" in your configuration pasted below.

Can you try and see if that works for you?


Cheers,
Marco

On Fri, 2018-03-09 at 21:32 +0100, Ronald van der Pol wrote:
> I am trying to get VPP working with a Mellanox ConnectX-5 NIC. I have
> tried various configs, but I cannot get it working.
>
> This is what I have now:
>
> I am using:
> $ ofed_info -s
> MLNX_OFED_LINUX-4.3-1.0.1.0
>
> In dpdk-18.02/config/common_base:
> CONFIG_RTE_LIBRTE_MLX5_PMD=y
> CONFIG_RTE_LIBRTE_MLX5_DEBUG=n
> CONFIG_RTE_LIBRTE_MLX5_DLOPEN_DEPS=y
> CONFIG_RTE_LIBRTE_MLX5_TX_MP_CACHE=8
>
> $ make config T=x86_64-native-linuxapp-
> gcc
> $ make install T=x86_64-native-linuxapp-gcc DESTDIR=install
>
> For VPP:
> $ git clone https://gerrit.fd.io/r/vpp
>
> $ git checkout origin/stable/1801
>
> In build-data/platforms/vpp.mk:
> ---------------------------------------
> --
> vpp_uses_dpdk_mlx5_pmd =
> yes
> vpp_uses_external_dpdk =
> yes
> vpp_dpdk_inc_dir = /home/rvdp/src/dpdk-
> 18.02/install/include/dpdk
> vpp_dpdk_lib_dir = /home/rvdp/src/dpdk-
> 18.02/install/lib
> vpp_dpdk_shared_lib =
> no
> -----------------------------------------
>
> $ make dpdk-install-dev
> DPDK_MLX5_PMD=y
> $ make install-
> dep
> $ make build-release
>
> This fails with:
>
>   CCLD     ila_plugin.la
>   CCLD     libsixrd_plugin.la
>   CCLD     dpdk_plugin.la
> /usr/bin/ld: /home/rvdp/src/dpdk-18.02/install/lib/librte_acl.a(tb_mem.o):
> relocation R_X86_64_32 against `.rodata' can not be used when making a shared
> object; recompile with -fPIC
> /home/rvdp/src/dpdk-18.02/install/lib/librte_acl.a(tb_mem.o): error adding
> symbols: Bad value
> collect2: error: ld returned 1 exit status
> Makefile:1883: recipe for target 'dpdk_plugin.la' failed
>
> Can somebody tell me what the proper config setting are?
>
> Thanks,
>
>     rvdp
>
>
>
--
Marco V

SUSE LINUX GmbH | GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg) Maxfeldstr. 5, D-90409, Nürnberg



-=-=-=-=-=-=-=-=-=-=-=-
Links:

You receive all messages sent to this group.

View/Reply Online (#8822): https://lists.fd.io/g/vpp-dev/message/8822
View All Messages In Topic (3): https://lists.fd.io/g/vpp-dev/topic/14304652
Mute This Topic: https://lists.fd.io/mt/14304652/21656
New Topic: https://lists.fd.io/g/vpp-dev/post

Change Your Subscription: https://lists.fd.io/g/vpp-dev/editsub/21656
Group Home: https://lists.fd.io/g/vpp-dev
Contact Group Owner: vpp-dev+ow...@lists.fd.io
Terms of Service: https://lists.fd.io/static/tos
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to