projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38164b7
)
net/mlx5: Report a CQ error event only when a handler was set
author
Yishai Hadas
<yishaih@mellanox.com>
Sun, 30 Jun 2019 16:23:26 +0000
(19:23 +0300)
committer
Leon Romanovsky
<leonro@mellanox.com>
Wed, 3 Jul 2019 17:59:40 +0000
(20:59 +0300)
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
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx5/core/eq.c
b/drivers/net/ethernet/mellanox/mlx5/core/eq.c
index c634a78d5cddc0ccd29a8aa2759edb6b13117c19..678454535460143662be66e8c614df23be27ad0e 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx5/core/eq.c
+++ b/
drivers/net/ethernet/mellanox/mlx5/core/eq.c
@@
-503,7
+503,8
@@
static int cq_err_event_notifier(struct notifier_block *nb,
return NOTIFY_OK;
}
- cq->event(cq, type);
+ if (cq->event)
+ cq->event(cq, type);
mlx5_cq_put(cq);