Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4458148pxb; Tue, 10 Nov 2020 17:32:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJxXZby62v+l9Js+3q3lLLn8n+KML7EejoXaN9V0CS0H5i0KsYbJXWk026ciJfNkMUgasafY X-Received: by 2002:a17:906:8555:: with SMTP id h21mr23894868ejy.533.1605058342868; Tue, 10 Nov 2020 17:32:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605058342; cv=none; d=google.com; s=arc-20160816; b=yr2FtPk2L9q1fji61WdA0cS53k06uppQqPoIInfgS+gqsVtmxM/4VCi4YaK8x9b90W u+yhpMbdMGiJfTLyJzS5ZMOGbucOUBJAit38JbgURvft3OYFTgr6aVnjdo6UHDnPpPh8 hiAgl67HSD4poIl7JoBRd/YxCEeRvGlI3VD9919SFrCYInsES8xLC6mtXjNOUdIGljvB U+xdE9milB4AYX+o6aVV9XceTM/6IigHVoppeoMlo09lk7optm9Tj377aVflFF9oGSSe a/lbZTWEn6sfVj+i8H4js8Qdx3+5eGjJ7XHPClIAsql8yLX1yb3kJRjm/T2pNcbJVVHm OFyQ== 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=C84XRjHVLR8byB1uJ/jLasZIhuLGCSDqMvOip8GVhkY=; b=Gc/idkLbHcHFFIj1TGPkOoaFZs/VLGxkXPCoTluSDy7bYunqPIgYfCM54vPa57Je05 Fw4+7Ab2YocGHGYCAtiZguLd6Yy20c54JsWS823bASDyPeBux+EL/e8oMpvXRskyaSBo RYpFfsQwwI8I2RdneFEQUhtRkBrbdk1ESJQiaut5m2BKzGYd/RDg17JyxTiWQGt0Mqne FuRnsEorQkMumGog0MIdN/SoMRfgs/cJo2TTh08VA2K13uKocIn0Te/tsqS9UQRY0cQa bVQBAnJ80wCdHE+BQpyxB07b+lOawlt+GoT4g4z06QnlrO+2swE/raIE/tBtKFrZNS9u mEzQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MZaHteEF; 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 h10si372673edn.589.2020.11.10.17.31.22; Tue, 10 Nov 2020 17:32:22 -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=MZaHteEF; 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 S1732090AbgKKB3A (ORCPT + 99 others); Tue, 10 Nov 2020 20:29:00 -0500 Received: from mail.kernel.org ([198.145.29.99]:59620 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727275AbgKKB3A (ORCPT ); Tue, 10 Nov 2020 20:29:00 -0500 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.7]) (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 838E8216C4; Wed, 11 Nov 2020 01:28:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605058140; bh=4MKgZPevQw6204NooKbrTQxLZCQVgljSMZsn2eWTacM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=MZaHteEFlRZshKm8XIsuMzv8eOk9qHMxu/wsC+CKrtoyhp6/e81zcoY/FHrlfUOZ0 yMshx8lf+NYtKMaT6Ojk6UgBzG6BAAzAwkslERnh8xlVXmv/fJgFdL2psoucvpUKfS lOliyQuYDInuOa5c8zA+NETtf16OBYKdkj3+ITls= Date: Tue, 10 Nov 2020 17:28:58 -0800 From: Jakub Kicinski To: Huazhong Tan Cc: , , , , , Subject: Re: [PATCH V2 net-next 11/11] net: hns3: add debugfs support for interrupt coalesce Message-ID: <20201110172858.5eddc276@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <1604892159-19990-12-git-send-email-tanhuazhong@huawei.com> References: <1604892159-19990-1-git-send-email-tanhuazhong@huawei.com> <1604892159-19990-12-git-send-email-tanhuazhong@huawei.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 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. Even better we should put as much of this information as possible into the ethtool API. dim state is hardly hardware-specific.