]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: Forbid changing threshold type of first egress pool
authorIdo Schimmel <idosch@mellanox.com>
Mon, 22 Apr 2019 12:08:47 +0000 (12:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Apr 2019 05:09:32 +0000 (22:09 -0700)
commit5f6c05cbe4a0a3f63721fe95103bdf2113a3acb8
tree01ce33662d95114101d6398501fcfbf430dfc601
parent78aa603003786a929c7094a0a67c910f627a7ea5
mlxsw: spectrum_buffers: Forbid changing threshold type of first egress pool

Multicast packets have three egress quotas:
* Per egress port
* Per egress port and traffic class
* Per switch priority

The limits on the switch priority are not exposed to the user and
specified as dynamic threshold on the first egress pool.

Forbid changing the threshold type of the first egress pool so that
these limits are always valid.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-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/spectrum_buffers.c