Lines Matching defs:ft

84 	struct mlx5_flow_table *ft = NULL;
97 ft = fs_udp->tables[type].t;
103 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1);
144 static int fs_udp_create_groups(struct mlx5e_flow_table *ft, enum fs_udp_type type)
153 ft->g = kcalloc(MLX5E_FS_UDP_NUM_GROUPS, sizeof(*ft->g), GFP_KERNEL);
155 if (!in || !ft->g) {
156 kfree(ft->g);
157 ft->g = NULL;
181 ft->g[ft->num_groups] = mlx5_create_flow_group(ft->t, in);
182 if (IS_ERR(ft->g[ft->num_groups]))
184 ft->num_groups++;
191 ft->g[ft->num_groups] = mlx5_create_flow_group(ft->t, in);
192 if (IS_ERR(ft->g[ft->num_groups]))
194 ft->num_groups++;
200 err = PTR_ERR(ft->g[ft->num_groups]);
201 ft->g[ft->num_groups] = NULL;
213 struct mlx5e_flow_table *ft;
216 ft = &fs_udp->tables[type];
217 ft->num_groups = 0;
223 ft->t = mlx5_create_flow_table(ns, &ft_attr);
224 if (IS_ERR(ft->t)) {
225 err = PTR_ERR(ft->t);
226 ft->t = NULL;
231 fs_udp_type2str(type), ft->t->id, ft->t->level);
233 err = fs_udp_create_groups(ft, type);
244 mlx5e_destroy_flow_table(ft);
285 dest.ft = udp->tables[i].t;
369 struct mlx5_flow_table *ft = NULL;
379 ft = fs_any->table.t;
385 rule = mlx5_add_flow_rules(ft, spec, &flow_act, &dest, 1);
426 static int fs_any_create_groups(struct mlx5e_flow_table *ft)
435 ft->g = kcalloc(MLX5E_FS_UDP_NUM_GROUPS, sizeof(*ft->g), GFP_KERNEL);
437 if (!in || !ft->g) {
438 kfree(ft->g);
439 ft->g = NULL;
452 ft->g[ft->num_groups] = mlx5_create_flow_group(ft->t, in);
453 if (IS_ERR(ft->g[ft->num_groups]))
455 ft->num_groups++;
462 ft->g[ft->num_groups] = mlx5_create_flow_group(ft->t, in);
463 if (IS_ERR(ft->g[ft->num_groups]))
465 ft->num_groups++;
471 err = PTR_ERR(ft->g[ft->num_groups]);
472 ft->g[ft->num_groups] = NULL;
482 struct mlx5e_flow_table *ft = &fs_any->table;
486 ft->num_groups = 0;
492 ft->t = mlx5_create_flow_table(ns, &ft_attr);
493 if (IS_ERR(ft->t)) {
494 err = PTR_ERR(ft->t);
495 ft->t = NULL;
500 ft->t->id, ft->t->level);
502 err = fs_any_create_groups(ft);
513 mlx5e_destroy_flow_table(ft);
541 dest.ft = any->table.t;