* [PATCH] ethtool: Fix switch on port type
@ 2009-12-01 16:06 Ben Hutchings
2009-12-01 16:11 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Ben Hutchings @ 2009-12-01 16:06 UTC (permalink / raw)
To: Jeff Garzik; +Cc: PJ Waskiewicz, netdev
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>
---
ethtool.c | 12 ++++++------
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;
--
1.5.5
--
Ben Hutchings, Senior Software Engineer, Solarflare Communications
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ethtool: Fix switch on port type
2009-12-01 16:06 [PATCH] ethtool: Fix switch on port type Ben Hutchings
@ 2009-12-01 16:11 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2009-12-01 16:11 UTC (permalink / raw)
To: Ben Hutchings; +Cc: PJ Waskiewicz, netdev
On 12/01/2009 11:06 AM, Ben Hutchings wrote:
> 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>
> ---
> ethtool.c | 12 ++++++------
> 1 files changed, 6 insertions(+), 6 deletions(-)
ouch - one of the downsides of git happily merging away without complaint.
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-12-01 16:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-01 16:06 [PATCH] ethtool: Fix switch on port type Ben Hutchings
2009-12-01 16:11 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).