Lines Matching refs:grp_data

1843 	struct mlx5_flow_group *grp_data;  in flow_hw_grp_create_cb()  local
1848 grp_data = mlx5_ipool_zmalloc(sh->ipool[MLX5_IPOOL_HW_GRP], &idx); in flow_hw_grp_create_cb()
1849 if (!grp_data) { in flow_hw_grp_create_cb()
1866 grp_data->tbl = tbl; in flow_hw_grp_create_cb()
1874 grp_data->jump.hws_action = jump; in flow_hw_grp_create_cb()
1882 grp_data->jump.root_action = jump; in flow_hw_grp_create_cb()
1884 grp_data->idx = idx; in flow_hw_grp_create_cb()
1885 grp_data->group_id = attr->group; in flow_hw_grp_create_cb()
1886 grp_data->type = dr_tbl_attr.type; in flow_hw_grp_create_cb()
1887 return &grp_data->entry; in flow_hw_grp_create_cb()
1889 if (grp_data->jump.root_action) in flow_hw_grp_create_cb()
1890 mlx5dr_action_destroy(grp_data->jump.root_action); in flow_hw_grp_create_cb()
1891 if (grp_data->jump.hws_action) in flow_hw_grp_create_cb()
1892 mlx5dr_action_destroy(grp_data->jump.hws_action); in flow_hw_grp_create_cb()
1916 struct mlx5_flow_group *grp_data = in flow_hw_grp_remove_cb() local
1921 if (grp_data->jump.hws_action) in flow_hw_grp_remove_cb()
1922 mlx5dr_action_destroy(grp_data->jump.hws_action); in flow_hw_grp_remove_cb()
1923 if (grp_data->jump.root_action) in flow_hw_grp_remove_cb()
1924 mlx5dr_action_destroy(grp_data->jump.root_action); in flow_hw_grp_remove_cb()
1925 mlx5dr_table_destroy(grp_data->tbl); in flow_hw_grp_remove_cb()
1926 mlx5_ipool_free(sh->ipool[MLX5_IPOOL_HW_GRP], grp_data->idx); in flow_hw_grp_remove_cb()
1947 struct mlx5_flow_group *grp_data = in flow_hw_grp_match_cb() local
1952 return (grp_data->group_id != attr->group) || in flow_hw_grp_match_cb()
1953 ((grp_data->type != MLX5DR_TABLE_TYPE_FDB) && in flow_hw_grp_match_cb()
1955 ((grp_data->type != MLX5DR_TABLE_TYPE_NIC_TX) && in flow_hw_grp_match_cb()
1957 ((grp_data->type != MLX5DR_TABLE_TYPE_NIC_RX) && in flow_hw_grp_match_cb()
1980 struct mlx5_flow_group *grp_data; in flow_hw_grp_clone_cb() local
1984 grp_data = mlx5_ipool_malloc(sh->ipool[MLX5_IPOOL_HW_GRP], &idx); in flow_hw_grp_clone_cb()
1985 if (!grp_data) { in flow_hw_grp_clone_cb()
1992 memcpy(grp_data, oentry, sizeof(*grp_data)); in flow_hw_grp_clone_cb()
1993 grp_data->idx = idx; in flow_hw_grp_clone_cb()
1994 return &grp_data->entry; in flow_hw_grp_clone_cb()
2009 struct mlx5_flow_group *grp_data = in flow_hw_grp_clone_free_cb() local
2012 mlx5_ipool_free(sh->ipool[MLX5_IPOOL_HW_GRP], grp_data->idx); in flow_hw_grp_clone_free_cb()