mirror of
https://github.com/intel/intel-device-plugins-for-kubernetes.git
synced 2025-06-03 03:59:37 +00:00

Clear Linux enables DPDK QAT PMD so we can move to use everything from there. This saves maintenance efforts and we get more up-to-date DPDK. The DPDK version in this update gives a tool for compress perf too, for instance. The commit also adds kustomize scripts that overlay the original DPDK demo deployment to run dpdk-test-[compress|crypto|-perf test cases: $ kubectl apply -k deployments/qat_dpdk_app/test-compress1/ $ kubectl apply -f deployments/qat_dpdk_app/test-crypto1/ New test cases ('ptest's with varying parameters) can be easily added by following the pattern in test-[crypto|compress]1 directories. Signed-off-by: Mikko Ylinen <mikko.ylinen@intel.com>
23 lines
624 B
Bash
Executable File
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_WHITELIST=""
|
|
|
|
for i in `echo ${!QAT*}`; do PCI_WHITELIST="$PCI_WHITELIST -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_WHITELIST} -d ${MEMPOOL} -d ${PMD_QAT}"
|
|
|
|
dpdk-test-${TESTCMD}-perf ${EAL} -- ${PTEST} \
|