]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Add lowest_shaper_bs to struct mlxsw_sp
authorPetr Machata <petrm@mellanox.com>
Fri, 24 Jan 2020 13:23:12 +0000 (15:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jan 2020 09:56:31 +0000 (10:56 +0100)
commitc21937cb07c6ea91cd0d273e4f08d502f6c12950
tree3738be52d97f3646cb291d195a41e2de4783b56a
parent358ae2b9d42e4623b8f189efaa667886d08460df
mlxsw: spectrum: Add lowest_shaper_bs to struct mlxsw_sp

Lower limit of burst size configuration is dependent on system type. Add a
datum to track the value. Initialize as appropriate in mlxsw_spX_init().

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h