aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorSaeed Mahameed <saeedm@mellanox.com>2015-05-28 15:28:39 -0400
committerDavid S. Miller <davem@davemloft.net>2015-05-30 21:22:48 -0400
commitdb058a186f98b057c19c42f7b10d9a96fd3b5d59 (patch)
tree933870bac7c3cf325f114cd6000e16fd4d1f515e /include/linux
parent64ffaa2159b752e6c263dc57eaaaed7367d37493 (diff)
net/mlx5_core: Set irq affinity hints
Preparation for upcoming ethernet driver. - Move msix array from eq_table struct to priv since its not related to eq_table - Intorduce irq_info struct to hold all irq information - Move name from mlx5_eq to irq_info struct since it is irq property. - Set IRQ affinity hints Signed-off-by: Achiad Shochat <achiad@mellanox.com> Signed-off-by: Rana Shahout <ranas@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mlx5/driver.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index c4cf25ffcc16..9e8979502826 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -85,7 +85,7 @@ enum {
85}; 85};
86 86
87enum { 87enum {
88 MLX5_MAX_EQ_NAME = 32 88 MLX5_MAX_IRQ_NAME = 32
89}; 89};
90 90
91enum { 91enum {
@@ -349,7 +349,6 @@ struct mlx5_eq {
349 u8 eqn; 349 u8 eqn;
350 int nent; 350 int nent;
351 u64 mask; 351 u64 mask;
352 char name[MLX5_MAX_EQ_NAME];
353 struct list_head list; 352 struct list_head list;
354 int index; 353 int index;
355 struct mlx5_rsc_debug *dbg; 354 struct mlx5_rsc_debug *dbg;
@@ -412,7 +411,6 @@ struct mlx5_eq_table {
412 struct mlx5_eq pages_eq; 411 struct mlx5_eq pages_eq;
413 struct mlx5_eq async_eq; 412 struct mlx5_eq async_eq;
414 struct mlx5_eq cmd_eq; 413 struct mlx5_eq cmd_eq;
415 struct msix_entry *msix_arr;
416 int num_comp_vectors; 414 int num_comp_vectors;
417 /* protect EQs list 415 /* protect EQs list
418 */ 416 */
@@ -465,9 +463,16 @@ struct mlx5_mr_table {
465 struct radix_tree_root tree; 463 struct radix_tree_root tree;
466}; 464};
467 465
466struct mlx5_irq_info {
467 cpumask_var_t mask;
468 char name[MLX5_MAX_IRQ_NAME];
469};
470
468struct mlx5_priv { 471struct mlx5_priv {
469 char name[MLX5_MAX_NAME_LEN]; 472 char name[MLX5_MAX_NAME_LEN];
470 struct mlx5_eq_table eq_table; 473 struct mlx5_eq_table eq_table;
474 struct msix_entry *msix_arr;
475 struct mlx5_irq_info *irq_info;
471 struct mlx5_uuar_info uuari; 476 struct mlx5_uuar_info uuari;
472 MLX5_DECLARE_DOORBELL_LOCK(cq_uar_lock); 477 MLX5_DECLARE_DOORBELL_LOCK(cq_uar_lock);
473 478