diff options
author | Yuval Atias <yuvala@mellanox.com> | 2014-05-25 10:47:27 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-01 22:16:29 -0400 |
commit | 70a640d0dae3a9b1b222ce673eb5d92c263ddd61 (patch) | |
tree | 89dbe2c36c695f2e4c79429f4362bc07df2cc1de /include/linux/mlx4 | |
parent | c8865b64b05b2f4eeefd369373e9c8aeb069e7a1 (diff) |
net/mlx4_en: Use affinity hint
The “affinity hint” mechanism is used by the user space
daemon, irqbalancer, to indicate a preferred CPU mask for irqs.
Irqbalancer can use this hint to balance the irqs between the
cpus indicated by the mask.
We wish the HCA to preferentially map the IRQs it uses to numa cores
close to it. To accomplish this, we use cpumask_set_cpu_local_first(), that
sets the affinity hint according the following policy:
First it maps IRQs to “close” numa cores. If these are exhausted, the
remaining IRQs are mapped to “far” numa cores.
Signed-off-by: Yuval Atias <yuvala@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/device.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index ca38871a585c..b9b70e00e3c1 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
@@ -1161,7 +1161,7 @@ int mlx4_fmr_free(struct mlx4_dev *dev, struct mlx4_fmr *fmr); | |||
1161 | int mlx4_SYNC_TPT(struct mlx4_dev *dev); | 1161 | int mlx4_SYNC_TPT(struct mlx4_dev *dev); |
1162 | int mlx4_test_interrupts(struct mlx4_dev *dev); | 1162 | int mlx4_test_interrupts(struct mlx4_dev *dev); |
1163 | int mlx4_assign_eq(struct mlx4_dev *dev, char *name, struct cpu_rmap *rmap, | 1163 | int mlx4_assign_eq(struct mlx4_dev *dev, char *name, struct cpu_rmap *rmap, |
1164 | int *vector); | 1164 | int *vector, cpumask_t *cpu_hint_mask); |
1165 | void mlx4_release_eq(struct mlx4_dev *dev, int vec); | 1165 | void mlx4_release_eq(struct mlx4_dev *dev, int vec); |
1166 | 1166 | ||
1167 | int mlx4_get_phys_port_id(struct mlx4_dev *dev); | 1167 | int mlx4_get_phys_port_id(struct mlx4_dev *dev); |