]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Merge branch 'mlxsw-Add-support-for-new-port-types-and-speeds-for-Spectrum-2'
authorDavid S. Miller <davem@davemloft.net>
Sat, 23 Feb 2019 21:54:36 +0000 (13:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Feb 2019 21:54:36 +0000 (13:54 -0800)
commitb55874f1a34c8511dfba6b6509b5c142ff91d12c
tree029efff6a9d07dd2a6f910a1bfd7ad19e5e9ffa8
parentc211524029a1495763889c1489401c3e62a8e11b
parent6c485084af8d981f1e9002a39498cef735af4180
Merge branch 'mlxsw-Add-support-for-new-port-types-and-speeds-for-Spectrum-2'

Ido Schimmel says:

====================
mlxsw: Add support for new port types and speeds for Spectrum-2

Shalom says:

This patchset adds support for new port types and speeds for Spectrum-2.

Patch #1 + #2 removes an unsupported PTYS field and a duplicate link
mode entry.

Patch #3 queries port's connector type from firmware instead of deriving
it from port admin state.

Patch #4 renames functions which relate to port type-speed to be
Spectrum-1 specific.

Patch #5 defines port type-speed operations and applies it for
Spectrum-1.

Patch #6 + #7 are small renaming and cosmetic changes.

Patch #8 adds new port type-speed fields for PTYS register. These new
fields extend the existing ones in order to support more types and
speeds.

Patch #9 adds Spectrum-2 support for port type-speed operations.

Patch #10 adds Spectrum-2 new port types and speeds.

For Spectrum-2, the user must configure all the types per speed if he /
she wants a specific speed to be advertised. For example, if the user
wants to advertise 100Gbps 4-lanes speed, the following ethtool bits
should be advertised:

  Supported ethtool bits for 100Gbps 4-lanes:
      0x1000000000      100000baseKR4 Full
      0x2000000000      100000baseSR4 Full
      0x4000000000      100000baseCR4 Full
      0x8000000000      100000baseLR4_ER4 Full

  Command for advertising 100Gbps 4-lanes:
      ethtool -s enp3s0np1 advertise 0xF000000000
====================

Signed-off-by: David S. Miller <davem@davemloft.net>