]> 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)
commit76df20bae1f5776e43688e684624a368b4e3acd9
treed70a38d26d064f2043d4199f8ded08ad899fcbd8
parent925d437f3cbff3867ea1e28d05358519cb816916
parentd119dd7c8ddf0bc50e3eb9c3c4aab199bd2e1b24
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>