mlxsw: spectrum_flower: Offload "ok" termination action
If action is "gact_ok", offload it to HW. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
3b8e9238a8
commit
b2925957ec
@ -63,7 +63,11 @@ static int mlxsw_sp_flower_parse_actions(struct mlxsw_sp *mlxsw_sp,
|
|||||||
|
|
||||||
tcf_exts_to_list(exts, &actions);
|
tcf_exts_to_list(exts, &actions);
|
||||||
list_for_each_entry(a, &actions, list) {
|
list_for_each_entry(a, &actions, list) {
|
||||||
if (is_tcf_gact_shot(a)) {
|
if (is_tcf_gact_ok(a)) {
|
||||||
|
err = mlxsw_sp_acl_rulei_act_continue(rulei);
|
||||||
|
if (err)
|
||||||
|
return err;
|
||||||
|
} else if (is_tcf_gact_shot(a)) {
|
||||||
err = mlxsw_sp_acl_rulei_act_drop(rulei);
|
err = mlxsw_sp_acl_rulei_act_drop(rulei);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
Loading…
Reference in New Issue
Block a user