linux-sg2042/drivers/infiniband/hw
Parav Pandit 921c0f5ba5 IB/mlx5: Honor cnt_set_id_valid flag instead of set_id
It is incorrect to depend on set_id value to know if counters were
allocated or not. set_id_valid field is set to true when counters
were allocated. Therefore, use set_id_valid while deciding to
free counters.

Cc: <stable@vger.kernel.org> # 4.15
Fixes: aac4492ef2 ("IB/mlx5: Update counter implementation for dual port RoCE")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-07-09 13:30:25 -06:00
..
bnxt_re RDMA/bnxt_re: Fix a bunch of off by one bugs in qplib_fp.c 2018-07-04 12:06:26 -06:00
cxgb3 RDMA/cxgb3: Make iwch_poll_cq_one() easier to analyze 2018-07-09 12:55:28 -06:00
cxgb4 RDMA/cxgb4: Make c4iw_poll_cq_one() easier to analyze 2018-07-09 13:07:23 -06:00
hfi1 IB/hfi1: Remove incorrect call to do_interrupt callback 2018-07-03 14:29:12 -06:00
hns IB/mlx5: Remove set-but-not-used variables 2018-07-03 14:14:21 -06:00
i40iw RDMA/i40w: Hold read semaphore while looking after VMA 2018-07-04 11:51:06 -06:00
mlx4 IB/mlx4: Test port number before querying type. 2018-07-04 11:48:27 -06:00
mlx5 IB/mlx5: Honor cnt_set_id_valid flag instead of set_id 2018-07-09 13:30:25 -06:00
mthca IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
nes IB/nes: Fix a compiler warning 2018-07-09 12:11:22 -06:00
ocrdma RDMA/ocrdma: Remove a set-but-not-used variable 2018-07-09 12:11:22 -06:00
qedr IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
qib IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
usnic IB/usnic: Update with bug fixes from core code 2018-06-25 14:38:28 -06:00
vmw_pvrdma vmw_pvrdma: Release netdev when vmxnet3 module is removed 2018-07-03 15:52:31 -06:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00