Commit b69c95b6 authored by paul luse's avatar paul luse Committed by Tomasz Zawadzki
Browse files

blockdev.sh/ add QAT AES_XTS to CI

parent f241068f
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -56,10 +56,10 @@ function setup_gpt_conf() {
function setup_crypto_conf() {
	cat >$conf_file <<-EOF
		[Malloc]
		NumberOfLuns 2
		LunSizeInMB 32
		NumberOfLuns 3
		LunSizeInMB 16
	EOF
	$testdir/gen_crypto.sh Malloc0 Malloc1 >> $conf_file
	$testdir/gen_crypto.sh Malloc0 Malloc1 Malloc2 >> $conf_file
}

function setup_pmem_conf() {
+6 −1
Original line number Diff line number Diff line
@@ -5,11 +5,13 @@ set -e
rootdir=$(readlink -f $(dirname $0))/../..
source "$rootdir/scripts/common.sh"

# base_bdev will use QAT if available, otherwise AESNI
# base_bdev will use QAT AES_CBC if available, otherwise AESNI
# base_bdev2 will always use AESNI
# base_bdev3 will use QAT AES_XTS if available, otherwise not used
# This makes sure that AESNI always gets tested, even if QAT is available.
base_bdev=$1
base_bdev2=$2
base_bdev3=$3

echo
echo "[crypto]"
@@ -19,6 +21,9 @@ if [ -n "$base_bdev" ]; then
                echo "  CRY $base_bdev crypto_ram 0123456789123456 crypto_aesni_mb"
        else
                echo "  CRY $base_bdev crypto_ram 0123456789123456 crypto_qat"
                if [ -n "$base_bdev3" ]; then
                        echo "  CRY $base_bdev3 crypto_ram3 0123456789123456 crypto_qat AES_XTS 0123456789123456"
                fi
        fi
fi