Skip to content

Commit

Permalink
nvme-tcp: use ctrl sgl check helper
Browse files Browse the repository at this point in the history
Use the helper to check NVMe controller's SGL support.

Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Chaitanya Kulkarni <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
  • Loading branch information
ChaitanayaKulkarni authored and Christoph Hellwig committed Jun 17, 2021
1 parent 253a0b7 commit 3b54064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/host/tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1993,7 +1993,7 @@ static int nvme_tcp_setup_ctrl(struct nvme_ctrl *ctrl, bool new)
goto destroy_admin;
}

if (!(ctrl->sgls & ((1 << 0) | (1 << 1)))) {
if (!nvme_ctrl_sgl_supported(ctrl)) {
ret = -EOPNOTSUPP;
dev_err(ctrl->device, "Mandatory sgls are not supported!\n");
goto destroy_admin;
Expand Down

0 comments on commit 3b54064

Please sign in to comment.