]> www.infradead.org Git - users/dwmw2/linux.git/commit
enic: Allocate arrays in enic struct based on VIC config
authorNelson Escobar <neescoba@cisco.com>
Wed, 13 Nov 2024 23:56:36 +0000 (23:56 +0000)
committerJakub Kicinski <kuba@kernel.org>
Fri, 15 Nov 2024 23:38:41 +0000 (15:38 -0800)
commita64e5492ca908bb4f8c286b5761507792a0e03cd
tree54a6a8842ddfa6037f0b03a33e3e9a27ec2c111f
parent5aee3324724a7a449a1f2bdaee209cfa80fa80b1
enic: Allocate arrays in enic struct based on VIC config

Allocate wq, rq, cq, intr, and napi arrays based on the number of
resources configured in the VIC.

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>
Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/20241113-remove_vic_resource_limits-v4-4-a34cf8570c67@cisco.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cisco/enic/enic.h
drivers/net/ethernet/cisco/enic/enic_main.c