host# sudo dpkg -i doca-host-repo-ubuntu_amd64.deb host# sudo apt-get update host# sudo apt install doca-tools host# sudo apt install -y doca-runtime doca-sdk host# sudo apt install -y doca-extra ifconfig tmfifo_net0 192.168.100.1 netmask 255.255.255.252 up
#C reate password hash. Run: host# openssl passwd -1 Password: Verifying - Password: $1$3B0RIrfX$TlHry93NFUJzg3Nya00rE1
host# sudo vim bf.cfg
When running the installation command, use the --config flag to provide the file containing the password:
host# sudo bfb-install --rshim --bfb <image_path.bfb> --config bf.cfg
Above referece installation found at https://docs.nvidia.com/doca/sdk/installation-guide-for-linux/index.html#determining-dpu-device-id
https://docs.nvidia.com/doca/sdk/scalable-functions/index.html
#Set Hugepages first sudo echo 2048 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages
doca_dpi_compiler -i /tmp/ddos.rules -o /tmp/ddos.cdo -f suricata
/opt/mellanox/doca/applications/ips/bin/doca_ips -a 0000:03:00.0,class=regex -a auxiliary:mlx5_core.sf.5,sft_en=1 -a auxiliary:mlx5_core.sf.6,sft_en=1 -l 0-7 -- --cdo /tmp/ddos.cdo -p