mlxsw: spectrum: Use same switch case for identical groups
authorIdo Schimmel <idosch@mellanox.com>
Mon, 25 May 2020 23:05:44 +0000 (02:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 03:33:57 +0000 (20:33 -0700)
commit761bc42fbecff8cfb8e529451fd0f13800d050c4
treea7ffcc89f420f9558273db709ff6c6a775c3834b
parent3c2d8a046a4cd0bc835f2e6cfbc12f41d7f4323e
mlxsw: spectrum: Use same switch case for identical groups

Trap groups that use the same policer settings can share the same switch
case.

Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum.c