diff options
author | Hariprasad Shenai <hariprasad@chelsio.com> | 2014-12-22 15:14:37 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-12-22 16:35:28 -0500 |
commit | 5ad24def21b205a8e91925cd276b0a794b5ace82 (patch) | |
tree | a66c5e9af339f061142ece12c5eac5e9a19aa43e /drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h | |
parent | 3079c652141f9d6377417a7e8fd650c9948df65e (diff) | |
download | linux-5ad24def21b205a8e91925cd276b0a794b5ace82.tar.gz linux-5ad24def21b205a8e91925cd276b0a794b5ace82.tar.bz2 linux-5ad24def21b205a8e91925cd276b0a794b5ace82.zip |
cxgb4vf: Fix ethtool get_settings for VF driver
Decode and display Port Type and Module Type for ethtool get_settings() call
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h b/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h index 8d3237f5e364..b9debb4f29a3 100644 --- a/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h +++ b/drivers/net/ethernet/chelsio/cxgb4vf/t4vf_common.h @@ -230,7 +230,7 @@ struct adapter_params { static inline bool is_10g_port(const struct link_config *lc) { - return (lc->supported & SUPPORTED_10000baseT_Full) != 0; + return (lc->supported & FW_PORT_CAP_SPEED_10G) != 0; } static inline bool is_x_10g_port(const struct link_config *lc) |