linux/drivers/infiniband/hw
Raju Rangoju f368ff188a iw_cxgb4: fix srqidx leak during connection abort
When an application aborts the connection by moving QP from RTS to ERROR,
then iw_cxgb4's modify_rc_qp() RTS->ERROR logic sets the
*srqidxp to 0 via t4_set_wq_in_error(&qhp->wq, 0), and aborts the
connection by calling c4iw_ep_disconnect().

c4iw_ep_disconnect() does the following:
 1. sends up a close_complete_upcall(ep, -ECONNRESET) to libcxgb4.
 2. sends abort request CPL to hw.

But, since the close_complete_upcall() is sent before sending the
ABORT_REQ to hw, libcxgb4 would fail to release the srqidx if the
connection holds one. Because, the srqidx is passed up to libcxgb4 only
after corresponding ABORT_RPL is processed by kernel in abort_rpl().

This patch handle the corner-case by moving the call to
close_complete_upcall() from c4iw_ep_disconnect() to abort_rpl().  So that
libcxgb4 is notified about the -ECONNRESET only after abort_rpl(), and
libcxgb4 can relinquish the srqidx properly.

Signed-off-by: Raju Rangoju <rajur@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2019-02-08 17:02:05 -07:00
..
bnxt_re RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
cxgb3 RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
cxgb4 iw_cxgb4: fix srqidx leak during connection abort 2019-02-08 17:02:05 -07:00
hfi1 drivers/IB,hfi1: do not se mmap_sem 2019-02-07 12:54:02 -07:00
hns RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
i40iw RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
mlx4 RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
mlx5 RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
mthca RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
nes RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
ocrdma RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
qedr RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
qib drivers/IB,qib: optimize mmap_sem usage 2019-02-07 12:54:02 -07:00
usnic RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
vmw_pvrdma RDMA: Handle PD allocations by IB/core 2019-02-08 16:51:04 -07:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00