commit | ab8c4cc604206a9b99705018fffe0c5d2c90f2ef | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@mellanox.com> | Wed Mar 18 15:48:54 2020 +0200 |
committer | David S. Miller <davem@davemloft.net> | Wed Mar 18 16:46:19 2020 -0700 |
tree | 6c07aa1c92871f34d067039c21a0b8af1d3d1e19 | |
parent | d53cdbb889a33c803847da8d1592a45b4c1badb5 [diff] |
mlxsw: spectrum_cnt: Move config validation along with resource register Move the validation of subpools configuration, to avoid possible over commitment to resource registration. Add WARN_ON to indicate bug in the code. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: Ido Schimmel <idosch@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>