Commit b08f2b35 authored by Hariprasad Shenai's avatar Hariprasad Shenai Committed by David S. Miller
Browse files

cxgb4: Update ethtool get_drvinfo to get regdump len

Update ethtool get_drvinfo to display regdump len and also update
firmware string version print to display N/A in case FW isn't present

Signed-off-by: default avatarHariprasad Shenai <>
Signed-off-by: default avatarDavid S. Miller <>
parent 9c673d15
......@@ -211,8 +211,11 @@ static void get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info)
strlcpy(info->bus_info, pci_name(adapter->pdev),
info->regdump_len = get_regs_len(dev);
if (adapter->params.fw_vers)
if (!adapter->params.fw_vers)
strcpy(info->fw_version, "N/A");
snprintf(info->fw_version, sizeof(info->fw_version),
"%u.%u.%u.%u, TP %u.%u.%u.%u",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment