Lines Matching defs:ft
80 struct mlx5e_flow_table *ft = NULL;
94 ft = &fs_tcp->tables[ACCEL_FS_IPV4_TCP];
106 ft = &fs_tcp->tables[ACCEL_FS_IPV4_TCP];
109 ft = &fs_tcp->tables[ACCEL_FS_IPV6_TCP];
117 if (!ft) {
138 flow = mlx5_add_flow_rules(ft->t, spec, &flow_act, &dest, 1);
179 static int accel_fs_tcp_create_groups(struct mlx5e_flow_table *ft,
189 ft->g = kcalloc(MLX5E_ACCEL_FS_TCP_NUM_GROUPS, sizeof(*ft->g), GFP_KERNEL);
191 if (!in || !ft->g) {
192 kfree(ft->g);
193 ft->g = NULL;
238 ft->g[ft->num_groups] = mlx5_create_flow_group(ft->t, in);
239 if (IS_ERR(ft->g[ft->num_groups]))
241 ft->num_groups++;
248 ft->g[ft->num_groups] = mlx5_create_flow_group(ft->t, in);
249 if (IS_ERR(ft->g[ft->num_groups]))
251 ft->num_groups++;
257 err = PTR_ERR(ft->g[ft->num_groups]);
258 ft->g[ft->num_groups] = NULL;
269 struct mlx5e_flow_table *ft = &accel_tcp->tables[type];
273 ft->num_groups = 0;
279 ft->t = mlx5_create_flow_table(ns, &ft_attr);
280 if (IS_ERR(ft->t)) {
281 err = PTR_ERR(ft->t);
282 ft->t = NULL;
287 ft->t->id, ft->t->level);
289 err = accel_fs_tcp_create_groups(ft, type);
299 mlx5e_destroy_flow_table(ft);
331 dest.ft = accel_tcp->tables[i].t;