OSDN Git Service

i40iw: Tear-down connection after CQP Modify QP failure
authorHenry Orosco <henry.orosco@intel.com>
Wed, 14 Mar 2018 19:45:23 +0000 (14:45 -0500)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 21:58:05 +0000 (15:58 -0600)
commit546b1452fdcccdcc98962b324cab6d74fc976fe9
tree50d9455c9a21a5484a1d58f9ed04708aaae67252
parenta8b9234b1272de7a2af87e076fad51ba096a3c30
i40iw: Tear-down connection after CQP Modify QP failure

There is no explicit tear-down sequence initiated on
connections if the Control QP OP, Modify QP to close,
fails. Fix this by triggering a driver generated
Asynchronous Event (AE) on Modify QP failures and
tear-down the connection on receipt of the AE.

This fix can be generalized to other Modify QP failures
(i.e. RTS->TERM, IDLE->RTS, etc) as any modify failure
will require a connection tear-down.

Fixes: d37498417947 ("i40iw: add files for iwarp interface")
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw.h
drivers/infiniband/hw/i40iw/i40iw_cm.c
drivers/infiniband/hw/i40iw/i40iw_hw.c
drivers/infiniband/hw/i40iw/i40iw_verbs.c