196b8e6f27
This script is not general purpose like gen_nvme.sh, so move it to the test directory at least for now. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I22df9375a8fcd585884523f22dae8ba9354768d3 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/451785 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
28 lines
703 B
Bash
Executable File
28 lines
703 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
rootdir=$(readlink -f $(dirname $0))/../..
|
|
source "$rootdir/scripts/common.sh"
|
|
|
|
# base_bdev will use QAT if available, otherwise AESNI
|
|
# base_bdev2 will always use AESNI
|
|
# This makes sure that AESNI always gets tested, even if QAT is available.
|
|
base_bdev=$1
|
|
base_bdev2=$2
|
|
|
|
echo
|
|
echo "[crypto]"
|
|
|
|
if [ -n $base_bdev ]; then
|
|
if [ $(lspci -d:37c8 | wc -l) -eq 0 ]; then
|
|
echo " CRY $base_bdev crypto_ram 0123456789123456 crypto_aesni_mb"
|
|
else
|
|
echo " CRY $base_bdev crypto_ram 0123456789123456 crypto_qat"
|
|
fi
|
|
fi
|
|
|
|
if [ -n $base_bdev2 ]; then
|
|
echo " CRY $base_bdev2 crypto_ram2 9012345678912345 crypto_aesni_mb"
|
|
fi
|