aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/fabrics.h
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2018-11-19 14:11:15 -0800
committerJens Axboe <axboe@kernel.dk>2018-12-07 22:26:57 -0700
commit8154ed730bc64f68bc28feb20e641c2e8a0eeba5 (patch)
tree21bf5541f51240be99e2b143890f64dd1c392353 /drivers/nvme/host/fabrics.h
parentnvmet: expose support for fabrics SQ flow control disable in treq (diff)
downloadlinux-dev-8154ed730bc64f68bc28feb20e641c2e8a0eeba5.tar.xz
linux-dev-8154ed730bc64f68bc28feb20e641c2e8a0eeba5.zip
nvme: disable fabrics SQ flow control when asked by the user
As for now, we don't care about sq_head pointer updates anyway, so at least allow the controller to micro-optimize by omiting this update. Note that we will probably need to support it when a controller that requires this comes along. Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme/host/fabrics.h')
-rw-r--r--drivers/nvme/host/fabrics.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/nvme/host/fabrics.h b/drivers/nvme/host/fabrics.h
index 6ea6275f332a..ecd9a006a091 100644
--- a/drivers/nvme/host/fabrics.h
+++ b/drivers/nvme/host/fabrics.h
@@ -58,6 +58,7 @@ enum {
NVMF_OPT_CTRL_LOSS_TMO = 1 << 11,
NVMF_OPT_HOST_ID = 1 << 12,
NVMF_OPT_DUP_CONNECT = 1 << 13,
+ NVMF_OPT_DISABLE_SQFLOW = 1 << 14,
};
/**
@@ -101,6 +102,7 @@ struct nvmf_ctrl_options {
unsigned int kato;
struct nvmf_host *host;
int max_reconnects;
+ bool disable_sqflow;
};
/*