net/enic: Allow at least 8 RQs to always be used
Subsystems (3)
PATCH 1/1 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 cc94d6c4d40c ("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.
--- drivers/net/ethernet/cisco/enic/enic.h | 1 + drivers/net/ethernet/cisco/enic/enic_main.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/cisco/enic/enic.h +1 -0
@@ -26,6 +26,7 @@#define ENIC_WQ_MAX 256#define ENIC_RQ_MAX 256 +#define ENIC_RQ_MIN_DEFAULT 8#define ENIC_WQ_NAPI_BUDGET 256
drivers/net/ethernet/cisco/enic/enic_main.c +2 -1
@@ -2296,7 +2296,8 @@ static int enic_adjust_resources(struct enic *enic)* used based on which resource is the most constrained */ wq_avail =min (enic->wq_avail,ENIC_WQ_MAX ); - rq_default =netif_get_num_default_rss_queues (); + rq_default =max (netif_get_num_default_rss_queues (), +ENIC_RQ_MIN_DEFAULT ); rq_avail =min3 (enic->rq_avail,ENIC_RQ_MAX , rq_default); max_queues =min (enic->cq_avail, enic->intr_avail -ENIC_MSIX_RESERVED_INTR );
---
base-commit: ae605349e1fa5a29cdeecf52f92aa76850900d90
change-id: 20250513-enic_min_8rq-421f23897dc2
Best regards,
Signature · 1 line
Nelson Escobar <[email protected]>
Quoted 47 lines · Nelson Escobar
Enic started using
netif_get_num_default_rss_queues()to set the number of RQs used in commitcc94d6c4d40c("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 <[email protected]>Reviewed-by Satish Kharat <[email protected]>Signed-off-by Nelson Escobar <[email protected]>--- drivers/net/ethernet/cisco/enic/enic.h | 1 + drivers/net/ethernet/cisco/enic/enic_main.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-)drivers/net/ethernet/cisco/enic/enic.h +1
-0@@ -26,6 +26,7 @@#define ENIC_WQ_MAX 256#define ENIC_RQ_MAX 256 +#define ENIC_RQ_MIN_DEFAULT 8#define ENIC_WQ_NAPI_BUDGET 256drivers/net/ethernet/cisco/enic/enic_main.c +2
-2@@ -2296,7 +2296,8 @@ static int enic_adjust_resources(struct enic *enic)* used based on which resource is the most constrained */ wq_avail =min (enic->wq_avail,ENIC_WQ_MAX ); - rq_default =netif_get_num_default_rss_queues (); + rq_default =max (netif_get_num_default_rss_queues (), +ENIC_RQ_MIN_DEFAULT ); rq_avail =min3 (enic->rq_avail,ENIC_RQ_MAX , rq_default); max_queues =min (enic->cq_avail, enic->intr_avail -ENIC_MSIX_RESERVED_INTR ); ---base-commit:
ae605349e1fa5a29cdeecf52f92aa76850900d90
change-id: 20250513-enic_min_8rq-421f23897dc2
Quoted 1 line
Best regards,
Quoted 2 lines
Signature · 1 line
Nelson Escobar <[email protected]>
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Wed, 21 May 2025 01:19:29 +0000 you wrote:
Enic started using
netif_get_num_default_rss_queues()to set the number of RQs used in commitcc94d6c4d40c("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.
[...]
Here is the summary with links:
- [net-next] net/enic: Allow at least 8 RQs to always be used
https://git.kernel.org/netdev/net-next/c/8fa18a3e8c0d
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html