提交 6e4c2189 编写于 作者: R Rana Shahout 提交者: David S. Miller

net/mlx5e: Fix MLX5E_100BASE_T define

Bit 25 of eth_proto_capability in PTYS register is
1000Base-TT and not 100Base-T.

Fixes: f62b8bb8 ('net/mlx5: Extend mlx5_core to
support ConnectX-4 Ethernet functionality')
Signed-off-by: NRana Shahout <ranas@mellanox.com>
Signed-off-by: NSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c3f9bf62
...@@ -609,7 +609,7 @@ enum mlx5e_link_mode { ...@@ -609,7 +609,7 @@ enum mlx5e_link_mode {
MLX5E_100GBASE_KR4 = 22, MLX5E_100GBASE_KR4 = 22,
MLX5E_100GBASE_LR4 = 23, MLX5E_100GBASE_LR4 = 23,
MLX5E_100BASE_TX = 24, MLX5E_100BASE_TX = 24,
MLX5E_100BASE_T = 25, MLX5E_1000BASE_T = 25,
MLX5E_10GBASE_T = 26, MLX5E_10GBASE_T = 26,
MLX5E_25GBASE_CR = 27, MLX5E_25GBASE_CR = 27,
MLX5E_25GBASE_KR = 28, MLX5E_25GBASE_KR = 28,
......
...@@ -138,10 +138,10 @@ static const struct { ...@@ -138,10 +138,10 @@ static const struct {
[MLX5E_100BASE_TX] = { [MLX5E_100BASE_TX] = {
.speed = 100, .speed = 100,
}, },
[MLX5E_100BASE_T] = { [MLX5E_1000BASE_T] = {
.supported = SUPPORTED_100baseT_Full, .supported = SUPPORTED_1000baseT_Full,
.advertised = ADVERTISED_100baseT_Full, .advertised = ADVERTISED_1000baseT_Full,
.speed = 100, .speed = 1000,
}, },
[MLX5E_10GBASE_T] = { [MLX5E_10GBASE_T] = {
.supported = SUPPORTED_10000baseT_Full, .supported = SUPPORTED_10000baseT_Full,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册