intel-device-plugins-for-ku.../demo/crypto-perf/run-dpdk-test
Mikko Ylinen 15f74929e1 demo: crypto-perf: update test tool parameters
The run-dpdk-test helper script builds dpdk-test-[compress|crypto]-perf
command line parameters dynamically. Some of the parameters were changed
in the recent DPDK builds and need updating.

Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2021-08-05 09:33:16 +03:00

20 lines
440 B
Bash
Executable File

#!/bin/bash
# expect $TESTCMD, $PTEST, and $QAT* are set
set -u
if [ "${TESTCMD}" != "crypto" ] && [ "${TESTCMD}" != "compress" ]; then
echo "run-dpdk-test: TESTCMD must be either crypto or compress"
exit 1
fi
PCI_ALLOWLIST=""
for i in `echo ${!QAT*}`; do PCI_ALLOWLIST="$PCI_ALLOWLIST -a ${!i}"; done
LCORE=$(cat /sys/fs/cgroup/cpuset/cpuset.cpus)
EAL="-l ${LCORE} ${PCI_ALLOWLIST}"
dpdk-test-${TESTCMD}-perf ${EAL} -- ${PTEST} \