]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mana: Allow irq_setup() to skip cpus for affinity
authorShradha Gupta <shradhagupta@linux.microsoft.com>
Wed, 11 Jun 2025 14:10:42 +0000 (07:10 -0700)
committerShradha Gupta <shradhagupta@linux.microsoft.com>
Tue, 17 Jun 2025 06:15:14 +0000 (06:15 +0000)
commit845c62c543d6bd5d8b80f53835997789e4bb8e29
treed51d7728ff86e4c8f30440a3e7f5fc4e06ed9e65
parent4607617af1b4747df0284ea8c1ddcecb21cae528
net: mana: Allow irq_setup() to skip cpus for affinity

In order to prepare the MANA driver to allocate the MSI-X IRQs
dynamically, we need to enhance irq_setup() to allow skipping
affinitizing IRQs to the first CPU sibling group.

This would be for cases when the number of IRQs is less than or equal
to the number of online CPUs. In such cases for dynamically added IRQs
the first CPU sibling group would already be affinitized with HWC IRQ.

Signed-off-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Yury Norov [NVIDIA] <yury.norov@gmail.com>
drivers/net/ethernet/microsoft/mana/gdma_main.c