Skip to content

Commit cb851c0

Browse files
idoschdavem330
authored andcommitted
mlxsw: reg: Increase register field length to 31 bits
The cited commit set a value of 2^31-1 in order to "disable" the shaper on a given a port. However, the length of the maximum shaper rate field was not updated from 28 bits to 31 bits, which means ports are still limited to ~268Gbps despite supporting speeds of 400Gbps. Fix this by increasing the field's length. Fixes: 92afbfe ("mlxsw: reg: Increase MLXSW_REG_QEEC_MAS_DIS") Signed-off-by: Ido Schimmel <[email protected]> Reviewed-by: Jiri Pirko <[email protected]> Reviewed-by: Petr Machata <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0fda760 commit cb851c0

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3572,7 +3572,7 @@ MLXSW_ITEM32(reg, qeec, mase, 0x10, 31, 1);
35723572
* When in bytes mode, value is specified in units of 1000bps.
35733573
* Access: RW
35743574
*/
3575-
MLXSW_ITEM32(reg, qeec, max_shaper_rate, 0x10, 0, 28);
3575+
MLXSW_ITEM32(reg, qeec, max_shaper_rate, 0x10, 0, 31);
35763576

35773577
/* reg_qeec_de
35783578
* DWRR configuration enable. Enables configuration of the dwrr and

0 commit comments

Comments
 (0)