Searched refs:opfc (Results 1 – 3 of 3) sorted by relevance
/linux-6.1.9/drivers/infiniband/hw/mlx5/ |
D | counters.c | 835 struct mlx5_ib_op_fc *opfc; in mlx5_ib_modify_stat() local 853 opfc = &cnts->opfcs[type]; in mlx5_ib_modify_stat() 856 if (opfc->fc) in mlx5_ib_modify_stat() 859 opfc->fc = mlx5_fc_create(dev->mdev, false); in mlx5_ib_modify_stat() 860 if (IS_ERR(opfc->fc)) in mlx5_ib_modify_stat() 861 return PTR_ERR(opfc->fc); in mlx5_ib_modify_stat() 863 ret = mlx5_ib_fs_add_op_fc(dev, port, opfc, type); in mlx5_ib_modify_stat() 865 mlx5_fc_destroy(dev->mdev, opfc->fc); in mlx5_ib_modify_stat() 866 opfc->fc = NULL; in mlx5_ib_modify_stat() 871 if (!opfc->fc) in mlx5_ib_modify_stat() [all …]
|
D | fs.c | 874 struct mlx5_ib_op_fc *opfc, in mlx5_ib_fs_add_op_fc() argument 949 dst.counter_id = mlx5_fc_id(opfc->fc); in mlx5_ib_fs_add_op_fc() 955 opfc->rule[i] = mlx5_add_flow_rules(prio->flow_table, &spec[i], in mlx5_ib_fs_add_op_fc() 957 if (IS_ERR(opfc->rule[i])) { in mlx5_ib_fs_add_op_fc() 958 err = PTR_ERR(opfc->rule[i]); in mlx5_ib_fs_add_op_fc() 969 mlx5_del_flow_rules(opfc->rule[i]); in mlx5_ib_fs_add_op_fc() 977 struct mlx5_ib_op_fc *opfc, in mlx5_ib_fs_remove_op_fc() argument 982 for (i = 0; i < MAX_OPFC_RULES && opfc->rule[i]; i++) { in mlx5_ib_fs_remove_op_fc() 983 mlx5_del_flow_rules(opfc->rule[i]); in mlx5_ib_fs_remove_op_fc()
|
D | mlx5_ib.h | 809 struct mlx5_ib_op_fc *opfc, 813 struct mlx5_ib_op_fc *opfc,
|