diff options
author | Yuval Avnery <yuvalav@mellanox.com> | 2019-06-10 23:38:23 +0000 |
---|---|---|
committer | Saeed Mahameed <saeedm@mellanox.com> | 2019-06-13 10:59:49 -0700 |
commit | ca390799c2aa03632c294107fa7f647bcbdff428 (patch) | |
tree | af24f0797ca8addd929b798613e919c9f278c5b6 /include/linux/mlx5 | |
parent | 081cc2d7fa5828c8214c41b97352245ca5cc0f58 (diff) | |
download | linux-ca390799c2aa03632c294107fa7f647bcbdff428.tar.gz linux-ca390799c2aa03632c294107fa7f647bcbdff428.tar.bz2 linux-ca390799c2aa03632c294107fa7f647bcbdff428.zip |
net/mlx5: Change interrupt handler to call chain notifier
Multiple EQs may share the same IRQ in subsequent patches.
Instead of calling the IRQ handler directly, the EQ will register
to an atomic chain notfier.
The Linux built-in shared IRQ is not used because it forces the caller
to disable the IRQ and clear affinity before free_irq() can be called.
This patch is the first step in the separation of IRQ and EQ logic.
Signed-off-by: Yuval Avnery <yuvalav@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/eq.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/mlx5/eq.h b/include/linux/mlx5/eq.h index 00045cc4ea11..7909f1ff197c 100644 --- a/include/linux/mlx5/eq.h +++ b/include/linux/mlx5/eq.h @@ -26,8 +26,7 @@ struct mlx5_eq_param { u8 index; int nent; u64 mask; - void *context; - irq_handler_t handler; + struct notifier_block *nb; }; struct mlx5_eq * |