Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2562857rwo; Thu, 3 Aug 2023 11:10:46 -0700 (PDT) X-Google-Smtp-Source: APBJJlFxXKwAao2XJ8eTjuJHz7MO+9pIFf1AIrzZkBI+TM2qe7CYd9xJJ9iXdYOkq1fCooRB9jB0 X-Received: by 2002:a17:902:e542:b0:1b6:6f12:502e with SMTP id n2-20020a170902e54200b001b66f12502emr24287992plf.49.1691086246011; Thu, 03 Aug 2023 11:10:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691086245; cv=none; d=google.com; s=arc-20160816; b=X1WHco4u71G9cOt77Ho16EAnkC2ozYnyFSHj+2DdGgGcgB8q6s3ZHlCZIQo/g/xwyh qoo/iZ59s4xOQLprDk6BeO5c80IFPziBT0s3dvi6xWYTYmrvU2UDm0Nr3SS5lRynkwHM UWqub2o7Xc0qoQQN+dzlm+QaLHm8KX0HPCWgV5gfwyIb6IEesATljTR+8H0Z9i8kaqHE mdIJi8M7YvcfrklfeEKkruhmB9gyMWPT5f0EFMoWKIerfIhwXnaHr+6hSHuqsk5OwSKa wCz54IEX75t5eXdbn5pKLJxNF9fyU6bopNW8iNmR0gGty2OGM5ogqo/0vPCdxXofyZjd WY7w== 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; bh=TifvFYDWfQLZ4TtR+DUcuwSOWQ/o4oZIszWaAHM3so8=; fh=Hy2FJTcW6jS241wy3YFtpY6l9iOLxY7KM+SfYMAuaIc=; b=lOwkWZ3wsUMbs+zA87Ix8MTTmosWSMJYVuc2gaX1NZPDJnma1WNtqwdJbwg3cvwF6M cIcUOx4b3jj7vN4FtS7yXrBladzzPOoQrnEo8JrsNxhasY1eNswuJYy0kH4OTAEMXnYp 8WSYntFm4PgnY2t4cVIawikShkVExZORBzIYlbSYt/lqknhmmQzARRPr3H5eT4HCRQvu Ae23xYurXJrSSNAVGTVHbIRexXK4B68KLHlV3VmarK+BT3vC96nrOL/cfgPVepG2QcZn 7nVIaRuo4qnEWeM2dlfGs93//CLeL/KK41GHc7SHLradgl1eyIdY5GZ6lByHaXPcPy/Q EJzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=aQauctMi; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t7-20020a1709027fc700b001aafb271d13si269810plb.235.2023.08.03.11.10.31; Thu, 03 Aug 2023 11:10:45 -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=@kernel.org header.s=k20201202 header.b=aQauctMi; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233098AbjHCRqA (ORCPT + 99 others); Thu, 3 Aug 2023 13:46:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235243AbjHCRpj (ORCPT ); Thu, 3 Aug 2023 13:45:39 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02C8C3C2F; Thu, 3 Aug 2023 10:45:38 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 954F461E59; Thu, 3 Aug 2023 17:45:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7F080C433C8; Thu, 3 Aug 2023 17:45:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1691084737; bh=NYvjsiwLCUT+hyfVYpuPUB20GDyJSX72vAXBvPGj2PA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aQauctMikTrBSs0A223sKVV9gnlWChPOmPXl4We56DDOlaag0jx6V7fYL32u2XCgD Ao3c62a3ydN1UYQtyQhpAVqHmC5cIhncBzEOtQwEb10O4fC70+xMUcA3bn8lIFtQeA 2axsTcuHdFMEfiMBA6PHVLN5xMC0542jQVK/VPus5MBSy1QpKTKttN/szSrc3Omlch +q0w4Yl86J5SdCwCGK2oiV1UyiAz6WoHeACGCD9qUlmEsLUY6uaYCoiwN5DRye87UR f4Y5zpoQ6EFIzeD4fVUex6wcnSXpuqpHRRKoLPTC3om1DxlbLn8CNxJ2c115AyXXH9 pK6EMIbUKqEFg== Date: Thu, 3 Aug 2023 19:45:32 +0200 From: Simon Horman To: Guangguan Wang 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 Subject: Re: [RFC PATCH net-next 2/6] net/smc: add vendor unique experimental options area in clc handshake Message-ID: References: <20230803132422.6280-1-guangguan.wang@linux.alibaba.com> <20230803132422.6280-3-guangguan.wang@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230803132422.6280-3-guangguan.wang@linux.alibaba.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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. ...