summaryrefslogtreecommitdiff
path: root/ethtool.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2009-12-01 16:06:55 +0000
committerJeff Garzik <jgarzik@redhat.com>2009-12-01 11:10:18 -0500
commitf58f264974b2c327d7b8fa57cc821b43f412ac99 (patch)
tree158048e134df94cfd3ff88de2a9d6afc1314d248 /ethtool.c
parentda7d16a8289c8a7fabfbdfe7972828e53bc77936 (diff)
downloadethtool-f58f264974b2c327d7b8fa57cc821b43f412ac99.tar.gz
ethtool: Fix switch on port type
The new port type cases in commit 6e0512c 'ethtool: Add Direct Attach to the available connector ports' were somehow inserted into the switch on duplex type, not on port type. Move them to the correct place. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'ethtool.c')
-rw-r--r--ethtool.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ethtool.c b/ethtool.c
index df02e91..10dfc80 100644
--- a/ethtool.c
+++ b/ethtool.c
@@ -965,12 +965,6 @@ static int dump_ecmd(struct ethtool_cmd *ep)
case DUPLEX_FULL:
fprintf(stdout, "Full\n");
break;
- case PORT_DA:
- fprintf(stdout, "Direct Attach Copper\n");
- break;
- case PORT_NONE:
- fprintf(stdout, "None\n");
- break;
default:
fprintf(stdout, "Unknown! (%i)\n", ep->duplex);
break;
@@ -993,6 +987,12 @@ static int dump_ecmd(struct ethtool_cmd *ep)
case PORT_FIBRE:
fprintf(stdout, "FIBRE\n");
break;
+ case PORT_DA:
+ fprintf(stdout, "Direct Attach Copper\n");
+ break;
+ case PORT_NONE:
+ fprintf(stdout, "None\n");
+ break;
case PORT_OTHER:
fprintf(stdout, "Other\n");
break;