1. 环境

1.1 安装环境

$ sudo yum install gcc make
$ sudo yum install libpcap libpcap-devel
$ sudo yum install numactl numactl-devel

1.2 内核库验证

$ uname -r
3.10.0-1160.21.1.el7.x86_64

$ sudo yum info kernel-devel
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirrors.163.com
 * extras: mirrors.163.com
 * updates: mirrors.163.com
已安装的软件包
名称    :kernel-devel
架构    :x86_64
版本    :3.10.0
发布    :1160.21.1.el7
大小    :38 M
源    :installed
来自源:updates
简介    : Development package for building kernel modules to match the kernel
网址    :http://www.kernel.org/
协议    : GPLv2
描述    : This package provides kernel headers and makefiles sufficient to build modules
         : against the kernel package.


2. 安装DPDK

2.1 下载源码

$ wget https://git.dpdk.org/dpdk/snapshot/dpdk-18.11.tar.gz

2.2 编译

$ tar -xvf dpdk-18.11.tar.gz
$ cd dpdk-18.11

$ make config T=x86_64-native-linuxapp-gcc
Configuration done using x86_64-native-linuxapp-gcc
$ sed -ri 's,(PMD_PCAP=).*,\1y,' build/.config
$ make


3. 验证与测试