[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240119131652.8050-1-suresh2514@gmail.com>
Date: Fri, 19 Jan 2024 18:46:52 +0530
From: Suresh Kumar <suresh2514@...il.com>
To: jesse.brandeburg@...el.com,
anthony.l.nguyen@...el.com,
davem@...emloft.net,
edumazet@...gle.com,
kuba@...nel.org,
pabeni@...hat.com,
intel-wired-lan@...ts.osuosl.org,
netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: Suresh Kumar <suresh2514@...il.com>
Subject: [PATCH] i40e: print correct hw max rss count in kernel ring buffer
The value printed for "HW max RSS count" is wrong in kernel dmesg for i40e
NICs:
... i40e 0000:63:00.0: User requested queue count/HW max RSS count: 48/64
whereas ethtool reports the correct value from "vsi->num_queue_pairs"
Channel parameters for eno33:
Pre-set maximums:
RX: n/a
TX: n/a
Other: 1
Combined: 96
Current hardware settings:
RX: n/a
TX: n/a
Other: 1
Combined: 96 <-------
and is misleading.
This value is printed from 'pf->rss_size_max' which seems hardcoded.
Below commit also removed this 64 limit:
Commit e56afa599609d3afe8b0ce24b553ab95e9782502
Author: Amritha Nambiar <amritha.nambiar@...el.com>
Date: Wed Nov 8 16:38:43 2017 -0800
i40e: Remove limit of 64 max queues per channel
Signed-off-by: Suresh Kumar <suresh2514@...il.com>
---
drivers/net/ethernet/intel/i40e/i40e_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c
index d5519af34657..f5c1ec190f7e 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_main.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c
@@ -12524,7 +12524,7 @@ int i40e_reconfig_rss_queues(struct i40e_pf *pf, int queue_count)
i40e_pf_config_rss(pf);
}
dev_info(&pf->pdev->dev, "User requested queue count/HW max RSS count: %d/%d\n",
- vsi->req_queue_pairs, pf->rss_size_max);
+ vsi->req_queue_pairs, vsi->num_queue_pairs);
return pf->alloc_rss_size;
}
--
2.43.0
Powered by blists - more mailing lists