net/mlx5: Report EQE data upon CQ completion
Report EQE data upon CQ completion to let upper layers use this data. Signed-off-by: Yishai Hadas <yishaih@mellanox.com> Acked-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
This commit is contained in:

gecommit door
Leon Romanovsky

bovenliggende
70a43d3fd4
commit
4e0e2ea188
@@ -37,7 +37,7 @@
|
||||
#include "mlx5_ib.h"
|
||||
#include "srq.h"
|
||||
|
||||
static void mlx5_ib_cq_comp(struct mlx5_core_cq *cq)
|
||||
static void mlx5_ib_cq_comp(struct mlx5_core_cq *cq, struct mlx5_eqe *eqe)
|
||||
{
|
||||
struct ib_cq *ibcq = &to_mibcq(cq)->ibcq;
|
||||
|
||||
|
@@ -4492,7 +4492,7 @@ static void mlx5_ib_handle_internal_error(struct mlx5_ib_dev *ibdev)
|
||||
* lock/unlock above locks Now need to arm all involved CQs.
|
||||
*/
|
||||
list_for_each_entry(mcq, &cq_armed_list, reset_notify) {
|
||||
mcq->comp(mcq);
|
||||
mcq->comp(mcq, NULL);
|
||||
}
|
||||
spin_unlock_irqrestore(&ibdev->reset_flow_resource_lock, flags);
|
||||
}
|
||||
|
@@ -6297,7 +6297,7 @@ static void handle_drain_completion(struct ib_cq *cq,
|
||||
/* Run the CQ handler - this makes sure that the drain WR will
|
||||
* be processed if wasn't processed yet.
|
||||
*/
|
||||
mcq->mcq.comp(&mcq->mcq);
|
||||
mcq->mcq.comp(&mcq->mcq, NULL);
|
||||
}
|
||||
|
||||
wait_for_completion(&sdrain->done);
|
||||
|
Verwijs in nieuw issue
Block a user