Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp5pxb; Wed, 11 Nov 2020 17:44:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCPLaQx2cOY5myyd3ICQbt8rTkmgDSFcCNsoqX82LGbUK5MkKRpjIW6+nVz/JSOKjWOuPM X-Received: by 2002:a17:906:5c43:: with SMTP id c3mr12485785ejr.390.1605145453984; Wed, 11 Nov 2020 17:44:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605145453; cv=none; d=google.com; s=arc-20160816; b=FFkdNnZGjGrTnB/S621aRLixfceFbnjetd8ikDgbjeONRtlepDKSmA7eUpbzAT8UZO sDz4u3HYgDDIX+XONBNgGys/2hdxLymGqwwUHIIDmV5JPshHvwzA14Ik2d73AJpUzIlZ ZgOxicGG7fdkh2AyX+DjXqBPkMRujf97g0BEbSdrm2GHyYSmBRekmr92MaxVoMPZCXez /ouc71TZ1cdo5E/nihldJ4ycSIWlzrVp0/ySFRCguePT1kkAE6gxmvZ4oxzIaeUdw5IE eG6Fb3oYzSXEhHimm0P4eI/X+Tbh/FPqHzDwW+njT3Eljdrt2YkIn+she05ishVKqABp 0V1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=qfmhiNEdIMi2BIdc+WaVS8cZgxADXomAQsBW+1ZzAMg=; b=Hjp/gcPRqoS+EcdXN20mL7yMVIUBuvtkqZY3NvzCL7yQtZ2afruKookrjS/VWhAe6c SMs/JxjUDZsBbKpoN617M556OB49ohwS9zLVwTOQLcnybBV9mBJA3NYqIQP/ZA+sHLGK K0lPOGEGR9fBZNhJvZe1PLHw6Ovlj7zsuKcfpYOCk93jzeVdeKcczq1E0tLyznnsRklb Mxr947pP421tEEgb1cYPwZfgWqIsPZIkhmTRsOJEn0JRKmPjtYs/ydtAcoTQn0pS6HR6 IuviBFzlJ8uruxUUZB4PAVACpSGXBzf4r7ijlh1CWI5v0HI4IgiVhiHtYE0q8GHqs4L3 wydg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a17si2554311ejv.205.2020.11.11.17.43.50; Wed, 11 Nov 2020 17:44:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729430AbgKLBjw (ORCPT + 99 others); Wed, 11 Nov 2020 20:39:52 -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. > . >