summaryrefslogtreecommitdiffstats
path: root/src/spdk/scripts/gen_crypto.sh
blob: f92ea163d299977cf9a87155cb84d247f2416eb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash

set -e

rootdir=$(readlink -f $(dirname $0))/..
source "$rootdir/scripts/common.sh"

base_bdev=$1

if [ -n $base_bdev ]; then
        echo
        echo "[crypto]"
        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