]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2640fb14ed73da9ce02a3c12438dc4aafaca79db
treea7ffcc89f420f9558273db709ff6c6a775c3834b
parent14b8d854b1a38eacc9056166b2af44280c417c83
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