我要评分
获取效率
正确性
完整性
易理解

Changing the PCI Address in the Script

The networking script involves binding a NIC to the OVS user mode. The PCI address of the NIC on each server is slightly different. Modify the script for adaptation.

  1. Check the PCI addresses of NICs in the script. (In the example environment, the DPDK is installed in the /usr directory.)
    1
    dpdk-devbind -s
    

  2. Change the PCI addresses of NICs in the script to the actual PCI addresses of bound network ports (for example, 0000:04:00.0 and 0000:05:00.0).
    1
    2
    sed -i "s/0000:01:00.0/0000:04:00.0/g" topology_all.sh
    sed -i "s/0000:01:00.1/0000:05:00.0/g" topology_all.sh
    
  • In the script, the configuration txq_mpw_en=1 in options:dpdk-devargs=0000:01:00.0,txq_mpw_en=1 is exclusive to MLX NICs. For other NICs, delete this configuration.
  • If other NICs (for example, 1822 NICs) are used for the test, bind network ports to the DPDK user mode. For details, see OVS Flow Table Normalization Feature Guide. For MLX NICs, you do not need to bind network ports to the DPDK user mode.