Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvme/056: Add check for empty ddp capabilities
Fixes a shell syntax error that occurs when trying to perform bitwise AND operation on empty ddp capabilities. Now explicitly checks if ddp_caps hw returns empty string before proceeding with capability check. Improves error handling for non-ddp capable devices like qemu virtio-net. Without this patch qemu with virtio-net returns error: ``` tests/nvme/056: line 222: & 3: syntax error: operand expected (error token is "& 3") ``` With patch: ``` nvme/056 (tr=tcp) (enable zero copy offload and run rw traffic) [not run] runtime ... 0.150s No ddp capabilities found for enp0s6 ``` Signed-off-by: Denys Fedoryshchenko <[email protected]>
- Loading branch information