Skip to content

Commit 9fd94b3

Browse files
author
CKI Backport Bot
committed
net/enic: Allow at least 8 RQs to always be used
JIRA: https://issues.redhat.com/browse/RHEL-108264 commit 8fa18a3 Author: Nelson Escobar <neescoba@cisco.com> Date: Wed May 21 01:19:29 2025 +0000 net/enic: Allow at least 8 RQs to always be used Enic started using netif_get_num_default_rss_queues() to set the number of RQs used in commit cc94d6c ("enic: Adjust used MSI-X wq/rq/cq/interrupt resources in a more robust way") This resulted in machines with less than 16 cpus using less than 8 RQs. Allow enic to use at least 8 RQs no matter how many cpus are in the machine to not impact existing enic workloads after a kernel upgrade. Reviewed-by: John Daley <johndale@cisco.com> Reviewed-by: Satish Kharat <satishkh@cisco.com> Signed-off-by: Nelson Escobar <neescoba@cisco.com> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Link: https://patch.msgid.link/20250521-enic_min_8rq-v1-1-691bd2353273@cisco.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com>
1 parent 9f87d53 commit 9fd94b3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

drivers/net/ethernet/cisco/enic/enic.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#define ENIC_WQ_MAX 256
2828
#define ENIC_RQ_MAX 256
29+
#define ENIC_RQ_MIN_DEFAULT 8
2930

3031
#define ENIC_WQ_NAPI_BUDGET 256
3132

drivers/net/ethernet/cisco/enic/enic_main.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2295,7 +2295,8 @@ static int enic_adjust_resources(struct enic *enic)
22952295
* used based on which resource is the most constrained
22962296
*/
22972297
wq_avail = min(enic->wq_avail, ENIC_WQ_MAX);
2298-
rq_default = netif_get_num_default_rss_queues();
2298+
rq_default = max(netif_get_num_default_rss_queues(),
2299+
ENIC_RQ_MIN_DEFAULT);
22992300
rq_avail = min3(enic->rq_avail, ENIC_RQ_MAX, rq_default);
23002301
max_queues = min(enic->cq_avail,
23012302
enic->intr_avail - ENIC_MSIX_RESERVED_INTR);

0 commit comments

Comments
 (0)