Hi,
Just want to summarize the steps of running VPP with Mellanox NICs as below.

1. download and install Mellanox ofed driver.
https://www.mellanox.com/products/infiniband-drivers/linux/mlnx_ofed
sudo ./mlnxofedinstall --upstream-libs --dpdk --add-kernel-support
sudo /etc/init.d/openibd restart

2. install libmnl.so library
sudo apt-get install libmnl-dev -y

3. put Mellanox NIC address into startup.conf
login@vpp-tx2-02:~/origin$ cat ~/startup.conf | grep dev
        dev 0000:0b:00.0
        dev 0000:0b:00.1
login@vpp-tx2-02:~/origin$ sudo lshw -c network -businfo
Bus info          Device      Class      Description
====================================================
pci@0000:0b:00.0  enp11s0f0   network    MT27800 Family [ConnectX-5]
pci@0000:0b:00.1  enp11s0f1   network    MT27800 Family [ConnectX-5]

4. compile and run vpp image with Mellanox NIC.
make build vpp_uses_dpdk_mlx5_pmd=yes vpp_uses_dpdk_ibverbs_link_dlopen=yes
sudo 
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/login/origin/build-root/install-vpp_debug-native/external/lib/
 ./build-root/build-vpp_debug-native/vpp/bin/vpp -c ~/startup.conf

Thanks.

> -----Original Message-----
> From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Benoit Ganne
> (bganne) via Lists.Fd.Io
> Sent: 2019年6月20日 19:42
> To: amito...@gmail.com; vpp-dev@lists.fd.io
> Cc: vpp-dev@lists.fd.io
> Subject: Re: [vpp-dev] Mellanox interfaces not getting detected with vpp19.04
> 
> Not sure what is going on, however I noticed you are trying to use VF and not
> PF. Could try to use 09:00.0 and 09:00.1?
> Any reason to stick with DPDK and not use RDMA driver?
> 
> Best
> ben
> 
> > -----Original Message-----
> > From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of
> > amito...@gmail.com
> > Sent: jeudi 20 juin 2019 13:01
> > To: vpp-dev@lists.fd.io
> > Subject: Re: [vpp-dev] Mellanox interfaces not getting detected with
> > vpp19.04
> >
> > Hi,
> >
> > Please find my responses below
> >
> > Did you whitelist the PCI devices in VPP configuration (https://fdio-
> > vpp.readthedocs.io/en/latest/gettingstarted/users/configuring/startup.
> > html
> > #dpdk)?
> > If you are using CentOS/RHEL, can you try disabling SELinux
> > ('setenforce 0' under Linux) and see if it is better?
> > Otherwise, does the Mellanox interfaces work with DPDK testpmd?
> >
> > >>>>>Yes, i whitelist the PCI devices in startup.conf.
> > >>>>>I am using RHEL and tried with disabling SELinux too but to no
> > effect.
> > >>>>>I also tried with testpmd and testpmd was able to detect the port.
> >
> > As requested, i am attaching all the outputs.
> >
> > Regards
> > Amit
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16211): https://lists.fd.io/g/vpp-dev/message/16211
Mute This Topic: https://lists.fd.io/mt/32141457/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