Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 70a43d3f authored by Yishai Hadas's avatar Yishai Hadas Committed by Leon Romanovsky
Browse files

net/mlx5: Report a CQ error event only when a handler was set



Report a CQ error event only when a handler was set.

This enables mlx5_ib to not set a handler upon CQ creation and use some
other mechanism to get this event as of other events by the
mlx5_eq_notifier_register API.

Signed-off-by: default avatarYishai Hadas <yishaih@mellanox.com>
Acked-by: default avatarSaeed Mahameed <saeedm@mellanox.com>
Signed-off-by: default avatarLeon Romanovsky <leonro@mellanox.com>
parent 38164b77
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -503,6 +503,7 @@ static int cq_err_event_notifier(struct notifier_block *nb,
		return NOTIFY_OK;
	}

	if (cq->event)
		cq->event(cq, type);

	mlx5_cq_put(cq);