summaryrefslogtreecommitdiffstats
path: root/include/linux/mlx4/device.h
diff options
context:
space:
mode:
authorYuval Atias <yuvala@mellanox.com>2014-05-14 12:15:10 +0300
committerDavid S. Miller <davem@davemloft.net>2014-05-14 15:40:32 -0400
commit2eacc23c422b4553030168f315cb49522fa1b1f6 (patch)
tree8733ae07b5752215afc6510a68f6ad7645297872 /include/linux/mlx4/device.h
parent3763e7ef17143f5e9ae044638e65d2b0c0305fcf (diff)
downloadblackbird-obmc-linux-2eacc23c422b4553030168f315cb49522fa1b1f6.tar.gz
blackbird-obmc-linux-2eacc23c422b4553030168f315cb49522fa1b1f6.zip
net/mlx4_core: Enforce irq affinity changes immediatly
During heavy traffic, napi is constatntly polling the complition queue and no interrupt is fired. Because of that, changes to irq affinity are ignored until traffic is stopped and resumed. By registering to the irq notifier mechanism, and forcing interrupt when affinity is changed, irq affinity changes will be immediatly enforced. 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/device.h')
-rw-r--r--include/linux/mlx4/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h
index ba87bd21295a..c0468e6f0442 100644
--- a/include/linux/mlx4/device.h
+++ b/include/linux/mlx4/device.h
@@ -577,6 +577,9 @@ struct mlx4_cq {
u32 cons_index;
+ u16 irq;
+ bool irq_affinity_change;
+
__be32 *set_ci_db;
__be32 *arm_db;
int arm_sn;
OpenPOWER on IntegriCloud