Installing Napatech DPDK

Installation and Use of Napatech Link™ Capture Software for Intel® PAC with Intel® Arria® 10 GX FPGA

product_line_custom
Intel® PAC
category
Quick Guide

Napatech DPDK is a fork of DPDK that supports Napatech drivers and SmartNICs.

DPDK documentation

Installing, compiling and running DPDK is quite complex. A full description can be found here:

Napatech DPDK readme

The latest Napatech DPDK readme file can be found at https://github.com/napatech/dpdk/blob/master/ntacc_readme.md

The readme file contains information on how to compile Napatech DPDK and set up the Napatech driver for DPDK.

Getting and compiling Napatech DPDK

Napatech DPDK can be downloaded or cloned from: https://github.com/napatech/dpdk/releases.

The environment variable NAPATECH3_PATH must be set to the Napatech driver installation root before compiling DPDK. The default installation root is /opt/napatech3.
# export NAPATECH3_PATH=/opt/napatech3
To get and compile Napatech DPDK, locate the latest release at https://github.com/napatech/dpdk/releases. In this example, the v18.08.0_1.9 release is used:
# wget https://github.com/napatech/dpdk/archive/v18.08.0_1.9.tar.gz
# tar xvf v18.08.0_1.9.tar.gz
# cd dpdk-v18.08.0_1.9/
# make config T=x86_64-native-linuxapp-gcc install
# make -j

DPDK and hugepages

To run any DPDK application, the Linux kernel option hugepages must be enabled.

Edit the file /etc/default/grub and change or add to the following line:

GRUB_CMDLINE_LINUX_DEFAULT="default_hugepagesz=1G hugepagesz=1G hugepages=2"
If you are using UEFI based boot, run this after editing /etc/default/grub:
sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
Else run this:
sudo grub2-mkconfig -o /boot/grub2/grub.cfg