net/mlx5: Use effective interrupt affinity
authorThomas Gleixner <tglx@linutronix.de>
Thu, 10 Dec 2020 19:25:59 +0000 (20:25 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Tue, 15 Dec 2020 15:19:33 +0000 (16:19 +0100)
commitec7b37b6f08fac3eb9a733efa3d8eae5c3fb0383
tree2562ade10823e1c54ffadfa8c164178d4c4dfa11
parent6e745db4ddd072c7f67b37d850bc5aaedcf35400
net/mlx5: Use effective interrupt affinity

Using the interrupt affinity mask for checking locality is not really
working well on architectures which support effective affinity masks.

The affinity mask is either the system wide default or set by user space,
but the architecture can or even must reduce the mask to the effective set,
which means that checking the affinity mask itself does not really tell
about the actual target CPUs.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Saeed Mahameed <saeedm@nvidia.com>
Link: https://lore.kernel.org/r/20201210194044.876342330@linutronix.de
drivers/net/ethernet/mellanox/mlx5/core/en_main.c