test/blockdev.sh: Add config for accel mlx5 crypto ops
Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com> Change-Id: I632e65241203a9d6cedf8b33ddf4ed6a189ed5cc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15851 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
a1dfa7ec92
commit
969b563208
@ -195,6 +195,28 @@ function setup_crypto_sw_conf() {
|
||||
RPC
|
||||
}
|
||||
|
||||
function setup_crypto_accel_mlx5_conf() {
|
||||
"$rpc_py" <<- RPC
|
||||
mlx5_scan_accel_module
|
||||
accel_assign_opc -o encrypt -m mlx5
|
||||
accel_assign_opc -o decrypt -m mlx5
|
||||
framework_start_init
|
||||
bdev_malloc_create -b Malloc0 32 512
|
||||
bdev_malloc_create -b Malloc1 32 512
|
||||
bdev_malloc_create -b Malloc2 32 4096
|
||||
bdev_malloc_create -b Malloc3 32 4096
|
||||
accel_crypto_key_create -c AES_XTS -k 00112233445566778899001122334455 -e 11223344556677889900112233445500 -n test_dek_accel_mlx5_1
|
||||
accel_crypto_key_create -c AES_XTS -k 11223344556677889900112233445500 -e 22334455667788990011223344550011 -n test_dek_accel_mlx5_2
|
||||
accel_crypto_key_create -c AES_XTS -k 22334455667788990011223344550011 -e 33445566778899001122334455002233 -n test_dek_accel_mlx5_3
|
||||
accel_crypto_key_create -c AES_XTS -k 33445566778899001122334455001122 -e 44556677889900112233445500112233 -n test_dek_accel_mlx5_4
|
||||
bdev_crypto_create Malloc0 crypto_ram_1 -n test_dek_accel_mlx5_1
|
||||
bdev_crypto_create Malloc1 crypto_ram_2 -n test_dek_accel_mlx5_2
|
||||
bdev_crypto_create Malloc2 crypto_ram_3 -n test_dek_accel_mlx5_3
|
||||
bdev_crypto_create Malloc3 crypto_ram_4 -n test_dek_accel_mlx5_4
|
||||
bdev_get_bdevs -b Malloc1
|
||||
RPC
|
||||
}
|
||||
|
||||
function setup_crypto_mlx5_conf() {
|
||||
local key=$1
|
||||
local block_key
|
||||
@ -652,6 +674,9 @@ case "$test_type" in
|
||||
crypto_mlx5)
|
||||
setup_crypto_mlx5_conf $dek
|
||||
;;
|
||||
crypto_accel_mlx5)
|
||||
setup_crypto_accel_mlx5_conf
|
||||
;;
|
||||
pmem)
|
||||
setup_pmem_conf
|
||||
;;
|
||||
|
Loading…
Reference in New Issue
Block a user