summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/huawei/hinic/hinic_rx.c
diff options
context:
space:
mode:
authorNitesh Narayan Lal <nitesh@redhat.com>2021-09-03 11:24:27 -0400
committerThomas Gleixner <tglx@linutronix.de>2021-12-10 20:47:39 +0100
commitce5a58a96ccc241c6e5cbb3360494ddfaf118afe (patch)
treeb5039084d4bc221719294a0ccbc521e8a4aeeb29 /drivers/net/ethernet/huawei/hinic/hinic_rx.c
parentbf886e1ef11a0155714ca93c975bb3f770e79d72 (diff)
scsi: lpfc: Use irq_set_affinity()
The driver uses irq_set_affinity_hint to set the affinity for the lpfc interrupts to a mask corresponding to the local NUMA node to avoid performance overhead on AMD architectures. However, irq_set_affinity_hint() setting the affinity is an undocumented side effect that this function also sets the affinity under the hood. To remove this side effect irq_set_affinity_hint() has been marked as deprecated and new interfaces have been introduced. Also, as per the commit dcaa21367938 ("scsi: lpfc: Change default IRQ model on AMD architectures"): "On AMD architecture, revert the irq allocation to the normal style (non-managed) and then use irq_set_affinity_hint() to set the cpu affinity and disable user-space rebalancing." we don't really need to set the affinity_hint as user-space rebalancing for the lpfc interrupts is not desired. Hence, replace the irq_set_affinity_hint() with irq_set_affinity() which only applies the affinity for the interrupts. Signed-off-by: Nitesh Narayan Lal <nitesh@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: James Smart <jsmart2021@gmail.com> Link: https://lore.kernel.org/r/20210903152430.244937-12-nitesh@redhat.com
Diffstat (limited to 'drivers/net/ethernet/huawei/hinic/hinic_rx.c')
0 files changed, 0 insertions, 0 deletions