]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'support-setting-lanes-via-ethtool'
authorJakub Kicinski <kuba@kernel.org>
Thu, 4 Feb 2021 02:37:31 +0000 (18:37 -0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Feb 2021 02:37:31 +0000 (18:37 -0800)
commited5382364650bf2d0045dea79e1a9b07c00284aa
treed70a38d26d064f2043d4199f8ded08ad899fcbd8
parentc8a2749db8e3181ed9b1d78e773bf5d921aa1ca0
parent6c0372b629c212cf16ad3503c33f8ff8f765dbb0
Merge branch 'support-setting-lanes-via-ethtool'

Danielle Ratson says:

====================
Support setting lanes via ethtool

Some speeds can be achieved with different number of lanes. For example,
100Gbps can be achieved using two lanes of 50Gbps or four lanes of
25Gbps. This patchset adds a new selector that allows ethtool to
advertise link modes according to their number of lanes and also force a
specific number of lanes when autonegotiation is off.

Advertising all link modes with a speed of 100Gbps that use two lanes:

$ ethtool -s swp1 speed 100000 lanes 2 autoneg on

Forcing a speed of 100Gbps using four lanes:

$ ethtool -s swp1 speed 100000 lanes 4 autoneg off
====================

Link: https://lore.kernel.org/r/20210202180612.325099-1-danieller@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>