commit | db84924c4fc3be1ef0c965d5ece5f6d785c77c5f | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@mellanox.com> | Wed Jan 10 11:42:44 2018 +0100 |
committer | David S. Miller <davem@davemloft.net> | Wed Jan 10 15:58:23 2018 -0500 |
tree | 87607701e3b539f48040149794e7eb193eb41268 | |
parent | 8e033a93b37f37aa9fca71a370a895155320af60 [diff] |
mlxsw: spectrum_qdisc: Don't use variable array in mlxsw_sp_tclass_congestion_enable Resolve the sparse warning: "sparse: Variable length array is used." Use 2 arrays for 2 PRM register accesses. Fixes: 96f17e0776c2 ("mlxsw: spectrum: Support RED qdisc offload") Signed-off-by: Jiri Pirko <jiri@mellanox.com> Reviewed-by: Yuval Mintz <yuvalm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>