[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190326134535.3826-1-idosch@mellanox.com>
Date: Tue, 26 Mar 2019 13:46:24 +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>,
mlxsw <mlxsw@...lanox.com>, Ido Schimmel <idosch@...lanox.com>
Subject: [PATCH net-next 0/2] mlxsw: Add support for devlink info command
Shalom says:
Expose the following ASIC information via devlink info command:
- 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"
}
}
}
}
}
Shalom Toledo (2):
mlxsw: reg: Add MGIR register
mlxsw: core: Add support for devlink info command
drivers/net/ethernet/mellanox/mlxsw/core.c | 36 ++++++++++++++
drivers/net/ethernet/mellanox/mlxsw/reg.h | 55 ++++++++++++++++++++++
2 files changed, 91 insertions(+)
--
2.20.1
Powered by blists - more mailing lists