summaryrefslogtreecommitdiff
path: root/ethtool.c
diff options
context:
space:
mode:
authorJesse Brandeburg <jesse.brandeburg@intel.com>2007-11-07 08:24:20 -0800
committerJeff Garzik <jeff@garzik.org>2007-11-23 20:55:34 -0500
commit1288ec8133806e23ad94455420bbf5c9efb578db (patch)
treea1d448030dded419c1c646e8a98d6cb00022d2c7 /ethtool.c
parente52c3a02a4d7c64a4e0a7a2ee28784d2ba6031b2 (diff)
downloadethtool-1288ec8133806e23ad94455420bbf5c9efb578db.tar.gz
ethtool: add support for supporting 10000baseT
there is missing support in ethtool for reporting 10000baseT as SUPPORTED_10000baseT_Full. The code seems to be half implemented because the "advertising" field has the implementation. this patch just adds it for supported reporting. Signed-off-by: Jesse Brandeburg <jesse.brandeburg@intel.com> Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'ethtool.c')
-rw-r--r--ethtool.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ethtool.c b/ethtool.c
index 6c7a2e3..888be57 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -725,6 +725,13 @@ static void dump_supported(struct ethtool_cmd *ep)
if (mask & SUPPORTED_2500baseX_Full) {
did1++; fprintf(stdout, "2500baseX/Full ");
}
+ if (did1 && (mask & SUPPORTED_10000baseT_Full)) {
+ fprintf(stdout, "\n");
+ fprintf(stdout, " ");
+ }
+ if (mask & SUPPORTED_10000baseT_Full) {
+ did1++; fprintf(stdout, "10000baseT/Full ");
+ }
fprintf(stdout, "\n");
fprintf(stdout, " Supports auto-negotiation: ");