Lines Matching defs:fs

77 mlx5e_fs_tt_redirect_udp_add_rule(struct mlx5e_flow_steering *fs,
81 struct mlx5e_fs_udp *fs_udp = mlx5e_fs_get_udp(fs);
108 fs_err(fs, "%s: add %s rule failed, err %d\n",
114 static int fs_udp_add_default_rule(struct mlx5e_flow_steering *fs, enum fs_udp_type type)
116 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false);
117 struct mlx5e_fs_udp *fs_udp = mlx5e_fs_get_udp(fs);
130 fs_err(fs, "%s: add default rule failed, fs type=%d, err %d\n",
208 static int fs_udp_create_table(struct mlx5e_flow_steering *fs, enum fs_udp_type type)
210 struct mlx5_flow_namespace *ns = mlx5e_fs_get_ns(fs, false);
211 struct mlx5e_fs_udp *fs_udp = mlx5e_fs_get_udp(fs);
230 mlx5_core_dbg(mlx5e_fs_get_mdev(fs), "Created fs %s table id %u level %u\n",
237 err = fs_udp_add_default_rule(fs, type);
258 static int fs_udp_disable(struct mlx5e_flow_steering *fs)
260 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false);
267 fs_err(fs, "%s: modify ttc[%d] default destination failed, err(%d)\n",
276 static int fs_udp_enable(struct mlx5e_flow_steering *fs)
278 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false);
279 struct mlx5e_fs_udp *udp = mlx5e_fs_get_udp(fs);
290 fs_err(fs, "%s: modify ttc[%d] destination to accel failed, err(%d)\n",
298 void mlx5e_fs_tt_redirect_udp_destroy(struct mlx5e_flow_steering *fs)
300 struct mlx5e_fs_udp *fs_udp = mlx5e_fs_get_udp(fs);
309 fs_udp_disable(fs);
315 mlx5e_fs_set_udp(fs, NULL);
318 int mlx5e_fs_tt_redirect_udp_create(struct mlx5e_flow_steering *fs)
320 struct mlx5e_fs_udp *udp = mlx5e_fs_get_udp(fs);
331 mlx5e_fs_set_udp(fs, udp);
334 err = fs_udp_create_table(fs, i);
339 err = fs_udp_enable(fs);
352 mlx5e_fs_set_udp(fs, NULL);
364 mlx5e_fs_tt_redirect_any_add_rule(struct mlx5e_flow_steering *fs,
367 struct mlx5e_fs_any *fs_any = mlx5e_fs_get_any(fs);
390 fs_err(fs, "%s: add ANY rule failed, err %d\n",
396 static int fs_any_add_default_rule(struct mlx5e_flow_steering *fs)
398 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false);
399 struct mlx5e_fs_any *fs_any = mlx5e_fs_get_any(fs);
411 fs_err(fs, "%s: add default rule failed, fs type=ANY, err %d\n",
478 static int fs_any_create_table(struct mlx5e_flow_steering *fs)
480 struct mlx5_flow_namespace *ns = mlx5e_fs_get_ns(fs, false);
481 struct mlx5e_fs_any *fs_any = mlx5e_fs_get_any(fs);
499 mlx5_core_dbg(mlx5e_fs_get_mdev(fs), "Created fs ANY table id %u level %u\n",
506 err = fs_any_add_default_rule(fs);
517 static int fs_any_disable(struct mlx5e_flow_steering *fs)
519 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false);
525 fs_err(fs,
533 static int fs_any_enable(struct mlx5e_flow_steering *fs)
535 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false);
536 struct mlx5e_fs_any *any = mlx5e_fs_get_any(fs);
546 fs_err(fs,
564 void mlx5e_fs_tt_redirect_any_destroy(struct mlx5e_flow_steering *fs)
566 struct mlx5e_fs_any *fs_any = mlx5e_fs_get_any(fs);
574 fs_any_disable(fs);
579 mlx5e_fs_set_any(fs, NULL);
582 int mlx5e_fs_tt_redirect_any_create(struct mlx5e_flow_steering *fs)
584 struct mlx5e_fs_any *fs_any = mlx5e_fs_get_any(fs);
595 mlx5e_fs_set_any(fs, fs_any);
597 err = fs_any_create_table(fs);
601 err = fs_any_enable(fs);
612 mlx5e_fs_set_any(fs, NULL);