From 1288ec8133806e23ad94455420bbf5c9efb578db Mon Sep 17 00:00:00 2001 From: Jesse Brandeburg Date: Wed, 7 Nov 2007 08:24:20 -0800 Subject: 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 Signed-off-by: Auke Kok Signed-off-by: Jeff Garzik --- ethtool.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ethtool.c') 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: "); -- cgit v1.2.1