Installing and Configuring DPDK

Complete the following tasks to install and configure DPDK for Mellanox NIC cards.

  1. Create a file /opt/oracle/ocsm/etc/iptego/white_list_dpdk.local with the value mlx5_core before starting the DPDK installation.
  2. Log into the Platform Setup Application page.
    1. Select Capture Settings.
    2. Check the box in the Monitoring column against each sniffing interface that you want to use for capturing the traffic.
  3. Log into the machine that hosts the probe or the mediation engine and probe as a root user.
    (Optional) For better understanding of the network, CPU, and NUMA nodes of the server, run the system_layout.py script to display system information.
    source /opt/oracle/ocsm/ocsm_env.sh
    /opt/oracle/ocsm/usr/share/pld/rat/system_layout.py

    Note:

    If you observe a Python error while executing the .py files, run the command update-alternatives --config python3 and select the /usr/bin/python3.9 option.
  4. Run the command:
    yum install kernel-uek-devel-$(uname -r)
  5. Download the DPDK tar file from https://fast.dpdk.org/rel/ into the folder /var/cache/ocsm/dpdk/.
  6. Untar and open the file in edit mode.
    /var/cache/ocsm/dpdk/dpdk-<version>/config/common_base
  7. Run the following commands as a root user:
    source /opt/oracle/ocsm/ocsm_env.sh
    python3 -m pip install meson 
    python3 -m pip install ninja
    python3 -m pip install pyelftools
    yum  install gcc-toolset-11.x86_64
    scl enable gcc-toolset-11 '/opt/oracle/ocsm/usr/share/pld/rat/configure_dpdk_mlx.py'
  8. Reboot the machine that hosts the probe or the mediation engine and probe.
  9. MLNX drivers require root privileges for the Promiscuous Mode to be enabled. Assign root user privileges to the ocsm user.
  10. Open file in edit mode: /etc/passwd
  11. Change line ocsm:x:998:996::/opt/oracle/ocsm:/sbin/nologin to ocsm:x:0:0::/opt/oracle/ocsm:/sbin/nologin
  12. Restart the RAT service (pld-rat): systemctl restart pld-rat