From: Florian Fainelli <f.fainelli@gmail.com>
To: Scott Feldman <sfeldma@gmail.com>, David Miller <davem@davemloft.net>
Cc: "Jiří Pírko" <jiri@resnulli.us>, Netdev <netdev@vger.kernel.org>,
"Ido Schimmel" <idosch@mellanox.com>,
eladr@mellanox.com,
"ogerlitz@mellanox.com" <ogerlitz@mellanox.com>,
"Jiri Pirko" <jiri@mellanox.com>
Subject: Re: [patch net-next 2/3] mlxsw: expose EMAD transactions statistics via debugfs
Date: Wed, 26 Aug 2015 11:36:23 -0700 [thread overview]
Message-ID: <55DE0727.5010102@gmail.com> (raw)
In-Reply-To: <CAE4R7bDZqrgtzi5dAdCgSxy_hTHE9MPfD1WENX3ea7ZXps7+Mw@mail.gmail.com>
On 26/08/15 11:21, Scott Feldman wrote:
> On Wed, Aug 26, 2015 at 10:49 AM, David Miller <davem@davemloft.net> wrote:
>> From: Jiri Pirko <jiri@resnulli.us>
>> Date: Wed, 26 Aug 2015 09:37:57 +0200
>>
>>> I don't think that are much more cases like this. Therefore I think that
>>> for this cases, debugfs might be a good way to expose debugging stats.
>>
>> Scott wanted to do similar things in rocker. DSA guys too.
>>
>> Every switch device is going to have some kind of hierarchy like
>> this, it's not a unique situation.
>
> We've been able to get buy so far without a user-visible device for
> the switch. The switch ports are represented by netdevs, so that's
> easy. How can we create an object for the switch itself, so we can
> attach common interfaces for the user to dump switch-level stats or
> tables? Using another netdev doesn't seem right. Do we need a new
> device class for switches, and then create some common tool/interfaces
> for switch device class?
I agree this is something crucially missing. If we try to list what
could be missing currently, there is mostly:
* switch-wide statistics, tables, databases
* controlling a firmware agent running on the switch
* restarting/re-configuring the switch hardware
All of these already have proper ethtool control interfaces, so using
something that understands a specialized net_device might be the easiest
way to go, but we would need a way to put it in the non network device
name space so tools and users to do not get confused?
We could also have a specific SET_NETDEV_DEVTYPE() which helps make that
specific device be part of a "switch-mgmt" class for instance?
--
Florian
next prev parent reply other threads:[~2015-08-26 18:38 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-24 14:45 [patch net-next 0/3] mlxsw: small driver update Jiri Pirko
2015-08-24 14:45 ` [patch net-next 1/3] mlxsw: Remove duplicate included header Jiri Pirko
2015-08-24 14:45 ` [patch net-next 2/3] mlxsw: expose EMAD transactions statistics via debugfs Jiri Pirko
2015-08-25 21:25 ` David Miller
2015-08-26 5:52 ` Jiri Pirko
2015-08-26 6:08 ` David Miller
2015-08-26 7:37 ` Jiri Pirko
2015-08-26 17:49 ` David Miller
2015-08-26 18:21 ` Scott Feldman
2015-08-26 18:36 ` Florian Fainelli [this message]
2015-08-27 0:26 ` David Miller
2015-08-27 5:40 ` Jiri Pirko
2015-08-27 6:01 ` David Miller
2015-08-27 6:27 ` Jiri Pirko
2015-08-27 6:36 ` David Miller
2015-08-27 6:40 ` Jiri Pirko
2015-09-16 13:14 ` Marcelo Ricardo Leitner
2015-08-24 14:45 ` [patch net-next 3/3] mlxsw: adjust log messages level in __mlxsw_emad_transmit Jiri Pirko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55DE0727.5010102@gmail.com \
--to=f.fainelli@gmail.com \
--cc=davem@davemloft.net \
--cc=eladr@mellanox.com \
--cc=idosch@mellanox.com \
--cc=jiri@mellanox.com \
--cc=jiri@resnulli.us \
--cc=netdev@vger.kernel.org \
--cc=ogerlitz@mellanox.com \
--cc=sfeldma@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.