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)
commit91724c1e5afe45b64970036170659726e7dc5cff
tree8532d20cd54648fd9c990bb5b2beea11c8909a8d
parent34b3be18a04ecdc610aae4c48e5d1b799d8689f6
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: 2f43129127e6 ("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