vpp、dpdk环境搭建

mellox驱动适配dpdk编译安装

tar zxf MLNX_OFED_LINUX-5.0-1.0.0.0-rhel7.3-x86_64-ext.tgz
cd MLNX_OFED_LINUX-5.0-1.0.0.0-rhel7.3-x86_64-ext/
./mlnx_add_kernel_support.sh -m ./ --make-tgz --skip-repo
cd /tmp/
tar zxf MLNX_OFED_LINUX-5.0-1.0.0.0-rhel7.3-x86_64-ext.tgz
cd MLNX_OFED_LINUX-5.0-1.0.0.0-rhel7.3-x86_64-ext/
ls
./mlnxofedinstall --upstream-libs --dpdk --force --without-depcheck
/etc/init.d/openibd restart

vpp使用mellanox编译

make install-dep
make install-ext-deps DPDK_MLX5_PMD=y DPDK_MLX5_PMD_DLOPEN_DEPS=y
## Copy manually newly compiled shared module: ##
cp /opt/vpp/external/x86_64/lib/librte_pmd_mlx5_glue.so* /usr/lib64/
## Compile new binary: ##
make build-release vpp_uses_dpdk_mlx5_pmd=yes DPDK_MLX5_PMD_DLOPEN_DEPS=y

运行ldp接口下运行

echo 2048 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hu

你可能感兴趣的:(环境搭建)