diff options
author | Peter Mikus <pmikus@cisco.com> | 2020-02-28 07:13:27 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2020-03-10 08:10:30 +0000 |
commit | a5e081794011deca6c3ed6f1e57f9a3a9fee6343 (patch) | |
tree | bfee74eff079edd4a35e9ca08075d76cd37d9fed /tests/dpdk/dpdk_scripts/run_l2fwd.sh | |
parent | c4fe133e5d81ce3543809355f8b560f026ee7725 (diff) |
Make RXQs/TXQs configurable
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I5d083f90c23792a8f1cb1c116698f92b99395942
Diffstat (limited to 'tests/dpdk/dpdk_scripts/run_l2fwd.sh')
-rwxr-xr-x | tests/dpdk/dpdk_scripts/run_l2fwd.sh | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/dpdk/dpdk_scripts/run_l2fwd.sh b/tests/dpdk/dpdk_scripts/run_l2fwd.sh index f15461e254..0ec4f2d85f 100755 --- a/tests/dpdk/dpdk_scripts/run_l2fwd.sh +++ b/tests/dpdk/dpdk_scripts/run_l2fwd.sh @@ -26,6 +26,8 @@ cpu_corelist="${1}" nb_cores="${2}" queue_nums="${3}" jumbo_frames="${4}" +rxd="${5:-128}" +txd="${6:-512}" arch="$(uname -m)" # DPDK prefers "arm64" to "aarch64" and does not allow arm64 native target. @@ -112,8 +114,8 @@ if [ "${jumbo_frames}" = "yes" ]; then --rxq=${queue_nums} \ --txq=$((${nb_cores} + 1)) \ --burst=64 \ - --rxd=1024 \ - --txd=1024 \ + --rxd=${rxd} \ + --txd=${txd} \ --disable-link-check \ --auto-start" else @@ -127,20 +129,20 @@ else --rxq=${queue_nums} \ --txq=$((${nb_cores} + 1)) \ --burst=64 \ - --rxd=1024 \ - --txd=1024 \ + --rxd=${rxd} \ + --txd=${txd} \ --disable-link-check \ --auto-start" fi for attempt in {1..60}; do echo "Checking if testpmd is alive, attempt nr ${attempt}" - fgrep "Port 1: link state change event" "${TESTPMDLOG}" + fgrep "Press enter to exit" "${TESTPMDLOG}" if [ "${?}" -eq "0" ]; then - cat "${TESTPMDLOG}" exit 0 fi sleep 1 done +cat "${TESTPMDLOG}" exit 1 |