]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-switch: reorganize dpaa2_switch_cls_flower_replace
authorIoana Ciornei <ioana.ciornei@nxp.com>
Thu, 29 Jul 2021 17:18:55 +0000 (20:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Jul 2021 20:34:45 +0000 (21:34 +0100)
commit489040cd6a241dfd0a6053e0efc28313d47bd81e
treeba4cef7e5afa22ffbec348f605fc770fd034a3d4
parentc8cf74bfbf4d13a3c17c85c2a03cc03810da46f1
dpaa2-switch: reorganize dpaa2_switch_cls_flower_replace

Extract the necessary steps to offload a filter by using the ACL table
in a separate function - dpaa2_switch_cls_flower_replace_acl().
This is intended to help with the code readability when the mirroring
support is added.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-switch-flower.c