-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstallDpdk.sh
More file actions
executable file
·41 lines (31 loc) · 1.29 KB
/
installDpdk.sh
File metadata and controls
executable file
·41 lines (31 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
. ./setDpdkPaths.bash
mkdir -p $DPDK_DIR
cd $DPDK_DIR
# install prereqs
sudo apt-get install libnuma-dev
sudo apt-get install libpcap-dev
# grab dpdk
echo "downloading dpdk..."
wget https://fast.dpdk.org/rel/dpdk-17.08.1.tar.xz
tar -xf dpdk-17.08.1.tar.xz
cd dpdk-stable-17.08.1
# enable drivers in build.
echo "enabling connectx-4 drivers..."
echo "# Compile burst-oriented Mellanox ConnectX-4 (MLX5) PMD" >> config/common_linuxapp
echo "CONFIG_RTE_LIBRTE_MLX5_PMD=y" >> config/common_linuxapp
echo "CONFIG_RTE_LIBRTE_MLX5_DEBUG=n" >> config/common_linuxapp
echo "CONFIG_RTE_LIBRTE_MLX5_TX_MP_CACHE=8" >> config/common_linuxapp
# enable connectx-3 drivers.
echo "enabling connectx-3 drivers..."
echo "# Compile connectx-3 drivers"
echo "CONFIG_RTE_LIBRTE_MLX4_PMD=y" >> config/common_linuxapp
echo "CONFIG_RTE_LIBRTE_MLX4_DEBUG=n" >> config/common_linuxapp
echo "CONFIG_RTE_LIBRTE_MLX4_SGE_WR_N=1" >> config/common_linuxapp
echo "CONFIG_RTE_LIBRTE_MLX4_MAX_INLINE=0" >> config/common_linuxapp
echo "CONFIG_RTE_LIBRTE_MLX4_TX_MP_CACHE=8" >> config/common_linuxapp
echo "CONFIG_RTE_LIBRTE_MLX4_SOFT_COUNTERS=1" >> config/common_linuxapp
# build
echo "building DPDK and installing to ./x86_64-native-linuxapp-gcc"
make -j16 install T=x86_64-native-linuxapp-gcc DESTDIR=./
# cleanup
rm ../dpdk-17.08.1.tar.xz