Skip to content

Commit

Permalink
Merge pull request #159 from nuclearcat/fix-056-empty-ddp
Browse files Browse the repository at this point in the history
nvme/056: Add check for empty ddp capabilities
  • Loading branch information
kawasaki authored Feb 18, 2025
2 parents 18914ab + 3379b12 commit 8bec47b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/nvme/056
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,12 @@ test() {
# get iface index
iface_idx=$(ip address | awk -F: "/${NVME_IFACE}/ { print \$1; exit; }")

# check if $(ddp_caps hw) is not empty
if [[ -z "$(ddp_caps hw)" ]]; then
SKIP_REASONS+=("No ddp capabilities found for ${NVME_IFACE}")
return
fi

# check hw supports ddp
if [[ $(( $(ddp_caps hw) & 3)) -ne 3 ]]; then
SKIP_REASONS+=("${NVME_IFACE} does not support nvme-tcp ddp offload")
Expand Down

0 comments on commit 8bec47b

Please sign in to comment.