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
  4. Run the command:
    yum install kernel-uek-devel-$(uname -r)
  5. Download the DPDK tar file from http://dpdk.org/browse/dpdk/ 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. Edit line CONFIG_RTE_LIBRTE_MLX5_PMD=n to CONFIG_RTE_LIBRTE_MLX5_PMD=y
  8. Run the following commands as a root user:
    source /opt/oracle/ocsm/ocsm_env.sh
    /opt/oracle/ocsm/usr/share/pld/rat/configure_dpdk_mlx.py
  9. Reboot the machine that hosts the probe or the mediation engine and probe.
  10. MLNX drivers require root privileges for the Promiscuous Mode to be enabled. Assign root user privileges to the ocsm user.
  11. Open file in edit mode: /etc/passwd
  12. Change line ocsm:x:998:996::/opt/oracle/ocsm:/sbin/nologin to ocsm:x:0:0::/opt/oracle/ocsm:/sbin/nologin
  13. Restart the RAT service (pld-rat): systemctl restart pld-rat