Patchwork [ethtool] ethtool: fix to display support for KX4 and KX PHY

login
register
mail settings
Submitter Ajit Khaparde
Date June 6, 2012, 8:03 p.m.
Message ID <20120606200336.GA21620@akhaparde-VBox>
Download mbox | patch
Permalink /patch/163423/
State Not Applicable
Delegated to: David Miller
Headers show

Comments

Ajit Khaparde - June 6, 2012, 8:03 p.m.
Signed-off-by: Ajit Khaparde <ajit.khaparde@emulex.com>
---
 ethtool.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
Ben Hutchings - June 8, 2012, 5:23 p.m.
Applied, thanks.

Ben.

Patch

diff --git a/ethtool.c b/ethtool.c
index f18f611..546a43a 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -424,6 +424,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, "");
@@ -438,6 +445,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, "");