]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/irdma: Flush iWARP QP if modified to ERR from RTR state
authorTatyana Nikolova <tatyana.e.nikolova@intel.com>
Mon, 25 Apr 2022 18:17:01 +0000 (13:17 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 2 May 2022 14:10:33 +0000 (11:10 -0300)
commit29bf92fa611ea82b30f95ecce1355367be2d03e6
treebd6aae0162b6e6db60f7752f67590cdb6e74cc07
parent0085d996e622ccb92f4d8e7b48258dfa6f579c16
RDMA/irdma: Flush iWARP QP if modified to ERR from RTR state

When connection establishment fails in iWARP mode, an app can drain the
QPs and hang because flush isn't issued when the QP is modified from RTR
state to error. Issue a flush in this case using function
irdma_cm_disconn().

Update irdma_cm_disconn() to do flush when cm_id is NULL, which is the
case when the QP is in RTR state and there is an error in the connection
establishment.

Fixes: 434ed3ceee5a ("RDMA/irdma: Implement device supported verb APIs")
Link: https://lore.kernel.org/r/20220425181703.1634-2-shiraz.saleem@intel.com
Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/cm.c
drivers/infiniband/hw/irdma/verbs.c