diff options
author | Aya Levin <ayal@mellanox.com> | 2019-10-02 16:53:21 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-10-29 16:27:20 -0700 |
commit | 534e7366f41b0c689b01af4375aefcd1462adedf (patch) | |
tree | 250ae3ead74a4c118f521cfaf57630edf4dca474 /crypto/blowfish_generic.c | |
parent | 9df86bdb6746d7fcfc2fda715f7a7c3d0ddb2654 (diff) | |
download | linux-534e7366f41b0c689b01af4375aefcd1462adedf.tar.gz linux-534e7366f41b0c689b01af4375aefcd1462adedf.tar.bz2 linux-534e7366f41b0c689b01af4375aefcd1462adedf.zip |
net/mlx5e: Fix ethtool self test: link speed
Ethtool self test contains a test for link speed. This test reads the
PTYS register and determines whether the current speed is valid or not.
Change current implementation to use the function mlx5e_port_linkspeed()
that does the same check and fails when speed is invalid. This code
redundancy lead to a bug when mlx5e_port_linkspeed() was updated with
expended speeds and the self test was not.
Fixes: 2c81bfd5ae56 ("net/mlx5e: Move port speed code from en_ethtool.c to en/port.c")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'crypto/blowfish_generic.c')
0 files changed, 0 insertions, 0 deletions