]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Add lanes parameter for ETHTOOL_LINK_MODE_10000baseR_FEC_BIT
authorDanielle Ratson <danieller@nvidia.com>
Wed, 7 Apr 2021 10:06:52 +0000 (13:06 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Apr 2021 21:53:04 +0000 (14:53 -0700)
commitfde32dbe712bc7cea61d8c5ed14e10e17eec8257
tree1bf0c01888baa1677afdaccafeacee371d466668
parenta975d7d8a356ce92872af0b007b101183f0224e2
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>
net/ethtool/common.c