Skip to content

Commit f55c998

Browse files
Jiri Pirkokuba-moo
authored andcommitted
mlxsw: core: Expose FW version over defined keyword
To be aligned with the rest of the drivers, expose FW version under "fw" keyword in devlink dev info, in addition to the existing "fw.version", which is currently Mellanox-specific. devlink output before: running: fw.version 30.2008.2018 after: running: fw.version 30.2008.2018 fw 30.2008.2018 Signed-off-by: Jiri Pirko <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 2754125 commit f55c998

File tree

1 file changed

+3
-1
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+3
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/core.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,9 @@ mlxsw_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req,
14531453
if (err)
14541454
return err;
14551455

1456-
return 0;
1456+
return devlink_info_version_running_put(req,
1457+
DEVLINK_INFO_VERSION_GENERIC_FW,
1458+
buf);
14571459
}
14581460

14591461
static int

0 commit comments

Comments
 (0)