]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Report a CQ error event only when a handler was set
authorYishai Hadas <yishaih@mellanox.com>
Sun, 30 Jun 2019 16:23:26 +0000 (19:23 +0300)
committerLeon Romanovsky <leonro@mellanox.com>
Wed, 3 Jul 2019 17:59:40 +0000 (20:59 +0300)
commitfab8aa98c4c359a5828fe6f035c24df6b7983ebc
treeb191f164940447764c8de1f1f93e3279ccb80266
parentce27395442102c25c71e61400017ee0c630dae8c
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: Yishai Hadas <yishaih@mellanox.com>
Acked-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eq.c