Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The following diagram shows the physical configuration between the BlueField SmartNIC and the ConnectX-5 NIC. 

yihui wang change the image information

Pre-Installation Requirements

...

Qty.

Item

 Comments

2x86 servers running CentOS 7.5 -
1ConnectX-5 NIC (FW: 16.24.0328 and up) -
1BlueField 25GbE SmartNIC with Arm processor (FW: 18.24.1000 and up) -
 125GB/s SFP28 networking cable -
 1QSA28 Adapter (100GB-to-25GB Adapter) -
 1UART-to-USB cableFor SmartNIC USB console access 
 1Mini USB Type B cableFor SmartNIC USB Console Access
 1bfb image to be loaded on the BlueField SmartNIC Arm. Image contains:
  • CentOS 7.5 over Arm architecture
  • MLNX_OFED_LINUX-4.4-2.5.11.0 (compiled with DPDK and BlueField flags)
  • DPDK libraries version 18.11
  • Pre-configured network settings for easy SmartNIC management
  1. Insert ConnectX-5 6 NIC into Server A
  2. Insert BlueField SmartNIC into Server B
  3. Connect the SmartNIC UART cable from SmartNIC to its hosting Server B USB port #1
  4. Connect Mini USB cable from SmartNIC to its hosting Server B USB port #2
  5. Insert QSA28 Adapter into Server B 100GB port
  6. Connect one of the SmartNIC ports to the ConnectX-5 6 using 25GB cable
  7. Connect both servers to a management LAN

...

  1. Use automatic FM update during MLNX_OFED installation ONLY if the current BlueField FW version is 18.24.1000 (GA) or or above. In case its older, manually burn the FW after MLNX_OFED installation.
  2. In case you plan to run DPDK on the host itself, install MLNX_OFED with "--dpdk --upstream-libs" flags
  3. The "BlueField" flag is not required in some of the MLNX_OFED versions and OS releases

...

tar -xzvf MLNX_OFED_LINUX-45.42-21.50.114.0-rhel7.56-x86_64.tgz
cd MLNX_OFED_LINUX-45.42-21.50.114.0-rhel7.56-x86_64
./mlnxofedinstall --with-nvmf --bluefield --without-fw-update

...

  1. Use an automatic FM update during MLNX_OFED installation ONLY if the current BlueField FW version is 18.24.1000 (GA) or above. In case its older, manually burn the FW after MLNX_OFED installation.
  2. In case you plan to run DPDK on the host itself, install MLNX_OFED with "--dpdk --upstream-libs" flags
  3. The "BlueField" flag is not required in some of the MLNX_OFED versions and OS releases

yihui wang change the FW

  • Enable SR-IOV on FW (Optional):

...

cat /home/CentOS7.5ALT-aarch64-QuickStart.bfb 6-5.4.60-mlnx.51.ge913ebd-MLNX_OFED-5.2-1.0.4.0-1-aarch64.bfb > /dev/rshim0/boot

  

Use one of the console access methods described in the "SmartNIC Management Methods" section below to follow the image installation process.

...

           To manage the SmartNIC from the hosting server, use one of the following methodsthe following methods yihui wang change the 8.2


Access Credentials: root\centos

...

In this mode, the x86 hosting server communicates with the outer world only through the SmartNIC Arm. yihui wang change CX5 TO CX6 DX


Note

In order to identify the SmartNIC current mode, issue the following commands on the x86 hosting server:

x86_host#mst start
x86_host#mlxconfig -d /dev/mst/mt41682mt41686_pciconf0 q | grep -i model

...

x86_host #mst start
x86_host #mlxconfig -d /dev/mst/mt41682mt41686_pciconf0 s INTERNAL_CPU_MODEL=1

...

x86_host#mst start
x86_host#mlxconfig -d /dev/mst/mt41682mt41686_pciconf0 q | grep -i model

...

Snic#mst start
Snic#mst status -v
Snic#mlxconfig -d /dev/mst/mt41682mt41686_pciconf0 s ECPF_ESWITCH_MANAGER=1 ECPF_PAGE_SUPPLIER=1
Snic#mlxconfig -d /dev/mst/mt41682mt41686_pciconf0.1 s ECPF_ESWITCH_MANAGER=1 ECPF_PAGE_SUPPLIER=1

...

mst start
mst status -v
 
 
PCI devices:
------------
DEVICE_TYPE MST PCI RDMA NET NUMA
BlueFieldBlueField2(rev:0) NA 03:00.1 mlx5_3,mlx5_2 net-eth2,net-rep1-ffff -1
BlueField1 net-p1 -1
BlueField2(rev:0) NA 03:00.0 mlx5_1, mlx5_0 net-rep0-ffff,net-eth1 -p0 -1


Note
The rep0-0 / rep1-0 The pf0hpf / pf1hpf are the representors facing the x86 host and the rep0-ffff / rep1-ffff are the representors facing the network.


Switching to SEPERATED_HOST Mode from EMBEDDED Mode

...

x86_host #mst start
x86_host #mlxconfig -d /dev/mst/mt41682mt41686_pciconf0 s INTERNAL_CPU_MODEL=0

...

x86_host#mst start
x86_host#mlxconfig -d /dev/mst/mt41682mt41686_pciconf0 q | grep -i model

...

In Embedded mode, traffic from the x86 server hosting the SmartNIC to the remote x86 server hosting the ConnectX-5 6 Dx is going via the SmartNIC Arm.

...

echo 4 > /sys/kernel/mm/hugepages/hugepages-524288kB1048576kB/nr_hugepages


Verify hugepages were allocated (look for HugePages_Total and Free):

...

Set IPs on both x86 host and ConnectX-5 6 Dx host and test connectivity with ping (it will be forwarded by the Arm DPDK)

On the ConnectX-5 6 Dx external host start iperf server:

...

  • Check that the latest driver is loaded
  • Check that both the SmartNIC and its link are set to the same speed and duplex settings

Maintenance

Blue Print BluePrint Package Maintenance

Software maintenance

...