]> 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)
commit6205becfb54fe119bdcffc6a3db9ae4e65c86681
tree8532d20cd54648fd9c990bb5b2beea11c8909a8d
parent51cbed7ff3c117aa19c417268429e2ae2eb9880d
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: 37223c78d7f1 ("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