]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/iw_cxgb4: fix SRQ access from dump_qp()
authorPotnuri Bharat Teja <bharat@chelsio.com>
Mon, 30 Sep 2019 07:41:19 +0000 (13:11 +0530)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 1 Oct 2019 14:48:10 +0000 (11:48 -0300)
commit00c1ece9299836df6f80183ced5bc6d1d6cc0997
tree8532d20cd54648fd9c990bb5b2beea11c8909a8d
parent5a634ba6037127f2420f1a412d583ca064f65a8a
RDMA/iw_cxgb4: fix SRQ access from dump_qp()

dump_qp() is wrongly trying to dump SRQ structures as QP when SRQ is used
by the application. This patch matches the QPID before dumping them.  Also
removes unwanted SRQ id addition to QP id xarray.

Fixes: 6fc81f7c2a89 ("cxgb4: Convert qpidr to XArray")
Link: https://lore.kernel.org/r/20190930074119.20046-1-bharat@chelsio.com
Signed-off-by: Rahul Kundu <rahul.kundu@chelsio.com>
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/cxgb4/device.c
drivers/infiniband/hw/cxgb4/qp.c