Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp3070269rwo; Thu, 3 Aug 2023 21:39:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHRJzqTQrUN50Uz2U6YsA81OCAhV/EZewSxhFXweUIJDutFU+OJn1Fdg+7LnhDdeW1HiQwY X-Received: by 2002:a17:902:ef8e:b0:1bb:91f2:bb32 with SMTP id iz14-20020a170902ef8e00b001bb91f2bb32mr765074plb.39.1691123966240; Thu, 03 Aug 2023 21:39:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691123966; cv=none; d=google.com; s=arc-20160816; b=lstQLccRIfubFsvPiuU0row9ifjr66z38uFvrHC5NKMAcRDpxXl/3MNJygDHB+ArvK MHYzk+HGGL7oT/6YI9tPDxWZifDo80at8KQnPdEA7U17kwc+0gLrq426phThW9yuUSRH +bFRdM4p70Cz/0LgxzvAMu6POmt2N00PMGILlKACZ9Sm0txFlt01E0x+iFJK6EQRjB/4 bLiHYQYyHkHK0kAAsqbVfYEYPwVbvyt/tbPUwCrWBT/9DkEIGXszkCrKHsOUDJcNdYM1 DUFv3nO1jW/o3D0FLn6bs4oIKMr6Sa+eLtgLoprBuuISpEv3NqgDIdSdNF1taqQ3is/n OVOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=QZXwfaFZW7vwj7t8pGf0ceaqGStzQvApi1LrHmXqyaQ=; fh=1xzsBgG9JBxZdlj/o9BfToGf1HkPuTaKU5GCqq0sBKM=; b=QATmkPOvsYPsN+8nzNcaEm3z1RdxLjl98MP4KmcTiFndGV8NDmVrzo4ups9MGrgETY KOb2aSysjHfV8t+B47RbNL3PUkuu7RiJWiiPR+Btfun7jrsrh/WZm6qMbE4ZiLLup0lt usqUJYOR0WwOHUZy4DlIw5v+5br2nyC0xTlXzt0CsjH2242W2O8dclPEUQjhTff0SD57 fnQMY1rRTDMv865QZnbmGjnX5NFzupD74G0ERBBtVFqoqZhCDbYU6iMDXIJZtVCZJhtk GxOZ5E0lR2bYWSEOxvxBKYL+x0DMFE8elXj8Qx+g65w7iNqrbF6ZAX99hMniO2sIxpiO tJow== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m18-20020a170902c45200b001bbca17f285si1036405plm.421.2023.08.03.21.39.14; Thu, 03 Aug 2023 21:39:26 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230344AbjHDECM (ORCPT + 99 others); Fri, 4 Aug 2023 00:02:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjHDECL (ORCPT ); Fri, 4 Aug 2023 00:02:11 -0400 Received: from out30-101.freemail.mail.aliyun.com (out30-101.freemail.mail.aliyun.com [115.124.30.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B66B2D69; Thu, 3 Aug 2023 21:02:08 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R801e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046049;MF=guangguan.wang@linux.alibaba.com;NM=1;PH=DS;RN=14;SR=0;TI=SMTPD_---0Vp-rkA7_1691121723; Received: from 30.221.100.251(mailfrom:guangguan.wang@linux.alibaba.com fp:SMTPD_---0Vp-rkA7_1691121723) by smtp.aliyun-inc.com; Fri, 04 Aug 2023 12:02:05 +0800 Message-ID: <4de725f9-6bc6-b150-c6cd-1bc185edc145@linux.alibaba.com> Date: Fri, 4 Aug 2023 12:02:03 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [RFC PATCH net-next 2/6] net/smc: add vendor unique experimental options area in clc handshake Content-Language: en-US To: Simon Horman Cc: wenjia@linux.ibm.com, jaka@linux.ibm.com, kgraul@linux.ibm.com, tonylu@linux.alibaba.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, alibuda@linux.alibaba.com, guwen@linux.alibaba.com, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230803132422.6280-1-guangguan.wang@linux.alibaba.com> <20230803132422.6280-3-guangguan.wang@linux.alibaba.com> From: Guangguan Wang In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL 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 I will fix it in the next version. Thanks, Guangguan Wang On 2023/8/4 01:45, Simon Horman wrote: > On Thu, Aug 03, 2023 at 09:24:18PM +0800, Guangguan Wang wrote: > > ... > > Hi Guangguan Wang, > >> @@ -987,12 +991,12 @@ static int smc_clc_send_confirm_accept(struct smc_sock *smc, >> { >> struct smc_connection *conn = &smc->conn; >> struct smc_clc_msg_accept_confirm *clc; >> - struct smc_clc_first_contact_ext fce; >> + struct smc_clc_first_contact_ext_v2x fce; >> struct smc_clc_fce_gid_ext gle; >> struct smc_clc_msg_trail trl; >> struct kvec vec[5]; >> struct msghdr msg; >> - int i, len; >> + int i, len, fce_len; > > Please preserve reverse xmas tree - longest line to shortest - > for local variable declarations: this is Networking code. > > https://github.com/ecree-solarflare/xmastree is your friend here. > > ...