Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1325669imu; Fri, 9 Nov 2018 14:44:33 -0800 (PST) X-Google-Smtp-Source: AJdET5fH1Dmr2ZBoZXklebHSf/UfITFm1atpH8FqwJF6XQixC+KOLiOSveWBI2jNEWA6E0/iM/6I X-Received: by 2002:a62:31c2:: with SMTP id x185-v6mr10867418pfx.39.1541803473918; Fri, 09 Nov 2018 14:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541803473; cv=none; d=google.com; s=arc-20160816; b=TQJVnIqo1jU6vzOYbA2MFTfp++DsQ+gtXxTcjE/YA1qvOsC8z6HN2j8zsmWHupE5bW slhTiC98KMV/jXiwrIgSdHskzAvpwP5pXsaHe2eaB7xicxdhrK8zSSFM73VC4/esJQLW tzZG9wxYyYb8AdQz5dql9QfP08mXRdL9Nf9zGGcJxZWgN6xFD/wsVt/S5J5LJQ7sMrK5 0CsbWNHCwMY5qO1Btl4TqIie1bya5tLz25Lhln/2Rk7TwNZx0RICimhc3BNech3j9gV9 FHlnCJF5CffX1X9NrUJq0aaPzZHUDDZZm8lbN2owC/RESSKKDygnnWIVJHbhs4Y+DUx6 r7cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EzFDfscO7ArE0l4+hRyzQdtdt/n0WbddkgLAohOs3RM=; b=jMJ4tp4AmkRUh9mfHOp8rB+LEdtUSkl5MRuXjhT1NfTZQSiFYrNlTYQ6TfkjYqT4+r HGl/G6cKYWrlZBjrpyDD9GW0wCxpo6QfnvXrN5uK10I3c8HTEbMFwXIvCAmrAbDrGrYH JiZyQCnpQ0kX3Kv1T8hxobzE38AwdXSm/Rj1l7dT0nBHEKY3v+3X2GXM24+KUBRcncrS Mqdp1PLdnDX6W/hCR9DEXL3PczUbhcMUHlk/sJF/4Qd/CepzO6JFZfhqaNuCcInUV7mo ZAS2mrFUHe3+y1kpCvql8FR6L4UqAwYkVaRkbVzPfvaaQgjhY+LZrY+Wa9qO8Fr36KmR OGXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=PDY5+AdC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si8116619pgs.267.2018.11.09.14.44.18; Fri, 09 Nov 2018 14:44:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=PDY5+AdC; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728458AbeKJI0d (ORCPT + 99 others); Sat, 10 Nov 2018 03:26:33 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:57466 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726306AbeKJI0d (ORCPT ); Sat, 10 Nov 2018 03:26:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=EzFDfscO7ArE0l4+hRyzQdtdt/n0WbddkgLAohOs3RM=; b=PDY5+AdCRO3uQrirtviJH9hdOwLdTgtKymiCtFLyJffY53DcxahE3YKHS929bvMz1+uETHdI2NiP5b8VhX9K3WK5VpzQBYWeKoOHRv1yN1SitZD7cL8y6Ta4iLGbf/ZJcgAkXh7UdhEiUyiB3KjeQcp3rHDnycdCQfq4xY16bZs=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1gLFVC-0003wP-7L; Fri, 09 Nov 2018 23:43:46 +0100 Date: Fri, 9 Nov 2018 23:43:46 +0100 From: Andrew Lunn To: Salil Mehta Cc: davem@davemloft.net, yuvalm@mellanox.com, leon@kernel.org, yisen.zhuang@huawei.com, lipeng321@huawei.com, mehta.salil@opnsrc.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, linuxarm@huawei.com Subject: Re: [RFC PATCH 00/10] net: hns3: Adds support of debugfs to HNS3 driver Message-ID: <20181109224346.GD5259@lunn.ch> References: <20181109220743.10264-1-salil.mehta@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181109220743.10264-1-salil.mehta@huawei.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 3. Debugfs looks more unstructured unlike sysfs. Is there any > de-facto standard of the user-api or drivers are allowed to > use it in any way to expose the information from kernel. Hi Salil You don't really have a user api using debugfs, because debugfs is unstable. Anything can change at any time. Any user tools which use debugfs can be expected to break at any time as the information in debugfs changes. debugfs is for debug, not to export an API. And in production systems, it is often not mounted. As much as possible, you are recommended to use existing APIs, ethtool, devlink, etc. Andrew