net/mlx5: fix link speed bitmasks
authorEdward Makarov <makarov@kraftway.ru>
Fri, 10 Nov 2017 14:18:04 +0000 (14:18 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Sat, 11 Nov 2017 14:54:16 +0000 (15:54 +0100)
commitb113cb5ee6cec14a9892df1143217e358a58f5d6
tree4512670c320c448ccbdf52da35c142000a3fc2f6
parent46d7b08b9162e6c896a9fa2b29b362ce7e8b1be8
net/mlx5: fix link speed bitmasks

The constant ETHTOOL_LINK_MODE_1000baseT_Full_BIT and the others like
that in mlx5_link_update_unlocked_gs must be bit masks but unfortunately
they are bit numbers. This commit fixes the issue.

Fixes: 188408719888 ("net/mlx5: fix support for newer link speeds")
Cc: stable@dpdk.org
Signed-off-by: Edward Makarov <makarov@kraftway.ru>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5_ethdev.c
drivers/net/mlx5/mlx5_utils.h