]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/irdma: Report correct WC error when transport retry counter is exceeded
authorSindhu Devale <sindhu.devale@intel.com>
Thu, 16 Sep 2021 19:12:21 +0000 (14:12 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 20 Sep 2021 17:13:23 +0000 (14:13 -0300)
commitd3b58a4a314c13637c85f305778159540a52d76a
tree15feced510fc7f531e627695c2fbd86b7e9d59c2
parent8af3b112f28432daebfacebd888a29ce65377ac4
RDMA/irdma: Report correct WC error when transport retry counter is exceeded

When the retry counter exceeds, as the remote QP didn't send any Ack or
Nack an asynchronous event (AE) for too many retries is generated. Add
code to handle the AE and set the correct IB WC error code
IB_WC_RETRY_EXC_ERR.

Fixes: ec118db05224 ("RDMA/irdma: Implement device supported verb APIs")
Link: https://lore.kernel.org/r/20210916191222.824-4-shiraz.saleem@intel.com
Signed-off-by: Sindhu Devale <sindhu.devale@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/hw.c
drivers/infiniband/hw/irdma/user.h
drivers/infiniband/hw/irdma/verbs.c