History

net/mlx5: Introduce API for bulk request and release of IRQs

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.

Shay Drory committed 4 years ago

Commit 79b60ca1 parent 424544d5 files · +135 −47Browse files

Showing the changes to include (1 of 5 files). Show all

Unified · Split

include/linux/mlx5/eq.h+2−2
@@ -9,13 +9,13 @@ · 8 unmodified lines
9#define MLX5_NUM_SPARE_EQE (0x80)9#define MLX5_NUM_SPARE_EQE (0x80)
10 10
11struct mlx5_eq;11struct mlx5_eq;
12struct mlx5_irq;
12struct mlx5_core_dev;13struct mlx5_core_dev;
13 14
14struct mlx5_eq_param {15struct 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
21struct mlx5_eq *21struct mlx5_eq *

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t