]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Oct 2021 13:28:02 +0000 (14:28 +0100)
commitf5e4f69b966693c0af0908da584958e192c41264
treec80291d04fa01ef22ab85025559e9f9e0a564b3b
parent96f4eb6bfadee876ac4b77de652f4e9cf25af635
sfc: Fix reading non-legacy supported link modes

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>
drivers/net/ethernet/sfc/ethtool_common.c