diff options
author | Yonatan Nachum <ynachum@amazon.com> | 2024-01-31 09:34:03 +0000 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2024-01-31 14:32:26 +0200 |
commit | 809c9c3bd6997edf2dcee4e1eb856425263be4f3 (patch) | |
tree | 9a44a7e832362bba26ec9f838f377db4c4d5967c /sound/pci/vx222 | |
parent | a400073ce3dd3dbdf843e6c9c0a0a7f6ca9f05d7 (diff) | |
download | linux-809c9c3bd6997edf2dcee4e1eb856425263be4f3.tar.gz linux-809c9c3bd6997edf2dcee4e1eb856425263be4f3.tar.bz2 linux-809c9c3bd6997edf2dcee4e1eb856425263be4f3.zip |
RDMA/efa: Limit EQs to available MSI-X vectors
When creating EQs we take into consideration the max number of EQs the
device reported it can support and the number of available CPUs. There
are situations where the number of EQs the device reported it can
support and the PCI configuration of MSI-X is different, take it in
account as well when creating EQs.
Also request at least 1 MSI-X vector for the management queue and allow
the kernel to return a number of vectors in a range between 1 and the
max supported MSI-X vectors according to the PCI config.
Reviewed-by: Michael Margolin <mrgolin@amazon.com>
Reviewed-by: Yonatan Goldhirsh <ygold@amazon.com>
Signed-off-by: Yonatan Nachum <ynachum@amazon.com>
Link: https://lore.kernel.org/r/20240131093403.18624-1-ynachum@amazon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'sound/pci/vx222')
0 files changed, 0 insertions, 0 deletions