Lines Matching refs:act

67 				   struct efx_tc_action_set *act, bool in_hw)  in efx_tc_free_action_set()  argument
74 efx_mae_free_action_set(efx, act->fw_id); in efx_tc_free_action_set()
78 list_del(&act->list); in efx_tc_free_action_set()
80 kfree(act); in efx_tc_free_action_set()
87 struct efx_tc_action_set *act, *next; in efx_tc_free_action_set_list() local
96 list_for_each_entry_safe(act, next, &acts->list, list) in efx_tc_free_action_set_list()
97 efx_tc_free_action_set(efx, act, true); in efx_tc_free_action_set_list()
179 struct efx_tc_action_set *act = NULL; in efx_tc_flower_replace() local
253 act = kzalloc(sizeof(*act), GFP_USER); in efx_tc_flower_replace()
254 if (!act) { in efx_tc_flower_replace()
262 if (!act) { in efx_tc_flower_replace()
271 rc = efx_mae_alloc_action_set(efx, act); in efx_tc_flower_replace()
276 list_add_tail(&act->list, &rule->acts.list); in efx_tc_flower_replace()
277 act = NULL; /* end of the line */ in efx_tc_flower_replace()
281 save = *act; in efx_tc_flower_replace()
293 act->dest_mport = rc; in efx_tc_flower_replace()
294 act->deliver = 1; in efx_tc_flower_replace()
295 rc = efx_mae_alloc_action_set(efx, act); in efx_tc_flower_replace()
300 list_add_tail(&act->list, &rule->acts.list); in efx_tc_flower_replace()
301 act = NULL; in efx_tc_flower_replace()
305 act = kzalloc(sizeof(*act), GFP_USER); in efx_tc_flower_replace()
306 if (!act) { in efx_tc_flower_replace()
310 *act = save; in efx_tc_flower_replace()
320 if (act) { in efx_tc_flower_replace()
326 efx_mae_mport_uplink(efx, &act->dest_mport); in efx_tc_flower_replace()
333 &act->dest_mport); in efx_tc_flower_replace()
334 act->deliver = 1; in efx_tc_flower_replace()
335 rc = efx_mae_alloc_action_set(efx, act); in efx_tc_flower_replace()
340 list_add_tail(&act->list, &rule->acts.list); in efx_tc_flower_replace()
341 act = NULL; /* Prevent double-free in error path */ in efx_tc_flower_replace()
369 if (act) in efx_tc_flower_replace()
370 efx_tc_free_action_set(efx, act, false); in efx_tc_flower_replace()
442 struct efx_tc_action_set *act; in efx_tc_configure_default_rule() local
447 act = kzalloc(sizeof(*act), GFP_KERNEL); in efx_tc_configure_default_rule()
448 if (!act) in efx_tc_configure_default_rule()
450 act->deliver = 1; in efx_tc_configure_default_rule()
451 act->dest_mport = eg_port; in efx_tc_configure_default_rule()
452 rc = efx_mae_alloc_action_set(efx, act); in efx_tc_configure_default_rule()
456 list_add_tail(&act->list, &acts->list); in efx_tc_configure_default_rule()
468 list_del(&act->list); in efx_tc_configure_default_rule()
469 efx_mae_free_action_set(efx, act->fw_id); in efx_tc_configure_default_rule()
471 kfree(act); in efx_tc_configure_default_rule()