From: Daniel Wagner Date: Tue, 8 Aug 2023 06:34:05 +0000 (+0200) Subject: fabrics: Do not pass disable_sqflow if not supported X-Git-Tag: v1.6~55 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6ffad87271499e6f1d08750491a12810aa57d555;p=users%2Fsagi%2Flibnvme.git 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 --- 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 &&