]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda97692f8e95a2aefbaa4d59e42d0f8ef5a1c304
tree0d1401763591079cb2d2300a0313f5c205593677
parent4ad121899a3a11947d6f137d9814b6341739a5ba
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: 182125d ("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