Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4129073rdb; Thu, 14 Sep 2023 12:39:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHlp6ZBp3/KSwWMi9BDx/FGijUXutPYSD0bPSCOlo5XRUflsJ5syeXYKiS3ApQ9CwKbtt9 X-Received: by 2002:a17:902:6b05:b0:1c3:8031:1dce with SMTP id o5-20020a1709026b0500b001c380311dcemr5875899plk.45.1694720349239; Thu, 14 Sep 2023 12:39:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694720349; cv=none; d=google.com; s=arc-20160816; b=WlNM4h1jfLjlm6pUeGDHQ+iLYgMcWZ0LvtY3eiwaybVQaotaq69KvV4ZoBN0v2SrRf MjGfgGmvZ4LW6fmHmEoXCeVoRXNK4tWi/29P/jwf9gtnqzNAiWDQDqI5WWZhZpT3fdK6 JySlPxoVgtf1QbE0p97ClBmjifmrxkIbSrHdMTluoyauWZxWI/ZGSfR3yZdaw2gY9A1+ YX2AXwTtIkm/mJikUGEjK08vok22mArShTLJInWf0K4AcaZwluLZt0Oey4SM/aaKsvzE L/XJrl5sRrNXo9sQmFlwmVj2np2B3K8H9Ttm2DlrP+xH3pDq6UfC+wOa8qMv3EENNwiJ FaEQ== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=tDkkOsocqls0t+Q5ELLs9Xlf48gqtWqdENRZHsKALys=; fh=nMmrI8ESHwesyVl08f0CgW4cTQeKERMwb3NrlhITFWQ=; b=YmKI/ud37/AaH4robYBjeqjOA3j3JXIoqUeqhauC3P7U51Pkcv5fAWm215+eNpyjCi Jxidc7yo7KbKQbEDRlrlEOQKXFegC7sdeX4d/sW2jOXn+/bWXDOsf6iNJmXB3how+V2v w3uPQFv1fR7A3QaRjLPWVDJLzEx6v6vceGwjxxOhFuwXA6cNvvnbLIEEFbvwmXC+aiP+ 5W2D6Aqo232BWSK+kz3QJmxCRWzRNajqF6ZPCEfOoKg+TQftD7SQR8cIiunraNujUkh7 mL2jtwk6qORvEDVkKV82cl7G4i+I5jX/swEP0Wbyp807Wl/VPbXvjWNjIGXRdQIR7ZA5 4PIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=s3PBRqjZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id a70-20020a639049000000b0056531783f8dsi1953017pge.814.2023.09.14.12.39.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 12:39:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=s3PBRqjZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1F99381BAA60; Thu, 14 Sep 2023 03:29:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237281AbjINK3a (ORCPT + 99 others); Thu, 14 Sep 2023 06:29:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230141AbjINK31 (ORCPT ); Thu, 14 Sep 2023 06:29:27 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 140791BE9; Thu, 14 Sep 2023 03:29:22 -0700 (PDT) Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 38EADAR6009551; Thu, 14 Sep 2023 10:29:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=tDkkOsocqls0t+Q5ELLs9Xlf48gqtWqdENRZHsKALys=; b=s3PBRqjZdZxyUyh3YAa4pFcEEr+axzEf8LcU15PQ/9WLuwDtZRqUK9QX3HftB3ayoPiD n8DbCGUn0JD9uNvz7DVapZJ94elga0WRjRzPLG4cFsmiN/U89AHyEZq+zDuVna2JwIfk DV0s9G/YEzEfNyL+ce1WdW0iJCHG7bm4q15iZKV8PZF3Ci15nPknr0/LqriAqdvYvbuI 5B+rmXGxzw7ThJ/raCK75XPSglDSdrh1Ow5AaYMS79z+RXEdyPaub7iqZKa0tDAsWTY8 eSG3wSBEoPvVAot6qVVG334YsLEQE/ukAuScaF3YjRkz1eAPeM7XvlYb16ZMaMMiO07m 5Q== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3t3yvms0g9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 10:29:19 +0000 Received: from m0353726.ppops.net (m0353726.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 38E9nn4L007950; Thu, 14 Sep 2023 10:29:19 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3t3yvms0fn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 10:29:19 +0000 Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 38E8bvLi002755; Thu, 14 Sep 2023 10:29:18 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3t14hma24p-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 14 Sep 2023 10:29:17 +0000 Received: from smtpav07.fra02v.mail.ibm.com (smtpav07.fra02v.mail.ibm.com [10.20.54.106]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 38EATEgf63504642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Sep 2023 10:29:14 GMT Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8A78F2004B; Thu, 14 Sep 2023 10:29:14 +0000 (GMT) Received: from smtpav07.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3746420043; Thu, 14 Sep 2023 10:29:14 +0000 (GMT) Received: from [9.152.224.42] (unknown [9.152.224.42]) by smtpav07.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 14 Sep 2023 10:29:14 +0000 (GMT) Message-ID: <30bbcc92-f5ff-cbda-7a3b-cc801aa560ed@linux.ibm.com> Date: Thu, 14 Sep 2023 12:29:14 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [RFC PATCH net-next] net/smc: Introduce SMC-related proc files To: Wen Gu , Wenjia Zhang , kgraul@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 References: <1694416820-60340-1-git-send-email-guwen@linux.alibaba.com> <2b1d129c-06e2-0161-7c8a-1e930150d797@linux.ibm.com> Content-Language: en-US From: Alexandra Winter In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-GUID: 4fx-3ooD91c3ydo1CMa1Lpm2-ZiD0jFe X-Proofpoint-ORIG-GUID: Q_MUuDzbxZRPe2jKpigVVMnUXad3vX-m X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.601,FMLib:17.11.176.26 definitions=2023-09-14_08,2023-09-13_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 mlxlogscore=727 clxscore=1011 suspectscore=0 bulkscore=0 spamscore=0 impostorscore=0 mlxscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2308100000 definitions=main-2309140085 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 (agentk.vger.email [0.0.0.0]); Thu, 14 Sep 2023 03:29:33 -0700 (PDT) X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 agentk.vger.email On 13.09.23 11:53, Wen Gu wrote: > > > On 2023/9/11 19:54, Wenjia Zhang wrote: >> >> >> >> Hi Wen, >> >> I can understand your problem and frustration. However, there are two reasons I'm not really convinced by the proc file method: >> 1) AFAI, the proc method could consume many CPU time especially in case with a log of sockets to read the pseudo files. >> 2) We have already implemented the complex netlink method on the same purpose. I see the double expense to main the code. >> >> Then the question is if the lack of dependency issue can be handle somehow, or the proc method is the only way to achieve this purpose? >> >> Any opinion is welcome! >> >> Thanks, >> Wenjia > > Hi, Wenjia. I agree with your concerns. > > My initial intention is to make these proc files serve as a supplement to netlink to conveniently > check smc connections in an environment where smc-tools cannot be easily obtained. > > Yes, proc files won't be the first choice for diagnosis, but can be a convenient backup. > > Thanks, > Wen Gu > > As /proc is an interface to userface, we would have to maintain the 2 redundant methods basically forever. I personally don't think we should implement another interface without a very strong reason.