配置需求
1、Kernel >= 2.6.33
2、glibc >= 2.7
3、gcc >=4.9
4、libc headers: gcc-multilib (glibc-devel.i686 / libc6-dev-i386; glibc-devel.x86_64 / libc6-dev for 64-bit compilation on Intel architecture; glibc-devel.ppc64 for 64 bit IBM Power architecture;) 如果测试主机可以联网的话,缺什么到时候装什么即可
5、Kernel需要支持UIO、HUGETLBFS、PROC_PAGE_MONITOR
具体安装步骤
1、下载dpdk tar包
#wget https://fast.dpdk.org/rel/dpdk-17.11.tar.xz
2、解压,并进入dpdk根目录
#tar -xf dpdk-17.11.tar.xz
#cd dpdk-17.11
3、添加环境变量 RTE_SDK
#export RTE_SDK=<dpdk根目录>
4、执行dpdk安装脚本
#cd usertools
#./dpdk-setup.sh
4.1、根据根基环境选择dpdk编译环境进行编译
例如:x86_64-native-linuxapp-gcc(会在dpdk根目录下生成对应文件夹,存放编译好的内容)
4.2、选择安装的dpdk驱动,(igb_uio, vfio_pci, kni)
4.3、设置hugepage
5、检查dpdk驱动是否安装完成
lsmod可以显示对应模块,/sys/bus/pci/drivers/
下会有对应的dpdk驱动
#lsmod |grep <XXX>