]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit77257eb521fd39c813b13bfef260b4dea6968993
tree29ec59295712411c7c6aa463864a737649fa3b0b
parentbc83e1f9c2e9fd3b2d66bb5fb4f33cfbcf7e74c8
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