Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3544545rdg; Tue, 17 Oct 2023 20:19:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFCFgghVuCz2R6uOiZ8NS3cVl5qdzOjWiHwaMgnYMYAIWZC4jMpJR+fqyGYK/ibMyBG6XbK X-Received: by 2002:a05:6300:8001:b0:157:b453:dbb9 with SMTP id an1-20020a056300800100b00157b453dbb9mr3517709pzc.6.1697599140915; Tue, 17 Oct 2023 20:19:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697599140; cv=none; d=google.com; s=arc-20160816; b=G9bjeUPoxiWMDRDEFPec0YK4YJkGDs1TA71xs5ut8ttxFHz0KzbMXMXGdEBZszuzHl cNbULvwqDZjYINRy00s5qeWMUL4fBq4zor9SEOuyaA3gE6fY+DVmEBE7D6nl4uw+oY/3 3nilg400nUJdMR8zh3AyrwFZA8OFOV+FdGVRdySfCap0O5F788RF8Bhod17vB4c/lgdz HEqgeo+7Hfc2Ib6kxxJYq/TfPspkRHQJGcReMoEza0wifcZSB5vG6A/CoYCOG0HA/71V /5+ebwA8TW/tevrJWdJbxGTN7dmcavCQKU5RQWuDLUTotNoPUFwYMPNTZw0LaC+7iktt OYBQ== 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:reply-to:message-id:subject:cc:to:from:date; bh=E7neCwJliwQZGtTX2uq3qb+6KnL5wGmra2QiFqwxh3o=; fh=5ExKVZvO0yNP20ccw/rKFrGH0uW70ZI8WvADUHUjncE=; b=K0eRC0W2D7OFsrka2ozH7pt01yiMTBTSdxf7ljsoBp24nwczpPoSR9LCAmMpuEF4M6 3kNd3/t0IHC1NlPGH06V5s2ocGemmXGRcvOWEj3opcaNNwOk70OkTImyJLd01qHpCtzl Apez6jkOGuEGWDhPwlKrxqiWuZU6WSotAdMuVVh0qNL7E51vWWlv47OpHIqlImORmL5R yCntqns/nN8I7EU5blJLZXIOmL2HqqKwLT/9W6De6XufddAVqnc/LAetVlMoXh+psmky H9guZkbJ1Gie6NP5EndIho5gAeunsAADoyHO3/kZBfCSWwtE4H5pCjiC0NVbsdKHvar1 Tdgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id ga1-20020a17090b038100b0027b348ac5c2si562718pjb.50.2023.10.17.20.19.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 20:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 165D3803ACAD; Tue, 17 Oct 2023 20:18:58 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229495AbjJRDSt (ORCPT + 99 others); Tue, 17 Oct 2023 23:18:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjJRDSr (ORCPT ); Tue, 17 Oct 2023 23:18:47 -0400 Received: from out30-100.freemail.mail.aliyun.com (out30-100.freemail.mail.aliyun.com [115.124.30.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D42ABA; Tue, 17 Oct 2023 20:18:44 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R201e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046056;MF=dust.li@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0VuPHcIo_1697599120; Received: from localhost(mailfrom:dust.li@linux.alibaba.com fp:SMTPD_---0VuPHcIo_1697599120) by smtp.aliyun-inc.com; Wed, 18 Oct 2023 11:18:41 +0800 Date: Wed, 18 Oct 2023 11:18:40 +0800 From: Dust Li To: Guangguan Wang , kgraul@linux.ibm.com, wenjia@linux.ibm.com, jaka@linux.ibm.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: 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 1/2] net/smc: change function name from smc_find_ism_store_rc to smc_find_device_store_rc Message-ID: <20231018031840.GX92403@linux.alibaba.com> Reply-To: dust.li@linux.alibaba.com References: <20231017124234.99574-1-guangguan.wang@linux.alibaba.com> <20231017124234.99574-2-guangguan.wang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231017124234.99574-2-guangguan.wang@linux.alibaba.com> X-Spam-Status: No, score=-0.7 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Tue, 17 Oct 2023 20:18:58 -0700 (PDT) On Tue, Oct 17, 2023 at 08:42:33PM +0800, Guangguan Wang wrote: >The function smc_find_ism_store_rc is not only used for ism, so it is >reasonable to change the function name to smc_find_device_store_rc. > >Signed-off-by: Guangguan Wang Reviewed-by: Dust Li >--- > net/smc/af_smc.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > >diff --git a/net/smc/af_smc.c b/net/smc/af_smc.c >index 35ddebae8894..b3a67a168495 100644 >--- a/net/smc/af_smc.c >+++ b/net/smc/af_smc.c >@@ -2122,7 +2122,7 @@ static void smc_check_ism_v2_match(struct smc_init_info *ini, > } > } > >-static void smc_find_ism_store_rc(u32 rc, struct smc_init_info *ini) >+static void smc_find_device_store_rc(u32 rc, struct smc_init_info *ini) > { > if (!ini->rc) > ini->rc = rc; >@@ -2164,7 +2164,7 @@ static void smc_find_ism_v2_device_serv(struct smc_sock *new_smc, > mutex_unlock(&smcd_dev_list.mutex); > > if (!ini->ism_dev[0]) { >- smc_find_ism_store_rc(SMC_CLC_DECL_NOSMCD2DEV, ini); >+ smc_find_device_store_rc(SMC_CLC_DECL_NOSMCD2DEV, ini); > goto not_found; > } > >@@ -2181,7 +2181,7 @@ static void smc_find_ism_v2_device_serv(struct smc_sock *new_smc, > ini->ism_selected = i; > rc = smc_listen_ism_init(new_smc, ini); > if (rc) { >- smc_find_ism_store_rc(rc, ini); >+ smc_find_device_store_rc(rc, ini); > /* try next active ISM device */ > continue; > } >@@ -2218,7 +2218,7 @@ static void smc_find_ism_v1_device_serv(struct smc_sock *new_smc, > return; /* V1 ISM device found */ > > not_found: >- smc_find_ism_store_rc(rc, ini); >+ smc_find_device_store_rc(rc, ini); > ini->smcd_version &= ~SMC_V1; > ini->ism_dev[0] = NULL; > ini->is_smcd = false; >@@ -2268,7 +2268,7 @@ static void smc_find_rdma_v2_device_serv(struct smc_sock *new_smc, > ini->smcrv2.daddr = smc_ib_gid_to_ipv4(smc_v2_ext->roce); > rc = smc_find_rdma_device(new_smc, ini); > if (rc) { >- smc_find_ism_store_rc(rc, ini); >+ smc_find_device_store_rc(rc, ini); > goto not_found; > } > if (!ini->smcrv2.uses_gateway) >@@ -2285,7 +2285,7 @@ static void smc_find_rdma_v2_device_serv(struct smc_sock *new_smc, > if (!rc) > return; > ini->smcr_version = smcr_version; >- smc_find_ism_store_rc(rc, ini); >+ smc_find_device_store_rc(rc, ini); > > not_found: > ini->smcr_version &= ~SMC_V2; >@@ -2332,7 +2332,7 @@ static int smc_listen_find_device(struct smc_sock *new_smc, > /* check for matching IP prefix and subnet length (V1) */ > prfx_rc = smc_listen_prfx_check(new_smc, pclc); > if (prfx_rc) >- smc_find_ism_store_rc(prfx_rc, ini); >+ smc_find_device_store_rc(prfx_rc, ini); > > /* get vlan id from IP device */ > if (smc_vlan_by_tcpsk(new_smc->clcsock, ini)) >@@ -2359,7 +2359,7 @@ static int smc_listen_find_device(struct smc_sock *new_smc, > int rc; > > rc = smc_find_rdma_v1_device_serv(new_smc, pclc, ini); >- smc_find_ism_store_rc(rc, ini); >+ smc_find_device_store_rc(rc, ini); > return (!rc) ? 0 : ini->rc; > } > return prfx_rc; >-- >2.24.3 (Apple Git-128)