Skip to content

Commit a4523ed

Browse files
author
Maxim Levitsky
committed
net: mana: Allocate MSI-X vectors dynamically
JIRA: https://issues.redhat.com/browse/RHEL-109583 commit 7553911 Author: Shradha Gupta <shradhagupta@linux.microsoft.com> Date: Wed Jun 11 07:11:13 2025 -0700 net: mana: Allocate MSI-X vectors dynamically Currently, the MANA driver allocates MSI-X vectors statically based on MANA_MAX_NUM_QUEUES and num_online_cpus() values and in some cases ends up allocating more vectors than it needs. This is because, by this time we do not have a HW channel and do not know how many IRQs should be allocated. To avoid this, we allocate 1 MSI-X vector during the creation of HWC and after getting the value supported by hardware, dynamically add the remaining MSI-X vectors. Signed-off-by: Shradha Gupta <shradhagupta@linux.microsoft.com> Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com> Conflicts: oo backport of 'net: mana: Add handler for hardware servicing events' Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
1 parent 5fc111a commit a4523ed

File tree

2 files changed

+234
-83
lines changed

2 files changed

+234
-83
lines changed

0 commit comments

Comments
 (0)