mirror of https://gitee.com/openkylin/linux.git
net/mlx5e: Show board id in ethtool driver information
Add the board id (PSID) to the firmware-version field in the ethtool -i (driver information). The PSID is shown in parentheses, next to the fw-version. $ ethtool -i ens6 firmware-version: 12.14.1101 (MT_2190110032) Signed-off-by: Inbar Karmy <inbark@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
6543b78ea1
commit
84e11edb71
|
@ -42,8 +42,9 @@ static void mlx5e_get_drvinfo(struct net_device *dev,
|
|||
strlcpy(drvinfo->version, DRIVER_VERSION " (" DRIVER_RELDATE ")",
|
||||
sizeof(drvinfo->version));
|
||||
snprintf(drvinfo->fw_version, sizeof(drvinfo->fw_version),
|
||||
"%d.%d.%04d",
|
||||
fw_rev_maj(mdev), fw_rev_min(mdev), fw_rev_sub(mdev));
|
||||
"%d.%d.%04d (%.16s)",
|
||||
fw_rev_maj(mdev), fw_rev_min(mdev), fw_rev_sub(mdev),
|
||||
mdev->board_id);
|
||||
strlcpy(drvinfo->bus_info, pci_name(mdev->pdev),
|
||||
sizeof(drvinfo->bus_info));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue