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 X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E29E0C4742C for ; Thu, 12 Nov 2020 01:39:56 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9AAF4207F7 for ; Thu, 12 Nov 2020 01:39:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729435AbgKLBjy (ORCPT ); Wed, 11 Nov 2020 20:39:54 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:7175 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728148AbgKLAsp (ORCPT ); Wed, 11 Nov 2020 19:48:45 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CWjdY3zSkz15TWY; Thu, 12 Nov 2020 08:48:33 +0800 (CST) Received: from [127.0.0.1] (10.74.149.191) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Thu, 12 Nov 2020 08:48:32 +0800 Subject: Re: [PATCH V2 net-next 11/11] net: hns3: add debugfs support for interrupt coalesce To: Jakub Kicinski CC: , , , , , References: <1604892159-19990-1-git-send-email-tanhuazhong@huawei.com> <1604892159-19990-12-git-send-email-tanhuazhong@huawei.com> <20201110172858.5eddc276@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> <20201111081520.670fc37f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> From: tanhuazhong Message-ID: Date: Thu, 12 Nov 2020 08:48:32 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <20201111081520.670fc37f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.74.149.191] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/12 0:15, Jakub Kicinski wrote: > On Wed, 11 Nov 2020 11:16:37 +0800 tanhuazhong wrote: >> On 2020/11/11 9:28, Jakub Kicinski wrote: >>> On Mon, 9 Nov 2020 11:22:39 +0800 Huazhong Tan wrote: >>>> Since user may need to check the current configuration of the >>>> interrupt coalesce, so add debugfs support for query this info, >>>> which includes DIM profile, coalesce configuration of both software >>>> and hardware. >>>> >>>> Signed-off-by: Huazhong Tan >>> >>> Please create a file per vector so that users can just read it instead >>> of dumping the info into the logs. >>> >> >> This patch should be removed from this series right now. Since this new >> read method needs some adaptations and verifications, and there maybe >> another better ways to dump this info. >> >>> Even better we should put as much of this information as possible into >>> the ethtool API. dim state is hardly hardware-specific. >>> >> >> Should the ethtool API used to dump the hardware info? Could you provide >> some hints to do it? > > Not necessarily hardware info but if there is a use case for inspecting > DIM state we can extend > > coalesce_fill_reply() in net/ethtool/coalesce.c > > to report it. > ok, thanks. > . >