summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorSaeed Mahameed2018-11-20 23:12:25 +0100
committerSaeed Mahameed2018-11-26 22:39:34 +0100
commit221c14f3d12489ced0f2ca8b31b2221c5dbbf145 (patch)
treea50ca16a51c2de4c0c93731170ea03f679c3dddc /include/linux/mlx5/driver.h
parentnet/mlx5: CmdIF, Use async events chain (diff)
downloadkernel-qcow2-linux-221c14f3d12489ced0f2ca8b31b2221c5dbbf145.tar.gz
kernel-qcow2-linux-221c14f3d12489ced0f2ca8b31b2221c5dbbf145.tar.xz
kernel-qcow2-linux-221c14f3d12489ced0f2ca8b31b2221c5dbbf145.zip
net/mlx5: Resource tables, Use async events chain
Remove the explicit call to QP/SRQ resources events handlers on several FW events and let resources logic register resources events notifiers via the new API. Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r--include/linux/mlx5/driver.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index a8d638134fc8..afba0864f45c 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -464,6 +464,8 @@ struct mlx5_core_health {
};
struct mlx5_qp_table {
+ struct mlx5_nb nb;
+
/* protect radix tree
*/
spinlock_t lock;
@@ -471,6 +473,8 @@ struct mlx5_qp_table {
};
struct mlx5_srq_table {
+ struct mlx5_nb catas_err_nb;
+ struct mlx5_nb rq_limit_nb;
/* protect radix tree
*/
spinlock_t lock;
@@ -978,8 +982,6 @@ void mlx5_unregister_debugfs(void);
void mlx5_fill_page_array(struct mlx5_frag_buf *buf, __be64 *pas);
void mlx5_fill_page_frag_array(struct mlx5_frag_buf *frag_buf, __be64 *pas);
-void mlx5_rsc_event(struct mlx5_core_dev *dev, u32 rsn, int event_type);
-void mlx5_srq_event(struct mlx5_core_dev *dev, u32 srqn, int event_type);
struct mlx5_core_srq *mlx5_core_get_srq(struct mlx5_core_dev *dev, u32 srqn);
int mlx5_vector2eqn(struct mlx5_core_dev *dev, int vector, int *eqn,
unsigned int *irqn);