Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4286385rdb; Thu, 14 Sep 2023 18:59:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG/1+NG8VLbghrMRlk4Xgi1zRXKFGqYOME+Pbz+nfpVkIIQ6ZqBQyaiL5TyrsA/J3y1lsvf X-Received: by 2002:a05:6358:428f:b0:142:d5a2:8a7f with SMTP id s15-20020a056358428f00b00142d5a28a7fmr480581rwc.3.1694743174427; Thu, 14 Sep 2023 18:59:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694743174; cv=none; d=google.com; s=arc-20160816; b=q4ZjY5jeYRO9lNsDfFiBXJlSsugAgrkhNL9wf0jsbquQb3KZ6CBRAyzOar217D2WkK jBoW+uEoaJGLg3UZln/PyQT0aeBvwY8IaZipdrp+6y3uv2fdEj+AcO6ji2WDL9/gB/o2 9EWhn0CUBZevAlXMvzhLzep4GSry5+9O7qirjv/5YspCkUcNe9R5jMDVd1YlZKTsOJsK +ugneJ9DWSAZjafxEQ0BZv0kK/HjBwden5n20Zg+UrSbilCAc0AlB4IS1fPPfZ2mmRXY qkMSXIeL/80iMOohVtWR0rJdNosyXp+qhmEMg+fkwlRonhW78DFBF+szjCdxCq8PFr/b UhWQ== 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:subject:user-agent:mime-version:date:message-id; bh=CWRMfWaFDcop+xUfNUQhOZ9xXM76Ixtr0qMgzwT/KM4=; fh=3aoL3xzXx3b5cU7JxeoPxxyN80U7CRKOB+2gfUWssP0=; b=jOsFh6lIiOYkNaKzoIKm3TDL5PLlafk/54LVsb6ZWEElEmUHFJnaL+a3Ipb3HGq9QK 5XAkh2JewQHc5QrFwyhsydEgpPs7vSGw0SQWoCl0btJYmVijo7gtnna88Bw5dfySd/fe bwGzMe2NM8i3T7koj/2C8lTrdoPo7lfpVwrQle9t+With2IZoNyXQV50GEnxykFsilff v3rpg9lugJDH6E91gyJWqe7O8G8jlpAqYfNx1fIcQ+kEfF4bBCQqfDrxGE38FDwsC8+7 7Im3cPWEothnUsljOrbz8/GwwZxD/JgupEaTdRW4AiDUXI++JLECMZWWIbtU59rmVVYc +SPw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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. [23.128.96.35]) by mx.google.com with ESMTPS id w20-20020a63fb54000000b0055fce913d52si2354226pgj.761.2023.09.14.18.59.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 18:59:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 6BD948374D95; Thu, 14 Sep 2023 18:59:31 -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 S231867AbjIOB7O (ORCPT + 99 others); Thu, 14 Sep 2023 21:59:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231745AbjIOB7G (ORCPT ); Thu, 14 Sep 2023 21:59:06 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 727AB3586; Thu, 14 Sep 2023 18:59:01 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=guwen@linux.alibaba.com;NM=1;PH=DS;RN=13;SR=0;TI=SMTPD_---0Vs5Dx3L_1694743137; Received: from 30.221.129.81(mailfrom:guwen@linux.alibaba.com fp:SMTPD_---0Vs5Dx3L_1694743137) by smtp.aliyun-inc.com; Fri, 15 Sep 2023 09:58:58 +0800 Message-ID: <482c24aa-ceff-6bb9-a14e-b6dc4ea775e2@linux.alibaba.com> Date: Fri, 15 Sep 2023 09:58:57 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.0 Subject: Re: [RFC PATCH net-next] net/smc: Introduce SMC-related proc files To: Alexandra Winter , 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> <30bbcc92-f5ff-cbda-7a3b-cc801aa560ed@linux.ibm.com> From: Wen Gu In-Reply-To: <30bbcc92-f5ff-cbda-7a3b-cc801aa560ed@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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]); Thu, 14 Sep 2023 18:59:31 -0700 (PDT) X-Spam-Status: No, score=-2.2 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,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 On 2023/9/14 18:29, Alexandra Winter wrote: > > > 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. I understand, thank you Alexandra and Wenjia. Regards, Wen Gu