Received: by 2002:a05:6500:1b41:b0:1fb:d597:ff75 with SMTP id cz1csp29718lqb; Tue, 4 Jun 2024 04:13:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUns2i9Nrfe75ntsywSD/kWWZWdutJapE7yNXLGLvRlra8XgZN2nkG4Aqp7J6o9UStT25Oj4M8aj91DMiB1l8S9WT94RVtFgbqKYPGZCw== X-Google-Smtp-Source: AGHT+IG0uUFsv0vMyDi8VoMnlTpTZ0RjKAfA9HFWI6Qjovr3pfIvDs0ZthYxJRLWeoD1soRJMoaC X-Received: by 2002:a05:6870:ec8a:b0:24f:c95b:aca with SMTP id 586e51a60fabf-2508bc1e962mr12657105fac.39.1717499620321; Tue, 04 Jun 2024 04:13:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717499620; cv=pass; d=google.com; s=arc-20160816; b=Bjciv8OL1tmVxror3HATsJq1MDg+y1ucjnBWHnnX5GEXXFpc2vHkvcs86+iI9zxOYr Ns3wYNEjR5hYvl5gTID5agUA1Fm3CxDeM2Tr2/MnI/LARLsMjIaz0xMg/zN7V0Li1zXx NVCnbce+tCWe1EhEHRHsvNnEqc8fjOsJqIpWRPouAUF4wKSGaZKCruAmV7DlvRxzxdgz 1j8b/hz76tCTHQ3FhzGiVExKvMLf+VYWhmSEREJ85pnvUrSkVw5nLsNYmqgQD6PsNIAx sygN9z+cISBy9rTKz4vsLZ4D7/JRduX8Dhvww6V6B0QaeLyKuNmzxcgI1PI+PmINBxcj +oYA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:from:cc:to:subject:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=N5NUh30145zgOTyWygnNBSJ5byygJdHeU6hO+TwHwK0=; fh=bnQgY4QASBqqAykM26l1m5BdxFoeykzSMP5kDU4M+Qo=; b=dtvCtu9tp/Ye6YGOOuh/3dtlX74OftJY2GpDrgwgz45Olq9IoFDtU0yo7mLsaWMj36 O8ttzHMxSzH7gplqCvWyn9yjNVQwzgVfRVEuF8VfvTPQc/WJb140NCfzUu9g/q7KuM+6 Einl50YfoaofM0JhdbtwXMB2CL0Cp50VbdY4rfXKYSDcrRJtiSfF2d7yFHqDWS08vlhz g7WfcyQZC9t+D6hHXMX02PF4n5+uOrR/oY8gMuUi/y6KQnPz/1BBmp9UJZpamGxlSlOh i94iMT797/TXzuUPJaI3itTNQzv+LX1z1DEuA3ZDtS62thr4TTFh8vvIzas3/px00ieS E6cQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=CsJtr6d4; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-200492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-70242c27344si8064690b3a.224.2024.06.04.04.13.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 04:13:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.alibaba.com header.s=default header.b=CsJtr6d4; arc=pass (i=1 spf=pass spfdomain=linux.alibaba.com dkim=pass dkdomain=linux.alibaba.com dmarc=pass fromdomain=linux.alibaba.com); spf=pass (google.com: domain of linux-kernel+bounces-200492-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200492-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.alibaba.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DEF86B21C77 for ; Tue, 4 Jun 2024 11:13:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 586C4137921; Tue, 4 Jun 2024 11:13:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="CsJtr6d4" Received: from out30-118.freemail.mail.aliyun.com (out30-118.freemail.mail.aliyun.com [115.124.30.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9DD81420D7; Tue, 4 Jun 2024 11:13:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.118 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717499604; cv=none; b=UavOWi7urgB4eIwHHYedDMKJwcGDwmFx30HMZW07eSZJlYh+gmCDxe8lxLUj9Dt47gDVC7PuElHf4EIi5EuVGO6nMcqlsEkj3CfPgyWv7vgh0H0jRjKUDvL57oFr+mQO6UtNswv33xo4zG3upYw070QcXrCvXqmFVZi4ZepYP0I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717499604; c=relaxed/simple; bh=rGoLCX1QYySnp5WODctYy3wdo/rDyPEq2AVRp8GdPdk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:From:Content-Type; b=KshcFMW6opnXmUL+C3NmMXVTAC/1FN3r/60fRkShhzFCTT5dj3CV+scNa9oZReh2nuNHNlA/5woW5K0WIDJGP0Sqyi6R9GsB9z9Ha5d46OIa0MV9lPy5+E65DsIdt7eUMqZgVlTghf0WwbkJLm30JIlfhrNDWchCOI2eHSbVWyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=CsJtr6d4; arc=none smtp.client-ip=115.124.30.118 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1717499599; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type; bh=N5NUh30145zgOTyWygnNBSJ5byygJdHeU6hO+TwHwK0=; b=CsJtr6d4n7IQfu1oAXMBVdRjjdDN9lbwDR3fAXbWb9F/G17jbFbNFQlBINERVv9p2MDhApj/htOQh+tegyUdSaUBq/F240VMmK5zChkmrtitp5FikpOJkDP9kVHvEWNIJsV82fYzl2FBJo6OQstSfSgc4CLJvBVONI0ZJVOsmrE= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R341e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037067112;MF=guwen@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0W7qye4e_1717499588; Received: from 30.221.129.74(mailfrom:guwen@linux.alibaba.com fp:SMTPD_---0W7qye4e_1717499588) by smtp.aliyun-inc.com; Tue, 04 Jun 2024 19:13:18 +0800 Message-ID: Date: Tue, 4 Jun 2024 19:13:08 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net] net/smc: avoid overwriting when adjusting sock bufsizes To: gbayer@linux.ibm.com, wenjia@linux.ibm.com, jaka@linux.ibm.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: alibuda@linux.alibaba.com, tonylu@linux.alibaba.com, linux-s390@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Wen Gu Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2024/5/31 16:54, Wen Gu wrote: > When copying smc settings to clcsock, avoid setting clcsock's sk_sndbuf > to sysctl_tcp_wmem[1], since this may overwrite the value set by > tcp_sndbuf_expand() in TCP connection establishment. > > And the other setting sk_{snd|rcv}buf to sysctl value in > smc_adjust_sock_bufsizes() can also be omitted since the initialization > of smc sock and clcsock has set sk_{snd|rcv}buf to smc.sysctl_{w|r}mem > or ipv4_sysctl_tcp_{w|r}mem[1]. > > Fixes: 30c3c4a4497c ("net/smc: Use correct buffer sizes when switching between TCP and SMC") > Link: https://lore.kernel.org/r/5eaf3858-e7fd-4db8-83e8-3d7a3e0e9ae2@linux.alibaba.com > Signed-off-by: Wen Gu > --- > FYI, > The detailed motivation and testing can be found in the link above. > --- Hi, Gerd and Wenjia, do you think this makes sense? Thanks!