Hi,

Or you can use nativa rdma driver as written in this post and build vpp as 
usual. 😉

Regards.
________________________________
От: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> от имени Mohammed Hawari 
<moham...@hawari.fr>
Отправлено: 1 апреля 2021 г. 13:16
Кому: chetan bhasin <chetan.bhasin...@gmail.com>
Копия: vpp-dev <vpp-dev@lists.fd.io>
Тема: Re: [vpp-dev] How to enable Mellanox compilation in VPP 21.01


Hi Chetan,

If you are using CentOS, I’d suggest to cherry-pick 
https://gerrit.fd.io/r/c/vpp/+/31876. Also please change the dpdk.mk to also 
set DPDK_MLX5_COMMON_PMD = y. I hope this solves your issue. Otherwise, please 
consider using the rdma native driver that does not rely on DPDK.

Regards

Mohammed
On 30 Mar 2021, at 12:41, chetan bhasin 
<chetan.bhasin...@gmail.com<mailto:chetan.bhasin...@gmail.com>> wrote:

Hello Everyone,

I am upgrading to vpp 2101 . I am facing a compilation issue after enabling 
Mellanox compilation in dpdk.mk<http://dpdk.mk/> .

--- a/build/external/packages/dpdk.mk<http://dpdk.mk/>
+++ b/build/external/packages/dpdk.mk<http://dpdk.mk/>
@@ -14,8 +14,8 @@
 DPDK_PKTMBUF_HEADROOM        ?= 128
 DPDK_USE_LIBBSD              ?= n
 DPDK_DEBUG                   ?= n
-DPDK_MLX4_PMD                ?= n
-DPDK_MLX5_PMD                ?= n
+DPDK_MLX4_PMD                ?= y
+DPDK_MLX5_PMD                ?= y
 DPDK_MLX5_COMMON_PMD         ?= n


Getting below errors . Anybody please help here ?

[1344/1846] Compiling C object 
'drivers/a715181@@tmp_rte_net_nfp@sta/net_nfp_nfpcore_nfp_nsp_cmds.c.o'
[1345/1846] Linking target drivers/librte_net_mlx4.so.21.0
FAILED: drivers/librte_net_mlx4.so.21.0
cc  -o drivers/librte_net_mlx4.so.21.0 
'drivers/a715181@@rte_net_mlx4@sha/meson-generated_.._rte_net_mlx4.pmd.c.o' 
'drivers/a715181@@tmp_r
te_net_mlx4@sta/net_mlx4_mlx4.c.o' 
'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4_ethdev.c.o' 
'drivers/a715181@@tmp_rte_net_mlx4@sta
/net_mlx4_mlx4_flow.c.o' 
'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4_intr.c.o' 
'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_ml
x4_mp.c.o' 'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4_mr.c.o' 
'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4_rxq.c.o' 'dri
vers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4_rxtx.c.o' 
'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4_txq.c.o' 'drivers/a715181@
@tmp_rte_net_mlx4@sta/net_mlx4_mlx4_utils.c.o' 
'drivers/a715181@@tmp_rte_net_mlx4@sta/net_mlx4_mlx4_glue.c.o' -Wl,--as-needed 
-Wl,--no-und
efined -Wl,-O1 -shared -fPIC -Wl,--start-group 
-Wl,-soname,librte_net_mlx4.so.21 -Wl,--no-as-needed -pthread -lm -ldl -lnuma 
lib/librte_et
hdev.so.21.0 lib/librte_eal.so.21.0 lib/librte_kvargs.so.21.0 
lib/librte_telemetry.so.21.0 lib/librte_net.so.21.0 lib/librte_mbuf.so.21.0
lib/librte_mempool.so.21.0 lib/librte_ring.so.21.0 lib/librte_meter.so.21.0 
drivers/librte_bus_pci.so.21.0 lib/librte_pci.so.21.0 drivers/
librte_bus_vdev.so.21.0 
-Wl,--version-script=/root/tmp/vpp/build-root/build-vpp-native/external/src-dpdk/drivers/net/mlx4/version.map
 -lpt
hread -L/root/tmp/vpp/build-root/install-vpp-native/external/lib64 
-l:libbnxt_re-rdmav25.a -l:libcxgb4-rdmav25.a -l:libefa.a -l:libhns-rdm
av25.a -l:libi40iw-rdmav25.a -l:libmlx4.a -l:libmlx5.a -l:libmthca-rdmav25.a 
-l:libocrdma-rdmav25.a -l:libqedr-rdmav25.a -l:libvmw_pvrdma-rdmav25.a 
-l:libhfi1verbs-rdmav25.a -l:libipathverbs-rdmav25.a -l:librxe-rdmav25.a 
-l:libsiw-rdmav25.a -l:libibverbs.a -l:librdma_util.a -l:libccan.a 
-Wl,--end-group '-Wl,-rpath,$ORIGIN/../lib:$ORIGIN/' 
-Wl,-rpath-link,/root/tmp/vpp/build-root/build-vpp-native/external/build-dpdk/lib
 
-Wl,-rpath-link,/root/tmp/vpp/build-root/build-vpp-native/external/build-dpdk/drivers
/bin/ld: cannot find -l:libbnxt_re-rdmav25.a
/bin/ld: cannot find -l:libcxgb4-rdmav25.a
/bin/ld: cannot find -l:libefa.a
/bin/ld: cannot find -l:libhns-rdmav25.a
/bin/ld: cannot find -l:libi40iw-rdmav25.a
/bin/ld: cannot find -l:libmlx4.a
/bin/ld: cannot find -l:libmlx5.a
/bin/ld: cannot find -l:libmthca-rdmav25.a
/bin/ld: cannot find -l:libocrdma-rdmav25.a
/bin/ld: cannot find -l:libqedr-rdmav25.a
/bin/ld: cannot find -l:libvmw_pvrdma-rdmav25.a
/bin/ld: cannot find -l:libhfi1verbs-rdmav25.a
/bin/ld: cannot find -l:libipathverbs-rdmav25.a
/bin/ld: cannot find -l:librxe-rdmav25.a
/bin/ld: cannot find -l:libsiw-rdmav25.a
/bin/ld: cannot find -l:libibverbs.a
/bin/ld: cannot find -l:librdma_util.a
/bin/ld: cannot find -l:libccan.a
collect2: error: ld returned 1 exit status






-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19086): https://lists.fd.io/g/vpp-dev/message/19086
Mute This Topic: https://lists.fd.io/mt/81718770/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to