diff options
author | Aya Levin <ayal@mellanox.com> | 2019-06-16 13:20:29 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-07-25 13:31:00 -0700 |
commit | 4b95840a6ced0634082f6d962ba9aa0ce797f12f (patch) | |
tree | 867a527fe156ee68324093c05e036597dd9b49e6 /drivers/net/ethernet/mellanox/mlx5/core/en_tc.c | |
parent | net/mlx5e: Fix wrong max num channels indication (diff) | |
download | linux-dev-4b95840a6ced0634082f6d962ba9aa0ce797f12f.tar.xz linux-dev-4b95840a6ced0634082f6d962ba9aa0ce797f12f.zip |
net/mlx5e: Fix matching of speed to PRM link modes
Speed translation is performed based on legacy or extended PTYS
register. Translate speed with respect to:
1) Capability bit of extended PTYS table.
2) User request:
a) When auto-negotiation is turned on, inspect advertisement whether it
contains extended link modes.
b) When auto-negotiation is turned off, speed > 100Gbps (maximal
speed supported in legacy mode).
With both conditions fulfilled translation is done with extended PTYS
table otherwise use legacy PTYS table.
Without this patch 25/50/100 Gbps speed cannot be set, since try to
configure in extended mode but read from legacy mode.
Fixes: dd1b9e09c12b ("net/mlx5: ethtool, Allow legacy link-modes configuration via non-extended ptys")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_tc.c')
0 files changed, 0 insertions, 0 deletions