OSDN Git Service

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)
commit6fd5eeee1f107e2fb805609779994e3526de184f
treed70a38d26d064f2043d4199f8ded08ad899fcbd8
parent99b8202b179fc3dbbca69e8af6da660224c9d676
parentf72e2f48c71051f54e6fa214dc57f586386173b5
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>