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

Installing DPDK 19.11

Obtaining the DPDK Source Package

  1. Obtain dpdk-19.11.tar.gz.
  2. Upload the source package to the /home directory on the server.
  3. Decompress the source package.
    tar -xvf dpdk-19.11.tar.xz

Compiling DPDK and Generating Dependency Packages

  1. Enable the DPDK PMD option of LOM.
    1. Open the /home/dpdk-19.11/config/common_base file.
      1
      vim /home/dpdk-19.11/config/common_base
      
    2. Press i to enter the insert mode and set CONFIG_RTE_LIBRTE_HNS3_PMD in line 288 to y.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.

    Set the configuration file path based on the actual DPDK directory.

  2. Compile DPDK source code.
    1. Configure the environment variable of the source code path.
      1
      export RTE_SDK=/home/dpdk-19.11
      
    2. Configure environment architecture variables.
      1. Get the architecture options supported by the current environment.
        cd /home/dpdk-19.11
        ./usertools/dpdk-setup.sh
      2. Enter 4 in the command output.

        This document uses the TaiShan 200 server as an example. Therefore, the arm64-armv8a-linuxapp-gcc is selected.

      3. Exit the script.
      4. Run the following command to configure environment variables:
        1
        export RTE_TARGET=arm64-armv8a-linuxapp-gcc
        

      RTE_SDK is subject to the DPDK source code directory of the actual version, and RTE_TARGET is subject to the actual CPU architecture.

      DPDK 18.11.1 and later versions require the GCC version be later than 5.0. Early GCC versions will cause compilation errors.

    3. Compile the DPDK in the DPDK source code directory /home/dpdk-next-net.
      The multi-core feature can be fully used in this command to accelerate compilation.
      1
      make install T=$RTE_TARGET -j 16