Lines Matching refs:anchor

2034 	if (ft_prio->anchor.ft)  in steering_anchor_create_ft()
2051 ft_prio->anchor.ft = ft; in steering_anchor_create_ft()
2058 if (ft_prio->anchor.ft) { in steering_anchor_destroy_ft()
2059 mlx5_destroy_flow_table(ft_prio->anchor.ft); in steering_anchor_destroy_ft()
2060 ft_prio->anchor.ft = NULL; in steering_anchor_destroy_ft()
2072 if (ft_prio->anchor.fg_drop) in steering_anchor_create_fg_drop()
2082 fg = mlx5_create_flow_group(ft_prio->anchor.ft, flow_group_in); in steering_anchor_create_fg_drop()
2088 ft_prio->anchor.fg_drop = fg; in steering_anchor_create_fg_drop()
2099 if (ft_prio->anchor.fg_drop) { in steering_anchor_destroy_fg_drop()
2100 mlx5_destroy_flow_group(ft_prio->anchor.fg_drop); in steering_anchor_destroy_fg_drop()
2101 ft_prio->anchor.fg_drop = NULL; in steering_anchor_destroy_fg_drop()
2113 if (ft_prio->anchor.fg_goto_table) in steering_anchor_create_fg_goto_table()
2120 fg = mlx5_create_flow_group(ft_prio->anchor.ft, flow_group_in); in steering_anchor_create_fg_goto_table()
2125 ft_prio->anchor.fg_goto_table = fg; in steering_anchor_create_fg_goto_table()
2136 if (ft_prio->anchor.fg_goto_table) { in steering_anchor_destroy_fg_goto_table()
2137 mlx5_destroy_flow_group(ft_prio->anchor.fg_goto_table); in steering_anchor_destroy_fg_goto_table()
2138 ft_prio->anchor.fg_goto_table = NULL; in steering_anchor_destroy_fg_goto_table()
2148 if (ft_prio->anchor.rule_drop) in steering_anchor_create_rule_drop()
2151 flow_act.fg = ft_prio->anchor.fg_drop; in steering_anchor_create_rule_drop()
2154 handle = mlx5_add_flow_rules(ft_prio->anchor.ft, NULL, &flow_act, in steering_anchor_create_rule_drop()
2159 ft_prio->anchor.rule_drop = handle; in steering_anchor_create_rule_drop()
2166 if (ft_prio->anchor.rule_drop) { in steering_anchor_destroy_rule_drop()
2167 mlx5_del_flow_rules(ft_prio->anchor.rule_drop); in steering_anchor_destroy_rule_drop()
2168 ft_prio->anchor.rule_drop = NULL; in steering_anchor_destroy_rule_drop()
2179 if (ft_prio->anchor.rule_goto_table) in steering_anchor_create_rule_goto_table()
2184 flow_act.fg = ft_prio->anchor.fg_goto_table; in steering_anchor_create_rule_goto_table()
2189 handle = mlx5_add_flow_rules(ft_prio->anchor.ft, NULL, &flow_act, in steering_anchor_create_rule_goto_table()
2194 ft_prio->anchor.rule_goto_table = handle; in steering_anchor_create_rule_goto_table()
2202 if (ft_prio->anchor.rule_goto_table) { in steering_anchor_destroy_rule_goto_table()
2203 mlx5_del_flow_rules(ft_prio->anchor.rule_goto_table); in steering_anchor_destroy_rule_goto_table()
2204 ft_prio->anchor.rule_goto_table = NULL; in steering_anchor_destroy_rule_goto_table()
2267 if (!--obj->ft_prio->anchor.rule_goto_table_ref) in steering_anchor_cleanup()
2444 if (!ft_prio->anchor.rule_goto_table_ref) { in UVERBS_HANDLER()
2450 ft_prio->anchor.rule_goto_table_ref++; in UVERBS_HANDLER()
2452 ft_id = mlx5_flow_table_id(ft_prio->anchor.ft); in UVERBS_HANDLER()
2469 --ft_prio->anchor.rule_goto_table_ref; in UVERBS_HANDLER()