diff options
author | Ajit Khaparde <ajit.khaparde@emulex.com> | 2012-06-06 15:03:36 -0500 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-06-08 18:20:18 +0100 |
commit | 7adf748185e6d2897ad7dd04e481cf7b0921fc4d (patch) | |
tree | 6aae226791027721c1b8ad768c8a2e94eea4e695 | |
parent | 03a77452ab6f2ec45ac50670d9e7fc0e1903132a (diff) | |
download | ethtool-7adf748185e6d2897ad7dd04e481cf7b0921fc4d.tar.gz |
ethtool: fix to display support for KX4 and KX PHY
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
-rw-r--r-- | ethtool.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -481,6 +481,13 @@ dump_link_caps(const char *prefix, const char *an_prefix, u32 mask) if (mask & ADVERTISED_1000baseT_Full) { did1++; fprintf(stdout, "1000baseT/Full "); } + if (did1 && (mask & ADVERTISED_1000baseKX_Full)) { + fprintf(stdout, "\n"); + fprintf(stdout, " %*s", indent, ""); + } + if (mask & ADVERTISED_1000baseKX_Full) { + did1++; fprintf(stdout, "1000baseKX/Full "); + } if (did1 && (mask & ADVERTISED_2500baseX_Full)) { fprintf(stdout, "\n"); fprintf(stdout, " %*s", indent, ""); @@ -495,6 +502,13 @@ dump_link_caps(const char *prefix, const char *an_prefix, u32 mask) if (mask & ADVERTISED_10000baseT_Full) { did1++; fprintf(stdout, "10000baseT/Full "); } + if (did1 && (mask & ADVERTISED_10000baseKX4_Full)) { + fprintf(stdout, "\n"); + fprintf(stdout, " %*s", indent, ""); + } + if (mask & ADVERTISED_10000baseKX4_Full) { + did1++; fprintf(stdout, "10000baseKX4/Full "); + } if (did1 && (mask & ADVERTISED_20000baseMLD2_Full)) { fprintf(stdout, "\n"); fprintf(stdout, " %*s", indent, ""); |