Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3080530imu; Sun, 11 Nov 2018 07:13:42 -0800 (PST) X-Google-Smtp-Source: AJdET5dYRNq/RRFPBGVrjnadL5nyU6lNsbihAhKylYhJ4+55etu0F9UfPLxCrZx9/gTaSCTTNwSh X-Received: by 2002:a62:8647:: with SMTP id x68-v6mr17370512pfd.252.1541949222056; Sun, 11 Nov 2018 07:13:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541949222; cv=none; d=google.com; s=arc-20160816; b=yGhMJwiBRwgylXlEPSyc7MFCZZG8iaGMwhZGT1c0P6HJSQtVAP5BM+Yu953HbkaISj e7ja88lj8T/NPm/6k6miDnblp85nrDJ07UeX/VWQ3XovIcZKpFqyB5pJ397Y6tuw69hZ Hcd2jr/RlY9EFSTjw63lzaEN5nFL+dSgNrSZQiSoBwPBX/ge1uI+SO7boPhdUtrr28DM /OciSyxMBnrvaluPlvqrV+7MH0EJCVUGAAb/oRdn4dBgyMmKqjQ6M8GLI8OM5POgUr2V QpwGDdYrhJtAguX4ZefNWQoCyi6fEhijAx+Ws2SXZvpnMGzhwT3s5qPcntm0PiyMpBsy 3eCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=2J7fKIjr/rRFoEIg9MB4TBXEf1bNKh+MN7xl/noB3KU=; b=sTbkGw0o88HWMVvC/rvcyszggdUrKPF15v7BA9LEuM0kdgfilyILvpoevyDMeCR3D2 v0iYtudgZQfv9V/OtBdiSwc+v/blPIYXay+/E1PKiB7fuK7BkhoG18aXQ/DNWG1ZNB/O UtJHPcZWfBHHHR/gn11Lf9DVYHdgq0uUq/u5Q3i1YBEuUUvRJ6OFalrqv7WfV5w1xf+A 4zNqktZ80MJMQxxXFSAiSw68dJ67gfiDhBzNePNNI5rGgUI9sPauVzF6in7EKKLTvgQl ozbbd8KyEIVE/rdAOCV/c1zSTgUVbwJP+GeHLN3Q8b3fcKQEhX18/3ZIVKqC8nE/uqX5 joVQ== ARC-Authentication-Results: i=1; mx.google.com; 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 f21si13136826pgb.371.2018.11.11.07.13.08; Sun, 11 Nov 2018 07:13:42 -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; 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 S1728607AbeKLBBe convert rfc822-to-8bit (ORCPT + 99 others); Sun, 11 Nov 2018 20:01:34 -0500 Received: from lhrrgout.huawei.com ([185.176.76.210]:32730 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728331AbeKLBBd (ORCPT ); Sun, 11 Nov 2018 20:01:33 -0500 Received: from lhreml702-cah.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 6086EEAC5EBA5; Sun, 11 Nov 2018 15:12:42 +0000 (GMT) Received: from FRAEML703-CAH.china.huawei.com (10.206.14.34) by lhreml702-cah.china.huawei.com (10.201.108.43) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 11 Nov 2018 15:12:43 +0000 Received: from FRAEML521-MBS.china.huawei.com ([169.254.2.209]) by fraeml703-cah.china.huawei.com ([10.206.14.34]) with mapi id 14.03.0415.000; Sun, 11 Nov 2018 16:12:35 +0100 From: Salil Mehta To: Andrew Lunn CC: "davem@davemloft.net" , "yuvalm@mellanox.com" , "leon@kernel.org" , "Zhuangyuzeng (Yisen)" , "lipeng (Y)" , "mehta.salil@opnsrc.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-rdma@vger.kernel.org" , Linuxarm Subject: RE: [RFC PATCH 00/10] net: hns3: Adds support of debugfs to HNS3 driver Thread-Topic: [RFC PATCH 00/10] net: hns3: Adds support of debugfs to HNS3 driver Thread-Index: AQHUeHjKl7L/rK4Ga0KUIgRpv+IpHaVH+aMAgAKzxPA= Date: Sun, 11 Nov 2018 15:12:34 +0000 Message-ID: References: <20181109220743.10264-1-salil.mehta@huawei.com> <20181109224346.GD5259@lunn.ch> In-Reply-To: <20181109224346.GD5259@lunn.ch> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.47.83.221] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Andrew, Thanks for replying. Sorry, for not being prompt as I was traveling. Please find some further follow-up questions below Salil. > From: linux-rdma-owner@vger.kernel.org [mailto:linux-rdma- > owner@vger.kernel.org] On Behalf Of Andrew Lunn > Sent: Friday, November 9, 2018 10:44 PM > To: Salil Mehta > Cc: davem@davemloft.net; yuvalm@mellanox.com; leon@kernel.org; > Zhuangyuzeng (Yisen) ; lipeng (Y) > ; mehta.salil@opnsrc.net; netdev@vger.kernel.org; > linux-kernel@vger.kernel.org; linux-rdma@vger.kernel.org; Linuxarm > > Subject: Re: [RFC PATCH 00/10] net: hns3: Adds support of debugfs to > HNS3 driver > > > 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. Sure, I understand. > > As much as possible, you are recommended to use existing APIs, > ethtool, devlink, etc. Agreed. But what about if we want to expose anything related to firmware to user-space using the debugfs, assuming we are presenting information in structured way and not as a black-box to some user-space application. Is it something which might be discouraged? Many Thanks