]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: reg: Increase register field length to 31 bits
authorIdo Schimmel <idosch@mellanox.com>
Sun, 15 Mar 2020 08:07:35 +0000 (10:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 Mar 2020 00:04:16 +0000 (17:04 -0700)
commita9c4f69d322990df05e3d7b9919629bf65d3d174
tree1bcf53a83cc861798b4079fb2b16c5bc9c62e9d3
parent208109412c87bb96ae6c4b5194a799c67f166580
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: 3cce26662a2b ("mlxsw: reg: Increase MLXSW_REG_QEEC_MAS_DIS")
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/reg.h