linux/drivers/infiniband/hw/mlx5
Patrisious Haddad e1a0bdbdfd RDMA/mlx5: Fix bind QP error cleanup flow
When there is a failure during bind QP, the cleanup flow destroys the
counter regardless if it is the one that created it or not, which is
problematic since if it isn't the one that created it, that counter could
still be in use.

Fix that by destroying the counter only if it was created during this call.

Fixes: 45842fc627 ("IB/mlx5: Support statistic q counter configuration")
Signed-off-by: Patrisious Haddad <phaddad@nvidia.com>
Reviewed-by: Mark Zhang <markzhang@nvidia.com>
Link: https://patch.msgid.link/25dfefddb0ebefa668c32e06a94d84e3216257cf.1740033937.git.leon@kernel.org
Reviewed-by: Zhu Yanjun <yanjun.zhu@linux.dev>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
2025-02-23 03:35:18 -05:00
..
ah.c RDMA/mlx5: Fix AH static rate parsing 2025-02-20 01:43:13 -05:00
cmd.c RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device 2024-08-11 11:12:49 +03:00
cmd.h RDMA/mlx5: Add the initialization flow to utilize the 'data direct' device 2024-08-11 11:12:49 +03:00
cong.c IB/mlx5: Don't expose debugfs entries for RRoCE general parameters if not supported 2024-01-31 11:15:29 +02:00
counters.c RDMA/mlx5: Fix bind QP error cleanup flow 2025-02-23 03:35:18 -05:00
counters.h
cq.c RDMA/mlx5: Send UAR page index as ioctl attribute 2024-06-27 16:28:22 -03:00
data_direct.c RDMA/mlx5: Introduce the 'data direct' driver 2024-08-11 11:12:49 +03:00
data_direct.h RDMA/mlx5: Introduce the 'data direct' driver 2024-08-11 11:12:49 +03:00
devx.c RDMA/mlx5: Add implementation for ufile_hw_cleanup device operation 2024-11-04 06:57:21 -05:00
devx.h RDMA/mlx5: Add implementation for ufile_hw_cleanup device operation 2024-11-04 06:57:21 -05:00
dm.c
dm.h
doorbell.c
fs.c net/mlx5: fs, add counter object to flow destination 2024-12-23 10:34:45 -08:00
fs.h
gsi.c
ib_rep.c RDMA/mlx5: Use IB set_netdev and get_netdev functions 2024-09-13 08:27:40 +03:00
ib_rep.h
ib_virt.c
Kconfig
macsec.c
macsec.h
mad.c RDMA/mlx5: Support querying per-plane IB PortCounters 2024-11-04 06:57:20 -05:00
main.c RDMA v6.14 merge window pull request 2025-01-24 12:21:28 -08:00
Makefile RDMA/mlx5: Introduce the 'data direct' driver 2024-08-11 11:12:49 +03:00
mem.c net/mlx5: Reimplement write combining test 2024-06-16 18:33:59 +03:00
mlx5_ib.h RDMA/mlx5: Extend ODP statistics with operation count 2024-12-10 04:09:09 -05:00
mr.c RDMA/mlx5: Fix a WARN during dereg_mr for DM type 2025-02-06 03:43:57 -05:00
odp.c RDMA/mlx5: Fix implicit ODP hang on parent deregistration 2025-02-20 01:43:13 -05:00
qos.c
qp.c RDMA/mlx5: Fix AH static rate parsing 2025-02-20 01:43:13 -05:00
qp.h RDMA/mlx5: Fix AH static rate parsing 2025-02-20 01:43:13 -05:00
qpc.c RDMA/mlx5: Support plane device and driver APIs to add and delete it 2024-07-01 15:38:05 +03:00
restrack.c RDMA/mlx5: Extend ODP statistics with operation count 2024-12-10 04:09:09 -05:00
restrack.h
srq.c RDMA v6.11 merge window 2024-07-19 09:51:33 -07:00
srq.h
srq_cmd.c
std_types.c RDMA/mlx5: Introduce GET_DATA_DIRECT_SYSFS_PATH ioctl 2024-08-11 11:12:50 +03:00
umr.c RDMA/mlx5: Fix the recovery flow of the UMR QP 2025-02-03 06:35:27 -05:00
umr.h RDMA/mlx5: Add support for DMABUF MR registrations with Data-direct 2024-08-11 11:12:50 +03:00
wr.c RDMA/mlx5: Fix fortify source warning while accessing Eth segment 2024-01-31 11:15:17 +02:00
wr.h