From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5C106CA5531 for ; Wed, 13 Sep 2023 09:54:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239576AbjIMJyR (ORCPT ); Wed, 13 Sep 2023 05:54:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59892 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239597AbjIMJyK (ORCPT ); Wed, 13 Sep 2023 05:54:10 -0400 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21E0919B6; Wed, 13 Sep 2023 02:54:05 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R321e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046050;MF=guwen@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0Vs-HUH._1694598841; Received: from 30.221.129.156(mailfrom:guwen@linux.alibaba.com fp:SMTPD_---0Vs-HUH._1694598841) by smtp.aliyun-inc.com; Wed, 13 Sep 2023 17:54:02 +0800 Message-ID: Date: Wed, 13 Sep 2023 17:53: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: 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> From: Wen Gu In-Reply-To: <2b1d129c-06e2-0161-7c8a-1e930150d797@linux.ibm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org 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