Skip to content

Commit 8bec47b

Browse files
authored
Merge pull request #159 from nuclearcat/fix-056-empty-ddp
nvme/056: Add check for empty ddp capabilities
2 parents 18914ab + 3379b12 commit 8bec47b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/nvme/056

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,12 @@ test() {
218218
# get iface index
219219
iface_idx=$(ip address | awk -F: "/${NVME_IFACE}/ { print \$1; exit; }")
220220

221+
# check if $(ddp_caps hw) is not empty
222+
if [[ -z "$(ddp_caps hw)" ]]; then
223+
SKIP_REASONS+=("No ddp capabilities found for ${NVME_IFACE}")
224+
return
225+
fi
226+
221227
# check hw supports ddp
222228
if [[ $(( $(ddp_caps hw) & 3)) -ne 3 ]]; then
223229
SKIP_REASONS+=("${NVME_IFACE} does not support nvme-tcp ddp offload")

0 commit comments

Comments
 (0)