1#! /bin/sh -e 2# SPDX-License-Identifier: BSD-3-Clause 3# Copyright 2015 6WIND S.A. 4 5# Run a quick testpmd forwarding with null PMD without hugepage 6 7build=${1:-build} 8coremask=${2:-3} # default using cores 0 and 1 9 10if grep -q SHARED_LIB=y $build/.config; then 11 pmd='-d librte_pmd_null.so' 12fi 13 14(sleep 1 && echo stop) | 15$build/app/testpmd -c $coremask -n 1 --no-huge \ 16 $pmd --vdev net_null1 --vdev net_null2 -- \ 17 --total-num-mbufs=2048 -ia 18