net/mlx4_en: Don't use irq_affinity_notifier to track changes in IRQ affinity map
authorAmir Vadai <amirv@mellanox.com>
Sun, 29 Jun 2014 08:54:55 +0000 (11:54 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 3 Jul 2014 01:29:23 +0000 (18:29 -0700)
commit35f6f45368632f21bd27559c44dbb1cab51d8947
tree0d1401763591079cb2d2300a0313f5c205593677
parent1b037474d0c0b5ceb65bc809e3d8ac4497ee041b
net/mlx4_en: Don't use irq_affinity_notifier to track changes in IRQ affinity map

IRQ affinity notifier can only have a single notifier - cpu_rmap
notifier. Can't use it to track changes in IRQ affinity map.
Detect IRQ affinity changes by comparing CPU to current IRQ affinity map
during NAPI poll thread.

CC: Thomas Gleixner <tglx@linutronix.de>
CC: Ben Hutchings <ben@decadent.org.uk>
Fixes: 2eacc23 ("net/mlx4_core: Enforce irq affinity changes immediatly")
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_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
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
include/linux/mlx4/device.h