aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/fabrics.h
diff options
context:
space:
mode:
authorSagi Grimberg <sagi@grimberg.me>2018-10-18 17:40:40 -0700
committerChristoph Hellwig <hch@lst.de>2018-10-19 14:22:24 +0200
commitb7c7be6f6bd28ffea7f608ac2d806b8a4bdc82fe (patch)
treeeb4a21a9f531055161d0fc348633b38c15d7b664 /drivers/nvme/host/fabrics.h
parentnvme-rdma: always have a valid trsvcid (diff)
downloadlinux-dev-b7c7be6f6bd28ffea7f608ac2d806b8a4bdc82fe.tar.xz
linux-dev-b7c7be6f6bd28ffea7f608ac2d806b8a4bdc82fe.zip
nvme-fabrics: move controller options matching to fabrics
IP transports will most likely use the same controller options matching when detecting a duplicate connect. Move it to fabrics. Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Christoph Hellwig <hch@lst.de>
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 aa2fdb2a2e8f..6ea6275f332a 100644
--- a/drivers/nvme/host/fabrics.h
+++ b/drivers/nvme/host/fabrics.h
@@ -166,6 +166,8 @@ blk_status_t nvmf_fail_nonready_command(struct nvme_ctrl *ctrl,
struct request *rq);
bool __nvmf_check_ready(struct nvme_ctrl *ctrl, struct request *rq,
bool queue_live);
+bool nvmf_ip_options_match(struct nvme_ctrl *ctrl,
+ struct nvmf_ctrl_options *opts);
static inline bool nvmf_check_ready(struct nvme_ctrl *ctrl, struct request *rq,
bool queue_live)