2015-04-09 17:03:14 +00:00
|
|
|
#! /bin/sh -e
|
2018-05-03 07:30:11 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2015-04-09 17:03:14 +00:00
|
|
|
# Copyright 2015 6WIND S.A.
|
|
|
|
|
|
|
|
# Run a quick testpmd forwarding with null PMD without hugepage
|
|
|
|
|
|
|
|
build=${1:-build}
|
|
|
|
coremask=${2:-3} # default using cores 0 and 1
|
|
|
|
|
|
|
|
if grep -q SHARED_LIB=y $build/.config; then
|
|
|
|
pmd='-d librte_pmd_null.so'
|
|
|
|
fi
|
|
|
|
|
|
|
|
(sleep 1 && echo stop) |
|
|
|
|
$build/app/testpmd -c $coremask -n 1 --no-huge \
|
2016-10-06 10:34:23 +00:00
|
|
|
$pmd --vdev net_null1 --vdev net_null2 -- \
|
2015-04-09 17:03:14 +00:00
|
|
|
--total-num-mbufs=2048 -ia
|