[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190408065907.26308-1-idosch@mellanox.com>
Date: Mon, 8 Apr 2019 06:59:33 +0000
From: Ido Schimmel <idosch@...lanox.com>
To: "netdev@...r.kernel.org" <netdev@...r.kernel.org>
CC: "davem@...emloft.net" <davem@...emloft.net>,
Jiri Pirko <jiri@...lanox.com>,
Shalom Toledo <shalomt@...lanox.com>,
"jakub.kicinski@...ronome.com" <jakub.kicinski@...ronome.com>,
mlxsw <mlxsw@...lanox.com>, Ido Schimmel <idosch@...lanox.com>
Subject: [PATCH net-next v2 0/3] mlxsw: Add support for devlink info command
Shalom says:
Expose the following ASIC information via devlink info command:
- Driver name
- Hardware revision
- Firmware PSID
- Running firmware version
Standard output example:
$ devlink dev info pci/0000:03:00.0
pci/0000:03:00.0:
versions:
fixed:
hw.revision A0
fw.psid MT_2750110033
running:
fw.version 13.1910.622
Pretty JSON example:
$ devlink -jp dev info pci/0000:03:00.0
{
"info": {
"pci/0000:03:00.0": {
"versions": {
"fixed": {
"hw.revision": "A0",
"fw.psid": "MT_2750110033"
},
"running": {
"fw.version": "13.1910.622"
}
}
}
}
}
v2:
- Add fw.psid documentation
- Add driver name
Shalom Toledo (3):
mlxsw: reg: Add MGIR register
mlxsw: core: Add support for devlink info command
Documentation: networking: devlink-info-versions: Add fw.psid
.../networking/devlink-info-versions.rst | 5 ++
drivers/net/ethernet/mellanox/mlxsw/core.c | 41 ++++++++++++++
drivers/net/ethernet/mellanox/mlxsw/reg.h | 55 +++++++++++++++++++
3 files changed, 101 insertions(+)
--
2.20.1
Powered by blists - more mailing lists