test/nvmf: Add DIF test utilizing the digest functionality
Signed-off-by: Michal Berger <michalx.berger@intel.com> Change-Id: I511d04ff75d5b6b4213e6186b0314a5db1ce722d Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/6028 Community-CI: Broadcom CI Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
This commit is contained in:
parent
05aeb9db27
commit
37d8b241a8
@ -406,7 +406,9 @@ function gen_nvmf_target_json() {
|
|||||||
"adrfam": "ipv4",
|
"adrfam": "ipv4",
|
||||||
"trsvcid": "$NVMF_PORT",
|
"trsvcid": "$NVMF_PORT",
|
||||||
"subnqn": "nqn.2016-06.io.spdk:cnode$subsystem",
|
"subnqn": "nqn.2016-06.io.spdk:cnode$subsystem",
|
||||||
"hostnqn": "nqn.2016-06.io.spdk:host$subsystem"
|
"hostnqn": "nqn.2016-06.io.spdk:host$subsystem",
|
||||||
|
"hdgst": ${hdgst:-false},
|
||||||
|
"ddgst": ${ddgst:-false}
|
||||||
},
|
},
|
||||||
"method": "bdev_nvme_attach_controller"
|
"method": "bdev_nvme_attach_controller"
|
||||||
}
|
}
|
||||||
|
@ -115,6 +115,19 @@ fio_dif_rand_params() {
|
|||||||
destroy_subsystems 0 1
|
destroy_subsystems 0 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fio_dif_digest() {
|
||||||
|
local NULL_DIF
|
||||||
|
local bs numjobs runtime iodepth files
|
||||||
|
local hdgst ddgst
|
||||||
|
|
||||||
|
NULL_DIF=3 bs=128k,128k,128k numjobs=3 iodepth=3 runtime=10
|
||||||
|
hdgst=true ddgst=true
|
||||||
|
|
||||||
|
create_subsystems 0
|
||||||
|
fio <(create_json_sub_conf 0)
|
||||||
|
destroy_subsystems 0
|
||||||
|
}
|
||||||
|
|
||||||
nvmftestinit
|
nvmftestinit
|
||||||
NVMF_TRANSPORT_OPTS+=" --dif-insert-or-strip"
|
NVMF_TRANSPORT_OPTS+=" --dif-insert-or-strip"
|
||||||
nvmfappstart
|
nvmfappstart
|
||||||
@ -124,6 +137,7 @@ create_transport
|
|||||||
run_test "fio_dif_1_default" fio_dif_1
|
run_test "fio_dif_1_default" fio_dif_1
|
||||||
run_test "fio_dif_1_multi_subsystems" fio_dif_1_multi_subsystems
|
run_test "fio_dif_1_multi_subsystems" fio_dif_1_multi_subsystems
|
||||||
run_test "fio_dif_rand_params" fio_dif_rand_params
|
run_test "fio_dif_rand_params" fio_dif_rand_params
|
||||||
|
run_test "fio_dif_digest" fio_dif_digest
|
||||||
|
|
||||||
trap - SIGINT SIGTERM EXIT
|
trap - SIGINT SIGTERM EXIT
|
||||||
nvmftestfini
|
nvmftestfini
|
||||||
|
Loading…
Reference in New Issue
Block a user