Home
last modified time | relevance | path

Searched refs:opfc (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/infiniband/hw/mlx5/
Dcounters.c983 struct mlx5_ib_op_fc *opfc; in mlx5_ib_modify_stat() local
1001 opfc = &cnts->opfcs[type]; in mlx5_ib_modify_stat()
1004 if (opfc->fc) in mlx5_ib_modify_stat()
1007 opfc->fc = mlx5_fc_create(dev->mdev, false); in mlx5_ib_modify_stat()
1008 if (IS_ERR(opfc->fc)) in mlx5_ib_modify_stat()
1009 return PTR_ERR(opfc->fc); in mlx5_ib_modify_stat()
1011 ret = mlx5_ib_fs_add_op_fc(dev, port, opfc, type); in mlx5_ib_modify_stat()
1013 mlx5_fc_destroy(dev->mdev, opfc->fc); in mlx5_ib_modify_stat()
1014 opfc->fc = NULL; in mlx5_ib_modify_stat()
1019 if (!opfc->fc) in mlx5_ib_modify_stat()
[all …]
Dfs.c871 struct mlx5_ib_op_fc *opfc, in mlx5_ib_fs_add_op_fc() argument
946 dst.counter_id = mlx5_fc_id(opfc->fc); in mlx5_ib_fs_add_op_fc()
952 opfc->rule[i] = mlx5_add_flow_rules(prio->flow_table, &spec[i], in mlx5_ib_fs_add_op_fc()
954 if (IS_ERR(opfc->rule[i])) { in mlx5_ib_fs_add_op_fc()
955 err = PTR_ERR(opfc->rule[i]); in mlx5_ib_fs_add_op_fc()
966 mlx5_del_flow_rules(opfc->rule[i]); in mlx5_ib_fs_add_op_fc()
974 struct mlx5_ib_op_fc *opfc, in mlx5_ib_fs_remove_op_fc() argument
979 for (i = 0; i < MAX_OPFC_RULES && opfc->rule[i]; i++) { in mlx5_ib_fs_remove_op_fc()
980 mlx5_del_flow_rules(opfc->rule[i]); in mlx5_ib_fs_remove_op_fc()
Dmlx5_ib.h872 struct mlx5_ib_op_fc *opfc,
876 struct mlx5_ib_op_fc *opfc,