Рубрики
*NIX информация

debian 11 / dpdk / Data Plane Development Kit

Ссылки:

https://git.dpdk.org/dpdk/commit/?h=releases
https://habr.com/ru/company/intel/blog/302126/
https://habr.com/ru/post/267591/

/etc/apt/sources.list

deb http://deb.debian.org/debian bullseye main contrib non-free
deb-src http://deb.debian.org/debian bullseye main contrib non-free
 
deb http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
deb-src http://deb.debian.org/debian-security/ bullseye-security main contrib non-free
 
deb http://deb.debian.org/debian bullseye-updates main contrib non-free
deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free
 
deb http://deb.debian.org/debian bullseye-backports main contrib non-free
deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free

Ставим пакеты:

apt install lshw vim wget git make gcc linux-libc-dev linux-headers-amd64 pkg-config libncurses-dev flex bison  libssl-dev libelf-dev dwarves rsync bc fakeroot build-essential  xz-utils  libncurses5-dev 
apt install python python3-distutils python3-apt

Настроим python:

apt install python python3-distutils python3-apt python3-pyelftools
update-alternatives --install /usr/bin/python python /usr/bin/python3.9 1

Скачаем исходники dpdk:

cd /opt
wget https://git.dpdk.org/dpdk/snapshot/dpdk-releases.tar.gz
tar xvf dpdk-releases.tar.gz 

Tools dpdk

cd /opt/dpdk-releases/usertools
./cpu_layout.py - проверяем что там у нас по CPU
##./dpdk_nic_bind.py --status - проверяем информацию по сетевым устройствам (в новых версиях это "dpdk-devbind.py")
./dpdk-devbind.py --status - проверяем информацию по сетевым устройствам
#./setup.sh - файл помогающий настроить dpdk под вашу систему (в новых версиях делается в скриптах в каталоге ".cli")

cd /opt/dpdk-releases/.ci
./linux-setup.sh  - скрипт позволит настроить вашу систему для работы с dpdk