Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3974868rdg; Wed, 18 Oct 2023 11:01:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFkzscEn16IkT9GQQoZaVSeKlp09h/MPIxIgbf14nX+2CDc6rPlOvezGAwCDSUXbc07Ba6C X-Received: by 2002:a05:6358:7293:b0:13a:4855:d885 with SMTP id w19-20020a056358729300b0013a4855d885mr7372810rwf.10.1697652118611; Wed, 18 Oct 2023 11:01:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697652118; cv=none; d=google.com; s=arc-20160816; b=VgmqXzJP4J/E2jeb3Lp4J8MRwNbuN159nsws8zxi249plXcK8S1/BZRgalyYElL3hn o+1hFfoexJ2nKJLNG+66UT3BExrProaFfObPLH+Gp/HvrAv8/dByJts265qep0dqmFUr QF5hrLeB8Jx9qvbMruHN2wU5dUWGq4oAwhWMM0frGTBYuAZZrTihfCq20VJtg9cCEpu2 MJt1/Z7stFdEef5+cHd1PiiQE/VcCtR9Uc2MgMstuCVuzf9PagCbfmxMXLQtZM6qDvbU azP6rujGndVU9B+hNJU4IuwtcT2AfmtR5v4cfa99h1/T5uudaP9jb0F9RVqt80lkyG5H 5w3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=rYi0+U9fKpUiE944Q4FI2Q8AuJTbrE4Nwv48/VdpirE=; fh=4bGJ59eP4lE62ahzsURZQU7xwAP+417OsgZDrevlAZs=; b=xb+yhrNaGoIv6Wk4WsC9MidvrzZE86VFPreFUmgqosE+RIgjMFMYKPAvFaCwtSchBM E849R42zHaa17zJ2n7krVtZaj1zLB8FL0o6j+PL1VrqPPQlf5P/WUzdYawM2pgjvhesd iAyBs6OLMHVB+wp8XLPbY6GhUe5+hv50fTcieVpL1DZ9jNJLyupw9nCmX3hL06Z8Nc// 3QYDzusICnoKuTqdsQK1rNM2q8AkhL3p5gulS1CenUjErLkHUz3Z/r6DJyjcMKrsmz9D ES+pwnKdYkLD7nCY4+ueSP82TUZPDvWZ4MdGaLPmVVtM6K4XReqtsFrqUD/8tzXk6H+0 PWcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GRploEu5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id b7-20020a62cf07000000b0068a5877bfaesi4266527pfg.382.2023.10.18.11.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 11:01:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GRploEu5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id CC14D80CBF29; Wed, 18 Oct 2023 11:01:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235271AbjJRSA4 (ORCPT + 99 others); Wed, 18 Oct 2023 14:00:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235223AbjJRSAk (ORCPT ); Wed, 18 Oct 2023 14:00:40 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02555D69; Wed, 18 Oct 2023 11:00:33 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E6F4AC433C8; Wed, 18 Oct 2023 18:00:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697652033; bh=fwBe8jxgE+4u2AB8YE8yDH3Vb62bVELd+j7oqk5Rn4Q=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=GRploEu5vVGFSUtxMPZlDvYI8uwkxN8TXTL7FTK2BH7RYIJP/SbXnThNur53RqICi BbyvFT7Vu/7JLmlTIcwQImHqyXgm0lsQt1Hw4Q1yRHSZvWMbBthgzaigI/aiJ4zvJB 6tXPEmAvjzNI5hR8SN3w8G+zf9S/Hm18QUcwsCEl5VEhjjIPRMUZ2y7W78Tojnksgk U93LqcGSiE7mPcEnr2cV40SE8BHyU/uDmFE29TTTEj84eMtRqJjPSSNk1s30NjIM5S xkeFN1jZ+1KudK4rUOOOEAOGlQIAttXMmjfCU890omzq4SHZBYFuYhxNeCrwbxv7n2 oIppS4TtQ1xwg== Date: Wed, 18 Oct 2023 11:00:32 -0700 From: Jakub Kicinski To: Guangguan Wang Cc: kgraul@linux.ibm.com, wenjia@linux.ibm.com, jaka@linux.ibm.com, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, tonylu@linux.alibaba.com, alibuda@linux.alibaba.com, guwen@linux.alibaba.com, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net v2 2/2] net/smc: correct the reason code in smc_listen_find_device when fallback Message-ID: <20231018110032.13322b8e@kernel.org> In-Reply-To: <20231017124234.99574-3-guangguan.wang@linux.alibaba.com> References: <20231017124234.99574-1-guangguan.wang@linux.alibaba.com> <20231017124234.99574-3-guangguan.wang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 18 Oct 2023 11:01:38 -0700 (PDT) On Tue, 17 Oct 2023 20:42:34 +0800 Guangguan Wang wrote: > The ini->rc is used to store the last error happened when finding usable > ism or rdma device in smc_listen_find_device, and is set by calling smc_ > find_device_store_rc. Once the ini->rc is assigned to an none-zero value, > the value can not be overwritten anymore. So the ini-rc should be set to > the error reason only when an error actually occurs. > > When finding ISM/RDMA devices, device not found is not a real error, as > not all machine have ISM/RDMA devices. Failures after device found, when > initializing device or when initializing connection, is real errors, and > should be store in ini->rc. > > SMC_CLC_DECL_DIFFPREFIX also is not a real error, as for SMC-RV2, it is > not require same prefix. If it's important enough to be a fix this late in the release cycle, it better come with a Fixes tag... -- pw-bot: cr