summaryrefslogtreecommitdiff
path: root/include/linux/mlx5/driver.h
diff options
context:
space:
mode:
authorEli Cohen <elic@nvidia.com>2023-01-05 12:31:46 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2023-03-25 02:04:30 +0300
commitfb0a6a268dcd6fe144c99d60a1166e34c6991d5f (patch)
treec104caa834cdf78bb434f1f015511dfb8b0dc03f /include/linux/mlx5/driver.h
parentb637ac5db0d0fd00cbe88469999ba2985355ac95 (diff)
downloadlinux-fb0a6a268dcd6fe144c99d60a1166e34c6991d5f.tar.xz
net/mlx5: Provide external API for allocating vectors
Provide external API to be used by other drivers relying on mlx5_core, for allocating MSIX vectors. An example for such a driver would be mlx5_vdpa. Signed-off-by: Eli Cohen <elic@nvidia.com> Reviewed-by: Shay Drory <shayd@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Diffstat (limited to 'include/linux/mlx5/driver.h')
-rw-r--r--include/linux/mlx5/driver.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index f33389b42209..df0f82110249 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -1308,4 +1308,10 @@ enum {
MLX5_OCTWORD = 16,
};
+struct msi_map mlx5_msix_alloc(struct mlx5_core_dev *dev,
+ irqreturn_t (*handler)(int, void *),
+ const struct irq_affinity_desc *affdesc,
+ const char *name);
+void mlx5_msix_free(struct mlx5_core_dev *dev, struct msi_map map);
+
#endif /* MLX5_DRIVER_H */