net/mlx5e: Set drvinfo in generic manner
Consider PCI and non PCI device types while setting device name in get_drvinfo() callback using existing generic device. Signed-off-by: Parav Pandit <parav@mellanox.com> Reviewed-by: Vu Pham <vuhuong@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:
parent
087067368a
commit
f72e6c3e17
@ -46,7 +46,7 @@ void mlx5e_ethtool_get_drvinfo(struct mlx5e_priv *priv,
|
||||
"%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),
|
||||
strlcpy(drvinfo->bus_info, dev_name(mdev->device),
|
||||
sizeof(drvinfo->bus_info));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user