]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IB/hfi1: Do not flush send queue in the TID RDMA second leg
authorKaike Wan <kaike.wan@intel.com>
Wed, 10 Apr 2019 13:27:05 +0000 (06:27 -0700)
committerJason Gunthorpe <jgg@mellanox.com>
Wed, 10 Apr 2019 18:09:30 +0000 (15:09 -0300)
commitd737b25b1ae0540ba13cbd45ebb9b58a1d6d7f0d
tree8e81c561ee6a6793b3c2f8ec9e201c6180d67c05
parent00fb67ec6b98114a887d9ef26fc7c3e566e7f665
IB/hfi1: Do not flush send queue in the TID RDMA second leg

When a QP is put into error state, the send queue will be flushed.
This mechanism is implemented in both the first and the second leg
of the send engine. Since the second leg is only responsible for
data transactions in the KDETH space for the TID RDMA WRITE request,
it should not perform the flushing of the send queue.

This patch removes the flushing function of the second leg, but
still keeps the bailing out of the QP if it is put into error state.

Fixes: 70dcb2e3dc6a ("IB/hfi1: Add the TID second leg send packet builder")
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hfi1/tid_rdma.c