diff options
author | Aya Levin <ayal@mellanox.com> | 2020-04-13 11:31:00 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2020-05-29 13:07:53 -0700 |
commit | b623603bbb473e7e19af358b98335e63bebb2eb5 (patch) | |
tree | e0085ca6fef0bd2a2bd863c3b378c1c209847aa3 /init | |
parent | 20300aafa7a2719f71d50f97a8846459d9869b75 (diff) |
net/mlx5e: Fix arch depending casting issue in FEC
Change type of active_fec to u32 to match the type expected by
mlx5e_get_fec_mode. Copy active_fec and configured_fec values to
unsigned long before preforming bitwise manipulations.
Take the same approach when configuring FEC over 50G link modes: copy
the policy into an unsigned long and only than preform bitwise
operations.
Fixes: 2132b71f78d2 ("net/mlx5e: Advertise globaly supported FEC modes")
Signed-off-by: Aya Levin <ayal@mellanox.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions