Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4674271rwb; Tue, 8 Aug 2023 11:55:55 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHdpLZJHFNWyJ2CK4CZ9Mak8O80vqIwPVnx3JU/Ic2OIFarKlvA4K94co0boG7LKLVzEGaK X-Received: by 2002:a17:90a:d906:b0:268:2746:5c07 with SMTP id c6-20020a17090ad90600b0026827465c07mr380289pjv.43.1691520955306; Tue, 08 Aug 2023 11:55:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691520955; cv=none; d=google.com; s=arc-20160816; b=K9KLcM7nDnB1sHoQxT350vP9kaHCW3iqVyNnGzpPLfsoIS77wekecMzli4fPT/UxZ5 ltDO0bShsHhIC5rS2kohEqRA9BBy0s9vIywSNBmzupA/gNIUevBPeEqaPUw/poLA04Cu Mn/Ov8K9Jfce1JvRSVnXL83944FsoZ11ac4IMQnOyMl3Uq7N/8G2Blcv41oym4JlCAg/ IOTuic1gNYBNWfbQyTt+m3eB4VW3KVaVA7Y2833sIZr8rKX1HN7DHOVg6oMhQ/O+LDIn ax0qLHDxM32X9NHqbToGrJymIyf7H4vyg+FyvyILHCJ+7ip2+T1j3QHyxG/mCl6+m3OK aojg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=VWySdREPI5hHmHNzsFw3MuXRmrs7v8ANmnLx+oatmfQ=; fh=QTJHqEeAh3yMM9L6p3l77fEkLQFLjON5Sj4g+rR1ROc=; b=qmy8N1E/elYERjj/3T+MPpq1y2585FLIdkIPDp3HzwvZ48ClZ5SkGR7khHqh/JqZRL LzALGp6318BM6AfQmsL/HxZAxuiX3kV0PRb978HtiYX9Md9eFih+zP157nyASRdArDUP uNAhK+MacfCMUWVIk4uzIScsPZHvJr7IvfnNFlClTqgaPrTPGqsUAFdnmkyOCqziYuDv Bcvpug74ITzBBGkXWok2Ce7EGet1O0+fgurZHUTISOUynsW7SkC5PtygMkskp0fnKO2r QpSCLntA62ibu4tCOXa0ooXHVscOdeeMgWfCHY52lwOl+KJ+32c0fx90Tyf+9Mx9Cj5U X1xw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=zc83YCep; dkim=neutral (no key) header.i=@suse.de header.b=JJCqGQ2R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id mh1-20020a17090b4ac100b002680cee323dsi11503649pjb.119.2023.08.08.11.55.42; Tue, 08 Aug 2023 11:55:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=zc83YCep; dkim=neutral (no key) header.i=@suse.de header.b=JJCqGQ2R; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234843AbjHHRle (ORCPT + 99 others); Tue, 8 Aug 2023 13:41:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231238AbjHHRlK (ORCPT ); Tue, 8 Aug 2023 13:41:10 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9EB4358B for ; Tue, 8 Aug 2023 09:18:05 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id B75AD21B1D; Tue, 8 Aug 2023 09:09:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1691485767; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VWySdREPI5hHmHNzsFw3MuXRmrs7v8ANmnLx+oatmfQ=; b=zc83YCep0zi5/UZgrI7JZrCkXhjnJplzmjgMZUbbyF+0iK4Q81RRyCUIlvy3RjuHN4YxZE Lb8+CQWqbAJ3T3rEIlpl1DiICzG6tR3GG3fTwMXyns50bsSaw6PQ63OPjhejxGDMUeR810 5Oeaur7O5BAYisP3FEwgcypj0CHPDys= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1691485767; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VWySdREPI5hHmHNzsFw3MuXRmrs7v8ANmnLx+oatmfQ=; b=JJCqGQ2R7fLgP93TPNpnGAFSXzkFPOeTsvsapWVKcpSCzjdvTQUl/S4joX2lvsQuCOEsrC V3bEF8kghZe5MtDQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id A9AA313451; Tue, 8 Aug 2023 09:09:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id UKhmKUcG0mQvEAAAMHmgww (envelope-from ); Tue, 08 Aug 2023 09:09:27 +0000 Date: Tue, 8 Aug 2023 11:09:27 +0200 From: Daniel Wagner To: Sagi Grimberg Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Caleb Sander , Keith Busch Subject: Re: [PATCH libnvme v2 2/2] fabrics: Do not pass disable_sqflow if not supported Message-ID: References: <20230808070907.18834-1-dwagner@suse.de> <20230808070907.18834-3-dwagner@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 08, 2023 at 11:47:14AM +0300, Sagi Grimberg wrote: > I think you want to check this before the initial call > and avoid the retry altogether. > -- > - 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; > + else > + c->cfg.disable_sqflow = false; > > if (e->trtype == NVMF_TRTYPE_TCP && > (e->treq & NVMF_TREQ_REQUIRED || Yep, makes sense.