diff options
Diffstat (limited to 'drivers/net/myri10ge/myri10ge.c')
-rw-r--r-- | drivers/net/myri10ge/myri10ge.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index 29c9fe2951e0..5319db9901d8 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c | |||
@@ -75,7 +75,7 @@ | |||
75 | #include "myri10ge_mcp.h" | 75 | #include "myri10ge_mcp.h" |
76 | #include "myri10ge_mcp_gen_header.h" | 76 | #include "myri10ge_mcp_gen_header.h" |
77 | 77 | ||
78 | #define MYRI10GE_VERSION_STR "1.5.0-1.432" | 78 | #define MYRI10GE_VERSION_STR "1.5.1-1.451" |
79 | 79 | ||
80 | MODULE_DESCRIPTION("Myricom 10G driver (10GbE)"); | 80 | MODULE_DESCRIPTION("Myricom 10G driver (10GbE)"); |
81 | MODULE_AUTHOR("Maintainer: help@myri.com"); | 81 | MODULE_AUTHOR("Maintainer: help@myri.com"); |
@@ -1623,10 +1623,21 @@ myri10ge_get_settings(struct net_device *netdev, struct ethtool_cmd *cmd) | |||
1623 | return 0; | 1623 | return 0; |
1624 | } | 1624 | } |
1625 | } | 1625 | } |
1626 | if (*ptr == 'R' || *ptr == 'Q') { | 1626 | if (*ptr == '2') |
1627 | /* We've found either an XFP or quad ribbon fiber */ | 1627 | ptr++; |
1628 | if (*ptr == 'R' || *ptr == 'Q' || *ptr == 'S') { | ||
1629 | /* We've found either an XFP, quad ribbon fiber, or SFP+ */ | ||
1628 | cmd->port = PORT_FIBRE; | 1630 | cmd->port = PORT_FIBRE; |
1631 | cmd->supported |= SUPPORTED_FIBRE; | ||
1632 | cmd->advertising |= ADVERTISED_FIBRE; | ||
1633 | } else { | ||
1634 | cmd->port = PORT_OTHER; | ||
1629 | } | 1635 | } |
1636 | if (*ptr == 'R' || *ptr == 'S') | ||
1637 | cmd->transceiver = XCVR_EXTERNAL; | ||
1638 | else | ||
1639 | cmd->transceiver = XCVR_INTERNAL; | ||
1640 | |||
1630 | return 0; | 1641 | return 0; |
1631 | } | 1642 | } |
1632 | 1643 | ||