]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Configure shaper rate and burst size together
authorPetr Machata <petrm@mellanox.com>
Fri, 24 Jan 2020 13:23:13 +0000 (15:23 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 Jan 2020 09:56:31 +0000 (10:56 +0100)
commit5e3b15ae3050802ef2da9dfc838e71228e0ff4d8
treedfb05244184af288a0cf490dc18baebeee55b03a
parentc21937cb07c6ea91cd0d273e4f08d502f6c12950
mlxsw: spectrum: Configure shaper rate and burst size together

In order to allow configuration of burst size together with shaper rate,
extend mlxsw_sp_port_ets_maxrate_set() with a burst_size argument. Convert
call sites to pass 0 (for default).

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
drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c