]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Fix translation of link mode into speed
authorAya Levin <ayal@mellanox.com>
Sun, 1 Dec 2019 12:45:25 +0000 (14:45 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 5 Dec 2019 21:02:12 +0000 (13:02 -0800)
commit7744eee04c6fe01028964d19dbf7ea4a8738e95a
tree81eae0e7f4079a6857fe23a8ead6bf1523c1b118
parent5b55b0283b60f436bae6577ee723c3f94c1ac579
net/mlx5e: Fix translation of link mode into speed

Add a missing value in translation of PTYS ext_eth_proto_oper to its
corresponding speed. When ext_eth_proto_oper bit 10 is set, ethtool
shows unknown speed. With this fix, ethtool shows speed is 100G as
expected.

Fixes: 2ea9a63120b5 ("net/mlx5: Add support to ext_* fields introduced in Port Type and Speed register")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en/port.c