]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
enic: Adjust used MSI-X wq/rq/cq/interrupt resources in a more robust way
authorNelson Escobar <neescoba@cisco.com>
Wed, 13 Nov 2024 23:56:37 +0000 (23:56 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Nov 2024 23:38:41 +0000 (15:38 -0800)
commitcc94d6c4d40c070ca95db8e43e92c4ee1fff5009
tree14400859f8b7d22d4bed0654e1cc03725afac66e
parenta64e5492ca908bb4f8c286b5761507792a0e03cd
enic: Adjust used MSI-X wq/rq/cq/interrupt resources in a more robust way

Instead of failing to use MSI-X if resources aren't configured exactly
right, use the resources we do have.  Since we could start using large
numbers of rq resources, we do limit the rq count to what
netif_get_num_default_rss_queues() recommends.

Co-developed-by: John Daley <johndale@cisco.com>
Signed-off-by: John Daley <johndale@cisco.com>
Co-developed-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Satish Kharat <satishkh@cisco.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20241113-remove_vic_resource_limits-v4-5-a34cf8570c67@cisco.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cisco/enic/enic_main.c