]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sfc: Fix reading non-legacy supported link modes
authorErik Ekman <erik@kryo.se>
Sun, 17 Oct 2021 17:16:57 +0000 (19:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Nov 2021 12:58:45 +0000 (13:58 +0100)
commit3659fd7e08cfad2717d3b61c4470d82c5942a4bb
tree20b465b2d7d62509b318ca4319b35d17991e1421
parent73d2892148aa4397a885b4f4afcfc5b27a325c42
sfc: Fix reading non-legacy supported link modes

commit 041c61488236a5a84789083e3d9f0a51139b6edf upstream.

Everything except the first 32 bits was lost when the pause flags were
added. This makes the 50000baseCR2 mode flag (bit 34) not appear.

I have tested this with a 10G card (SFN5122F-R7) by modifying it to
return a non-legacy link mode (10000baseCR).

Signed-off-by: Erik Ekman <erik@kryo.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/sfc/ethtool.c