aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/nes/nes_nic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index 96db599d9a4e..6abd4040340e 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -1228,10 +1228,12 @@ static void nes_netdev_get_drvinfo(struct net_device *netdev,
1228 struct ethtool_drvinfo *drvinfo) 1228 struct ethtool_drvinfo *drvinfo)
1229{ 1229{
1230 struct nes_vnic *nesvnic = netdev_priv(netdev); 1230 struct nes_vnic *nesvnic = netdev_priv(netdev);
1231 struct nes_adapter *nesadapter = nesvnic->nesdev->nesadapter;
1231 1232
1232 strcpy(drvinfo->driver, DRV_NAME); 1233 strcpy(drvinfo->driver, DRV_NAME);
1233 strcpy(drvinfo->bus_info, pci_name(nesvnic->nesdev->pcidev)); 1234 strcpy(drvinfo->bus_info, pci_name(nesvnic->nesdev->pcidev));
1234 strcpy(drvinfo->fw_version, "TBD"); 1235 sprintf(drvinfo->fw_version, "%u.%u", nesadapter->firmware_version>>16,
1236 nesadapter->firmware_version & 0x000000ff);
1235 strcpy(drvinfo->version, DRV_VERSION); 1237 strcpy(drvinfo->version, DRV_VERSION);
1236 drvinfo->n_stats = nes_netdev_get_stats_count(netdev); 1238 drvinfo->n_stats = nes_netdev_get_stats_count(netdev);
1237 drvinfo->testinfo_len = 0; 1239 drvinfo->testinfo_len = 0;