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:
253a0b7
)
nvme-tcp: use ctrl sgl check helper
author
Chaitanya Kulkarni
<chaitanya.kulkarni@wdc.com>
Thu, 10 Jun 2021 01:28:26 +0000
(18:28 -0700)
committer
Christoph Hellwig
<hch@lst.de>
Thu, 17 Jun 2021 13:51:19 +0000
(15:51 +0200)
Use the helper to check NVMe controller's SGL support.
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/tcp.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/tcp.c
b/drivers/nvme/host/tcp.c
index 6a65b0516180f1908f822a6a4f48fc73d077f20d..c7bd37103cf402d7ffaed77c6f9f2cd3d3a0509d 100644
(file)
--- a/
drivers/nvme/host/tcp.c
+++ b/
drivers/nvme/host/tcp.c
@@
-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;