net/mlx5e: IPoIB, Fix driver name retrieved by ethtool
authorFeras Daoud <ferasda@mellanox.com>
Mon, 10 Jul 2017 15:35:06 +0000 (18:35 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Sun, 20 Aug 2017 09:57:19 +0000 (12:57 +0300)
Printing an enhanced IPoIB device information using
"ethtool -i DEVNAME", prints the low level driver name: mlx5_core.
This commit changes the name to mlx5_core [ib_ipoib], to include the
ipoib device driver infromation.

Fixes: 076b0936e5fb ("net/mlx5e: IPoIB, Add ethtool support")
Signed-off-by: Feras Daoud <ferasda@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/ipoib/ethtool.c

index eb04e97d87659c80089c2cbcfd2185ae356ccafe..b080fabfe8deebed76e22447aadda80fcd943e51 100644 (file)
@@ -39,6 +39,8 @@ static void mlx5i_get_drvinfo(struct net_device *dev,
        struct mlx5e_priv *priv = mlx5i_epriv(dev);
 
        mlx5e_ethtool_get_drvinfo(priv, drvinfo);
+       strlcpy(drvinfo->driver, DRIVER_NAME "[ib_ipoib]",
+               sizeof(drvinfo->driver));
 }
 
 static void mlx5i_get_strings(struct net_device *dev,