net: mscc: ocelot: refactor policer work out of ocelot_setup_tc_cls_matchall
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 16 Mar 2022 20:41:39 +0000 (22:41 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 18 Mar 2022 00:42:46 +0000 (17:42 -0700)
commit4fa72108029c090d581fdb2d7ce267ef6cb8acdd
tree29ec59295712411c7c6aa463864a737649fa3b0b
parent2b341f7532d4f6c8b84206daad202a745962b844
net: mscc: ocelot: refactor policer work out of ocelot_setup_tc_cls_matchall

In preparation for adding port mirroring support to the ocelot driver,
the dispatching function ocelot_setup_tc_cls_matchall() must be free of
action-specific code. Move port policer creation and deletion to
separate functions.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mscc/ocelot_net.c