projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73eefc2
)
nvme-fc: use ctrl sgl check helper
author
Chaitanya Kulkarni
<chaitanya.kulkarni@wdc.com>
Thu, 10 Jun 2021 01:28:24 +0000
(18:28 -0700)
committer
Christoph Hellwig
<hch@lst.de>
Thu, 17 Jun 2021 13:51:18 +0000
(15:51 +0200)
Use the helper to check NVMe controller's SGL support.
Reviewed-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/fc.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/fc.c
b/drivers/nvme/host/fc.c
index 256e87721a01f25a13aa439cb383adc3e4fa0a0a..8a3c4814d21b78034fba903994674fd2db870b84 100644
(file)
--- a/
drivers/nvme/host/fc.c
+++ b/
drivers/nvme/host/fc.c
@@
-3111,7
+3111,7
@@
nvme_fc_create_association(struct nvme_fc_ctrl *ctrl)
}
/* FC-NVME supports normal SGL Data Block Descriptors */
- if (!
(ctrl->ctrl.sgls & ((1 << 0) | (1 << 1))
)) {
+ if (!
nvme_ctrl_sgl_supported(&ctrl->ctrl
)) {
dev_err(ctrl->ctrl.device,
"Mandatory sgls are not supported!\n");
goto out_disconnect_admin_queue;