Commit 3b5d8b44 authored by Ioana Ciornei's avatar Ioana Ciornei Committed by David S. Miller

dpaa2-switch: rename dpaa2_switch_tc_parse_action to specify the ACL

Until now, the dpaa2_switch_tc_parse_action() function was used for all
the supported tc actions since all of them were implemented by adding
ACL table entries. In the next commits, the dpaa2-switch driver will
gain mirroring support which is not using the same HW feature.

Make sure that we specify the ACL in the function name so that we make
it clear that it's only used for specific actions.
Signed-off-by: default avatarIoana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 88ea96f8
...@@ -339,7 +339,7 @@ dpaa2_switch_acl_tbl_remove_entry(struct dpaa2_switch_acl_tbl *acl_tbl, ...@@ -339,7 +339,7 @@ dpaa2_switch_acl_tbl_remove_entry(struct dpaa2_switch_acl_tbl *acl_tbl,
return 0; return 0;
} }
static int dpaa2_switch_tc_parse_action(struct ethsw_core *ethsw, static int dpaa2_switch_tc_parse_action_acl(struct ethsw_core *ethsw,
struct flow_action_entry *cls_act, struct flow_action_entry *cls_act,
struct dpsw_acl_result *dpsw_act, struct dpsw_acl_result *dpsw_act,
struct netlink_ext_ack *extack) struct netlink_ext_ack *extack)
...@@ -403,7 +403,7 @@ int dpaa2_switch_cls_flower_replace(struct dpaa2_switch_acl_tbl *acl_tbl, ...@@ -403,7 +403,7 @@ int dpaa2_switch_cls_flower_replace(struct dpaa2_switch_acl_tbl *acl_tbl,
goto free_acl_entry; goto free_acl_entry;
act = &rule->action.entries[0]; act = &rule->action.entries[0];
err = dpaa2_switch_tc_parse_action(ethsw, act, err = dpaa2_switch_tc_parse_action_acl(ethsw, act,
&acl_entry->cfg.result, extack); &acl_entry->cfg.result, extack);
if (err) if (err)
goto free_acl_entry; goto free_acl_entry;
...@@ -459,7 +459,7 @@ int dpaa2_switch_cls_matchall_replace(struct dpaa2_switch_acl_tbl *acl_tbl, ...@@ -459,7 +459,7 @@ int dpaa2_switch_cls_matchall_replace(struct dpaa2_switch_acl_tbl *acl_tbl,
return -ENOMEM; return -ENOMEM;
act = &cls->rule->action.entries[0]; act = &cls->rule->action.entries[0];
err = dpaa2_switch_tc_parse_action(ethsw, act, err = dpaa2_switch_tc_parse_action_acl(ethsw, act,
&acl_entry->cfg.result, extack); &acl_entry->cfg.result, extack);
if (err) if (err)
goto free_acl_entry; goto free_acl_entry;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment