Commit b55874f
committed
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>File tree
3 files changed
+641
-94
lines changed- drivers/net/ethernet/mellanox/mlxsw
3 files changed
+641
-94
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3971 | 3971 | | |
3972 | 3972 | | |
3973 | 3973 | | |
| 3974 | + | |
| 3975 | + | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
| 3979 | + | |
| 3980 | + | |
| 3981 | + | |
| 3982 | + | |
| 3983 | + | |
| 3984 | + | |
| 3985 | + | |
| 3986 | + | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
| 3992 | + | |
3974 | 3993 | | |
3975 | 3994 | | |
3976 | 3995 | | |
| |||
4025 | 4044 | | |
4026 | 4045 | | |
4027 | 4046 | | |
| 4047 | + | |
| 4048 | + | |
| 4049 | + | |
| 4050 | + | |
| 4051 | + | |
| 4052 | + | |
4028 | 4053 | | |
4029 | 4054 | | |
4030 | 4055 | | |
| |||
4043 | 4068 | | |
4044 | 4069 | | |
4045 | 4070 | | |
| 4071 | + | |
| 4072 | + | |
| 4073 | + | |
| 4074 | + | |
| 4075 | + | |
| 4076 | + | |
4046 | 4077 | | |
4047 | 4078 | | |
4048 | 4079 | | |
| |||
4061 | 4092 | | |
4062 | 4093 | | |
4063 | 4094 | | |
4064 | | - | |
4065 | | - | |
4066 | | - | |
| 4095 | + | |
| 4096 | + | |
| 4097 | + | |
| 4098 | + | |
| 4099 | + | |
| 4100 | + | |
| 4101 | + | |
| 4102 | + | |
| 4103 | + | |
| 4104 | + | |
| 4105 | + | |
| 4106 | + | |
| 4107 | + | |
| 4108 | + | |
4067 | 4109 | | |
4068 | 4110 | | |
4069 | | - | |
| 4111 | + | |
4070 | 4112 | | |
4071 | 4113 | | |
4072 | 4114 | | |
| |||
4078 | 4120 | | |
4079 | 4121 | | |
4080 | 4122 | | |
| 4123 | + | |
| 4124 | + | |
| 4125 | + | |
| 4126 | + | |
| 4127 | + | |
| 4128 | + | |
| 4129 | + | |
| 4130 | + | |
| 4131 | + | |
| 4132 | + | |
4081 | 4133 | | |
4082 | 4134 | | |
4083 | | - | |
| 4135 | + | |
4084 | 4136 | | |
4085 | 4137 | | |
4086 | 4138 | | |
4087 | | - | |
4088 | | - | |
4089 | | - | |
| 4139 | + | |
| 4140 | + | |
| 4141 | + | |
| 4142 | + | |
| 4143 | + | |
| 4144 | + | |
| 4145 | + | |
| 4146 | + | |
| 4147 | + | |
| 4148 | + | |
| 4149 | + | |
| 4150 | + | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
4090 | 4160 | | |
4091 | | - | |
| 4161 | + | |
| 4162 | + | |
4092 | 4163 | | |
4093 | 4164 | | |
4094 | 4165 | | |
| |||
0 commit comments