linux_dsm_epyc7002/drivers/infiniband/hw
Yishai Hadas d0e84c0ad3 IB/mlx5: Add support for drain SQ & RQ
This patch follows the logic from ib_core but considers the internal
device state upon executing the involved commands.

Specifically,
Upon internal error state modify QP to an error state can be assumed to
be success as each in-progress WR going to be flushed in error in any
case as expected by that modify command.

In addition,
As the drain should never fail the driver makes sure that post_send/recv
will succeed even if the device is already in an internal error state.
As such once the driver will supply the simulated/SW CQEs the CQE for
the drain WR will be handled as well.

In case of an internal error state the CQE for the drain WR may be
completed as part of the main task that handled the error state or by
the task that issued the drain WR.

As the above depends on scheduling the code takes the relevant locks and
actions to make sure that the completion handler for that WR will always
be called after that the post_send/recv were issued but not in parallel
to the other task that handles the error flow.

Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2018-06-25 14:32:36 -06:00
..
bnxt_re IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
cxgb3 IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
cxgb4 iw_cxgb4: remove duplicate memcpy() in c4iw_create_listen() 2018-06-18 16:06:01 -06:00
hfi1 IB/hfi1: Remove INTx support and simplify MSIx usage 2018-06-22 09:12:17 -06:00
hns IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
i40iw IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
mlx4 IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
mlx5 IB/mlx5: Add support for drain SQ & RQ 2018-06-25 14:32:36 -06:00
mthca IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
nes IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
ocrdma IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
qedr IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
qib IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
usnic treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
vmw_pvrdma IB/core: add max_send_sge and max_recv_sge attributes 2018-06-18 13:17:28 -06:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00