* 2019-07-09 현재 Napatech에서 제공되는 자료입니다.

 

Installing Napatech DPDK


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:

* DPDK에 대한 세부 설치 내용은 아래 DPDK 공식 홈페이지 문서를 참고하셔야 됩니다. Napatech에서는 DPDK에 관련된 간단한 설치 방법만 제공하고 자세한 내용에 대해서는 언급하고 있지 않습니다. 

·         
http://dpdk.org/doc/quick-start
·         http://dpdk.org/doc/guides/linux_gsg/index.html


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.
* Napatech에서 제공중인 DPDK에 대한 Version, Configuration, 지원 범위에 대해서는 Github의 readme 파일에 내용이 있습니다. 


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.
* 본 문서에서는 Napatech Software Installation에 대해서는 생략합니다. Napatech Software Installation 관련해서는 Installation Guide를 참고하시기 바랍니다. 
** DPDK 설치 전에 반드시 Napatech Software Package가 설치되어 있어야 합니다.

# 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.9release 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:
* DPDK Application 사용을 위해서는 Kernel Option에서 Hugepages 를 반드시 사용하여야 합니다.


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

+ Recent posts