Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2925957 authored by Jiri Pirko's avatar Jiri Pirko Committed by David S. Miller
Browse files

mlxsw: spectrum_flower: Offload "ok" termination action



If action is "gact_ok", offload it to HW.

Signed-off-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3b8e9238
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -63,7 +63,11 @@ static int mlxsw_sp_flower_parse_actions(struct mlxsw_sp *mlxsw_sp,

	tcf_exts_to_list(exts, &actions);
	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);
			if (err)
				return err;