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.11 option.
  4. Download the DPDK tar file from https://fast.dpdk.org/rel/ into the folder /var/cache/ocsm/dpdk/.
  5. 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 -y tar
    yum  install gcc-toolset-14.x86_64
  6. Edit /etc/default/grub and set “GRUB_ENABLE_BLSCFG” to False. Once the changes are made in grub, run the command:
    sudo grub2-mkconfig -o /boot/grub2/grub.cfg
  7. Run this command:
    
    scl enable gcc-toolset-14 '/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