Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp477056pxb; Wed, 11 Nov 2020 08:18:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJxpGImJ04T0k7WyGJi1Ooxxt3B09s+eHcQar8lXZweqV39X3SIxXtAm8tLhtoi5hUP9qluS X-Received: by 2002:a50:cf45:: with SMTP id d5mr140183edk.225.1605111490219; Wed, 11 Nov 2020 08:18:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605111490; cv=none; d=google.com; s=arc-20160816; b=bffTgxQHeuERQj3XZxvzABHvt1gggpJjIidQ0T93GCqifDoFjByWeBZBuO6mM1wz8l n4FcjaghKbg1Wp/5SXpEEBGDP/FBN4wFG0WpCr2GWI+IAS4xJzz+NrIeI2kEmDgGQTNw 0LQmwV2t59mHvHVgteA9JmuKJsFIjYDDafgjdObEy4FBSYfMl1F+mX1w4oMeAcR6Q4VM XEIKVMzNMAhdEOCRBjXwOFu0L2qz6e4XrEkU39DWG+mp1XX+BZw2sj0equN1p4PUqNjb I3yxMVaxbpTC6YH6dN3Tgq3kEJqjsSU2YpslNqKFAmOlfjPWil1ozV75UyAysvP9OqOV 5opw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=JGxVd71ASUVu4xiQ/iC4v02+id9J+sc4Okg65JSQN1M=; b=qlarRuFjo4f7mqMC+yiv/clTa/gBJnSZO07feXtUR1VkQBit5y+YSgOTsEmdRzZ99I Udx9wF87fC5FSnVJNRVLSiAvvqtmupBYFUhm1OQRoFpTiGA1KRE1fhoYmQVB4HJq2Ooi J4cGXEVDBCo4tp4Lj3uxZ1yyfmPNflA2w5HdwFBiBIXXdBn9z62MbPDqzOt+qFegmGbv FOG7aP0k3ux3R0QoJTE/znGMraZwUTAu9kiLKQpBYixSm+xkHe1yND2qldCNexV85/p+ mMIkjBWBlibkX/ICZrgSR59utq4f5eW08Jsqi+i8jcMSk7kVHbOCLeKSjTRYmnEm58/L hzNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HwhfcPYb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q11si1530981ejb.550.2020.11.11.08.17.45; Wed, 11 Nov 2020 08:18:10 -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; dkim=pass header.i=@kernel.org header.s=default header.b=HwhfcPYb; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726915AbgKKQPX (ORCPT + 99 others); Wed, 11 Nov 2020 11:15:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:49830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726734AbgKKQPW (ORCPT ); Wed, 11 Nov 2020 11:15:22 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F3DDD2074B; Wed, 11 Nov 2020 16:15:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605111321; bh=lww1r/gvxdzFjDsdtjnvj5YFCTgC/bm3wzYpOO9tRec=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HwhfcPYbU4CcL7uAApt2gcqv9+m4YwAuAXUs7O6BZeXU+UE3CtNcHpIlYeNS85YM6 7pvL1EJTLWM8O5IcZyHXN5QVOhEGCkFePNOFA9e7d7ZduDPcVvdhSvqkkjESTwNi7o d9+pLrJRi+cQ31N9tRycN0vauwBfSYeTUNGawEAo= Date: Wed, 11 Nov 2020 08:15:20 -0800 From: Jakub Kicinski To: tanhuazhong Cc: , , , , , Subject: Re: [PATCH V2 net-next 11/11] net: hns3: add debugfs support for interrupt coalesce Message-ID: <20201111081520.670fc37f@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.