6 # set arch, default to x86_64 if none given
10 # dpdk prefers "arm64" to "aarch64" and does not allow arm64 native target
11 if [ $ARCH == "aarch64" ]; then
19 ROOTDIR=/tmp/openvpp-testing
23 export RTE_SDK=${ROOTDIR}/${DPDK_DIR}/
24 export RTE_TARGET=${ARCH}-${MACHINE}-linuxapp-gcc
25 cd ${RTE_SDK}/examples/l3fwd
26 sudo sed -i 's/^#define RTE_TEST_RX_DESC_DEFAULT 128/#define RTE_TEST_RX_DESC_DEFAULT 2048/g' ./main.c
27 sudo sed -i 's/^#define RTE_TEST_TX_DESC_DEFAULT 512/#define RTE_TEST_TX_DESC_DEFAULT 2048/g' ./main.c
29 chmod +x ${PATCH} && source ${PATCH}
33 { echo "Failed to compile l3fwd"; exit 1; }