]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_buffers: Add ability to veto pool's configuration
authorIdo Schimmel <idosch@mellanox.com>
Mon, 22 Apr 2019 12:08:43 +0000 (12:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Apr 2019 05:09:32 +0000 (22:09 -0700)
commit754fe32d235b2801dab546ff6cf2b506ae64e53e
treec5ded57e4b2c1912a5ce1fa0fbb6f3cec2364f7b
parentc125babaf86b63cd5834acbd0f71f1f5c576fd2b
mlxsw: spectrum_buffers: Add ability to veto pool's configuration

Subsequent patches are going to need to veto changes in certain pools'
size and / or threshold type (mode).

Add two fields to the pool's struct that indicate if either of these
attributes is allowed to change and enforce that.

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