net/mlx4_core: Enforce irq affinity changes immediatly
authorYuval Atias <yuvala@mellanox.com>
Wed, 14 May 2014 09:15:10 +0000 (12:15 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 May 2014 19:40:32 +0000 (15:40 -0400)
commit2eacc23c422b4553030168f315cb49522fa1b1f6
tree8733ae07b5752215afc6510a68f6ad7645297872
parent3763e7ef17143f5e9ae044638e65d2b0c0305fcf
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>
drivers/net/ethernet/mellanox/mlx4/cq.c
drivers/net/ethernet/mellanox/mlx4/en_rx.c
drivers/net/ethernet/mellanox/mlx4/en_tx.c
drivers/net/ethernet/mellanox/mlx4/eq.c
include/linux/mlx4/device.h