intel-device-plugins-for-ku.../demo/crypto-perf/run-dpdk-test
Mikko Ylinen d935b41874 crypto-perf: update inclusive language
Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
2020-11-25 09:16:54 +02:00

23 lines
624 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 -w ${!i}"; done
# "The default mempool handler is ring based."
MEMPOOL=$(ls /usr/lib64/librte_mempool_ring.so*|tail -1)
PMD_QAT=$(ls /usr/lib64/librte_pmd_qat.so*|tail -1)
LCORE=$(cat /sys/fs/cgroup/cpuset/cpuset.cpus)
EAL="-l ${LCORE} ${PCI_ALLOWLIST} -d ${MEMPOOL} -d ${PMD_QAT}"
dpdk-test-${TESTCMD}-perf ${EAL} -- ${PTEST} \