WSL2-Linux-Kernel/drivers/infiniband
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
..
core IB/uverbs: Do not use uverbs_cmd_mask in the ioctl path 2018-07-09 13:19:01 -06:00
hw IB/mlx5: Honor cnt_set_id_valid flag instead of set_id 2018-07-09 13:30:25 -06:00
sw RDMA/rxe: Simplify the error handling code in rxe_create_ah() 2018-07-09 12:55:28 -06:00
ulp IB/iser: Remove set-but-not-used variables 2018-07-09 12:11:22 -06:00
Kconfig RDMA/ucm: Mark UCM interface as BROKEN 2018-05-24 09:39:25 -06:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00