Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ethtool: Add lanes parameter for ETHTOOL_LINK_MODE_10000baseR_FEC_BIT

Lanes field is missing for ETHTOOL_LINK_MODE_10000baseR_FEC_BIT
link mode and it causes a failure when trying to set
'speed 10000 lanes 1' on Spectrum-2 machines when autoneg is set to on.

Add the lanes parameter for ETHTOOL_LINK_MODE_10000baseR_FEC_BIT
link mode.

Fixes: c8907043c6ac9 ("ethtool: Get link mode in use instead of speed and duplex parameters")
Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Danielle Ratson and committed by
David S. Miller
fde32dbe a975d7d8

+1
+1
net/ethtool/common.c
··· 273 273 __DEFINE_LINK_MODE_PARAMS(10000, KR, Full), 274 274 [ETHTOOL_LINK_MODE_10000baseR_FEC_BIT] = { 275 275 .speed = SPEED_10000, 276 + .lanes = 1, 276 277 .duplex = DUPLEX_FULL, 277 278 }, 278 279 __DEFINE_LINK_MODE_PARAMS(20000, MLD2, Full),