From 6ffad87271499e6f1d08750491a12810aa57d555 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Tue, 8 Aug 2023 08:34:05 +0200 Subject: [PATCH] fabrics: Do not pass disable_sqflow if not supported Do not try to use disable_sqflow if the kernel actually supports this option. Reported-by: Sagi Grimberg Signed-off-by: Daniel Wagner Reviewed-by: Chaitanya Kulkarni --- src/nvme/fabrics.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nvme/fabrics.c b/src/nvme/fabrics.c index b04eb44a..6e434e44 100644 --- a/src/nvme/fabrics.c +++ b/src/nvme/fabrics.c @@ -1029,7 +1029,8 @@ nvme_ctrl_t nvmf_connect_disc_entry(nvme_host_t h, return NULL; } - if (e->treq & NVMF_TREQ_DISABLE_SQFLOW) + if (e->treq & NVMF_TREQ_DISABLE_SQFLOW && + nvmf_check_option(h->r, disable_sqflow)) c->cfg.disable_sqflow = true; if (e->trtype == NVMF_TRTYPE_TCP && -- 2.49.0