Currently IRQs are requested one by one. To balance spreading IRQs among cpus using such scheme requires remembering cpu mask for the cpus used for a given device. This complicates the IRQ allocation scheme in subsequent patch. Hence, prepare the code for bulk IRQs allocation. This enables spreading IRQs among cpus in subsequent patch.
Showing the changes to include (1 of 5 files). Show all
Unified · Split
| @@ -9,13 +9,13 @@ · 8 unmodified lines | |||
| 9 | #define MLX5_NUM_SPARE_EQE (0x80) | 9 | #define MLX5_NUM_SPARE_EQE (0x80) |
| 10 | 10 | ||
| 11 | struct mlx5_eq; | 11 | struct mlx5_eq; |
| 12 | struct mlx5_irq; | ||
| 12 | struct mlx5_core_dev; | 13 | struct mlx5_core_dev; |
| 13 | 14 | ||
| 14 | struct mlx5_eq_param { | 15 | struct mlx5_eq_param { |
| 15 | u8 irq_index; | ||
| 16 | int nent; | 16 | int nent; |
| 17 | u64 mask[4]; | 17 | u64 mask[4]; |
| 18 | cpumask_var_t affinity; | 18 | struct mlx5_irq *irq; |
| 19 | }; | 19 | }; |
| 20 | 20 | ||
| 21 | struct mlx5_eq * | 21 | struct mlx5_eq * |