* RE: [PATCH iwl v2] i40e: print correct hw max rss count in kernel ring buffer
@ 2024-01-30 8:33 ` Loktionov, Aleksandr
0 siblings, 0 replies; 15+ messages in thread
From: Loktionov, Aleksandr @ 2024-01-30 8:33 UTC (permalink / raw)
To: Kitszel, Przemyslaw
Cc: Brandeburg, Jesse, Nguyen, Anthony L, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org, Suresh Kumar
> -----Original Message-----
> From: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
> Sent: Tuesday, January 30, 2024 9:26 AM
> To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> Subject: Fwd: [PATCH iwl v2] i40e: print correct hw max rss count
> in kernel ring buffer
>
> FWD to Alex
>
>
> -------- Forwarded Message --------
> Subject: [PATCH iwl v2] i40e: print correct hw max rss count in
> kernel ring buffer
> Date: Sat, 20 Jan 2024 12:58:06 +0530
> From: Suresh Kumar <suresh2514@gmail.com>
> To: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com,
> davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
> pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
> netdev@vger.kernel.org, linux-kernel@vger.kernel.org
> CC: Suresh Kumar <suresh2514@gmail.com>
>
> pf->rss_size_max is hardcoded and always prints max rss count as
> 64.
>
> Eg:
> kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS
> count: 104/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: 104
> Current hardware settings:
> RX: n/a
> TX: n/a
> Other: 1
> Combined: 104 <-------
>
> and is misleading.
>
> Change it to vsi->num_queue_pairs
Please reject this patch, it breaks driver logging.
The massage clearly states that it dumps max rss queues number that f/w supports.
Thank you
> Signed-off-by: Suresh Kumar <suresh2514@gmail.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
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl v2] i40e: print correct hw max rss count in kernel ring buffer
2024-01-30 8:33 ` Loktionov, Aleksandr
(?)
@ 2024-02-08 13:13 ` suresh ks
2024-02-08 13:29 ` Loktionov, Aleksandr
-1 siblings, 1 reply; 15+ messages in thread
From: suresh ks @ 2024-02-08 13:13 UTC (permalink / raw)
To: Loktionov, Aleksandr
Cc: Kitszel, Przemyslaw, Brandeburg, Jesse,
linux-kernel@vger.kernel.org, edumazet@google.com,
netdev@vger.kernel.org, Nguyen, Anthony L,
intel-wired-lan@lists.osuosl.org, kuba@kernel.org,
pabeni@redhat.com, davem@davemloft.net
[-- Attachment #1: Type: text/plain, Size: 3518 bytes --]
Hi,
Thanks for checking. Do I need to do anything to reject this patch? If
yes, please let me know.
This is first sucht experience for me.
Would like to get some understanding on below kernel logging for which I
suggested the patch.
The ethtool reports maximum supported queue as 104 and when I set it, it
takes that value also. But kernel logs:
"kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS count:
104/64".
So does it meas the firmware supports only 64, but we can set 104 or
something like that ?
Is it any virtual queue set by driver as per number of CPUs ?. What I
observe is, system has 104 CPUs.
I have another such machine where maximum supported queue mentioned by
ethtool is as per number of CPUs. But here again, the 'max RSS' is reported
less by kernel.
thanks....
*Suresh KS*
suresh2514@gmail.com
91-7709100053
On Tue, Jan 30, 2024 at 2:03 PM Loktionov, Aleksandr <
aleksandr.loktionov@intel.com> wrote:
> > -----Original Message-----
> > From: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
> > Sent: Tuesday, January 30, 2024 9:26 AM
> > To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> > Subject: Fwd: [PATCH iwl v2] i40e: print correct hw max rss count
> > in kernel ring buffer
> >
> > FWD to Alex
> >
> >
> > -------- Forwarded Message --------
> > Subject: [PATCH iwl v2] i40e: print correct hw max rss count in
> > kernel ring buffer
> > Date: Sat, 20 Jan 2024 12:58:06 +0530
> > From: Suresh Kumar <suresh2514@gmail.com>
> > To: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com,
> > davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
> > pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
> > netdev@vger.kernel.org, linux-kernel@vger.kernel.org
> > CC: Suresh Kumar <suresh2514@gmail.com>
> >
> > pf->rss_size_max is hardcoded and always prints max rss count as
> > 64.
> >
> > Eg:
> > kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS
> > count: 104/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: 104
> > Current hardware settings:
> > RX: n/a
> > TX: n/a
> > Other: 1
> > Combined: 104 <-------
> >
> > and is misleading.
> >
> > Change it to vsi->num_queue_pairs
>
> Please reject this patch, it breaks driver logging.
> The massage clearly states that it dumps max rss queues number that f/w
> supports.
>
> Thank you
>
> > Signed-off-by: Suresh Kumar <suresh2514@gmail.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
> >
>
>
[-- Attachment #2: Type: text/html, Size: 5758 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl v2] i40e: print correct hw max rss count in kernel ring buffer
2024-02-08 13:13 ` [Intel-wired-lan] " suresh ks
@ 2024-02-08 13:29 ` Loktionov, Aleksandr
2024-02-08 16:16 ` suresh ks
0 siblings, 1 reply; 15+ messages in thread
From: Loktionov, Aleksandr @ 2024-02-08 13:29 UTC (permalink / raw)
To: suresh ks
Cc: Kitszel, Przemyslaw, Brandeburg, Jesse,
linux-kernel@vger.kernel.org, edumazet@google.com,
netdev@vger.kernel.org, Nguyen, Anthony L,
intel-wired-lan@lists.osuosl.org, kuba@kernel.org,
pabeni@redhat.com, davem@davemloft.net
[-- Attachment #1: Type: text/plain, Size: 4733 bytes --]
Good day Suresh
The message:
"kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS count: 104/64".
Means that h/w supports only 64ques, but user requested 104.
If your OS displays maximum possible ques more than h/w supports then there is a bug in display routines.
With the best regards
Alex
From: suresh ks <suresh2514@gmail.com>
Sent: Thursday, February 8, 2024 2:14 PM
To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
Cc: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>; Brandeburg, Jesse <jesse.brandeburg@intel.com>; Nguyen, Anthony L <anthony.l.nguyen@intel.com>; davem@davemloft.net; edumazet@google.com; kuba@kernel.org; pabeni@redhat.com; intel-wired-lan@lists.osuosl.org; netdev@vger.kernel.org; linux-kernel@vger.kernel.org
Subject: Re: [PATCH iwl v2] i40e: print correct hw max rss count in kernel ring buffer
Hi,
Thanks for checking. Do I need to do anything to reject this patch? If yes, please let me know.
This is first sucht experience for me.
Would like to get some understanding on below kernel logging for which I suggested the patch.
The ethtool reports maximum supported queue as 104 and when I set it, it takes that value also. But kernel logs:
"kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS count: 104/64".
So does it meas the firmware supports only 64, but we can set 104 or something like that ?
Is it any virtual queue set by driver as per number of CPUs ?. What I observe is, system has 104 CPUs.
I have another such machine where maximum supported queue mentioned by ethtool is as per number of CPUs. But here again, the 'max RSS' is reported less by kernel.
thanks....
Suresh KS
suresh2514@gmail.com<mailto:suresh2514@gmail.com>
91-7709100053
On Tue, Jan 30, 2024 at 2:03 PM Loktionov, Aleksandr <aleksandr.loktionov@intel.com<mailto:aleksandr.loktionov@intel.com>> wrote:
> -----Original Message-----
> From: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com<mailto:przemyslaw.kitszel@intel.com>>
> Sent: Tuesday, January 30, 2024 9:26 AM
> To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com<mailto:aleksandr.loktionov@intel.com>>
> Subject: Fwd: [PATCH iwl v2] i40e: print correct hw max rss count
> in kernel ring buffer
>
> FWD to Alex
>
>
> -------- Forwarded Message --------
> Subject: [PATCH iwl v2] i40e: print correct hw max rss count in
> kernel ring buffer
> Date: Sat, 20 Jan 2024 12:58:06 +0530
> From: Suresh Kumar <suresh2514@gmail.com<mailto:suresh2514@gmail.com>>
> To: jesse.brandeburg@intel.com<mailto:jesse.brandeburg@intel.com>, anthony.l.nguyen@intel.com<mailto:anthony.l.nguyen@intel.com>,
> davem@davemloft.net<mailto:davem@davemloft.net>, edumazet@google.com<mailto:edumazet@google.com>, kuba@kernel.org<mailto:kuba@kernel.org>,
> pabeni@redhat.com<mailto:pabeni@redhat.com>, intel-wired-lan@lists.osuosl.org<mailto:intel-wired-lan@lists.osuosl.org>,
> netdev@vger.kernel.org<mailto:netdev@vger.kernel.org>, linux-kernel@vger.kernel.org<mailto:linux-kernel@vger.kernel.org>
> CC: Suresh Kumar <suresh2514@gmail.com<mailto:suresh2514@gmail.com>>
>
> pf->rss_size_max is hardcoded and always prints max rss count as
> 64.
>
> Eg:
> kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS
> count: 104/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: 104
> Current hardware settings:
> RX: n/a
> TX: n/a
> Other: 1
> Combined: 104 <-------
>
> and is misleading.
>
> Change it to vsi->num_queue_pairs
Please reject this patch, it breaks driver logging.
The massage clearly states that it dumps max rss queues number that f/w supports.
Thank you
> Signed-off-by: Suresh Kumar <suresh2514@gmail.com<mailto:suresh2514@gmail.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
>
[-- Attachment #2: Type: text/html, Size: 10956 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl v2] i40e: print correct hw max rss count in kernel ring buffer
2024-02-08 13:29 ` Loktionov, Aleksandr
@ 2024-02-08 16:16 ` suresh ks
0 siblings, 0 replies; 15+ messages in thread
From: suresh ks @ 2024-02-08 16:16 UTC (permalink / raw)
To: Loktionov, Aleksandr
Cc: Kitszel, Przemyslaw, Brandeburg, Jesse,
linux-kernel@vger.kernel.org, edumazet@google.com,
netdev@vger.kernel.org, Nguyen, Anthony L,
intel-wired-lan@lists.osuosl.org, kuba@kernel.org,
pabeni@redhat.com, davem@davemloft.net
[-- Attachment #1: Type: text/plain, Size: 5375 bytes --]
Hi Alex,
Thanks. Yes, I do feel it's a bug in i40e driver printing this info. See
the ethtool output from this system:
+++
Channel parameters for eno33:
Pre-set maximums:
RX: n/a
TX: n/a
Other: 1
Combined: 104 <-
Current hardware settings:
RX: n/a
TX: n/a
Other: 1
Combined: 104 <-------
+++
So I understand the maximum supported queue size is 104 But while setting
this value via ethtool, we got below message from kernel logs:
"kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS count:
104/64".
thanks....
*Suresh KS*
suresh2514@gmail.com
91-7709100053
On Thu, Feb 8, 2024 at 6:59 PM Loktionov, Aleksandr <
aleksandr.loktionov@intel.com> wrote:
> Good day Suresh
>
>
>
> The message:
>
> "kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS count:
> 104/64".
>
>
>
> Means that h/w supports only 64ques, but user requested 104.
>
>
>
> If your OS displays maximum possible ques more than h/w supports then
> there is a bug in display routines.
>
>
>
> With the best regards
>
> Alex
>
>
>
> *From:* suresh ks <suresh2514@gmail.com>
> *Sent:* Thursday, February 8, 2024 2:14 PM
> *To:* Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> *Cc:* Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>; Brandeburg,
> Jesse <jesse.brandeburg@intel.com>; Nguyen, Anthony L <
> anthony.l.nguyen@intel.com>; davem@davemloft.net; edumazet@google.com;
> kuba@kernel.org; pabeni@redhat.com; intel-wired-lan@lists.osuosl.org;
> netdev@vger.kernel.org; linux-kernel@vger.kernel.org
> *Subject:* Re: [PATCH iwl v2] i40e: print correct hw max rss count in
> kernel ring buffer
>
>
>
> Hi,
>
>
>
> Thanks for checking. Do I need to do anything to reject this patch? If
> yes, please let me know.
>
> This is first sucht experience for me.
>
>
>
>
>
> Would like to get some understanding on below kernel logging for which I
> suggested the patch.
>
>
>
> The ethtool reports maximum supported queue as 104 and when I set it, it
> takes that value also. But kernel logs:
>
>
>
> "kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS count:
> 104/64".
>
>
>
> So does it meas the firmware supports only 64, but we can set 104 or
> something like that ?
>
>
>
> Is it any virtual queue set by driver as per number of CPUs ?. What I
> observe is, system has 104 CPUs.
>
> I have another such machine where maximum supported queue mentioned by
> ethtool is as per number of CPUs. But here again, the 'max RSS' is reported
> less by kernel.
>
>
>
>
>
>
>
> thanks....
>
> *Suresh KS*
>
> suresh2514@gmail.com
>
> 91-7709100053
>
>
>
>
>
> On Tue, Jan 30, 2024 at 2:03 PM Loktionov, Aleksandr <
> aleksandr.loktionov@intel.com> wrote:
>
> > -----Original Message-----
> > From: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
> > Sent: Tuesday, January 30, 2024 9:26 AM
> > To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> > Subject: Fwd: [PATCH iwl v2] i40e: print correct hw max rss count
> > in kernel ring buffer
> >
> > FWD to Alex
> >
> >
> > -------- Forwarded Message --------
> > Subject: [PATCH iwl v2] i40e: print correct hw max rss count in
> > kernel ring buffer
> > Date: Sat, 20 Jan 2024 12:58:06 +0530
> > From: Suresh Kumar <suresh2514@gmail.com>
> > To: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com,
> > davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
> > pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
> > netdev@vger.kernel.org, linux-kernel@vger.kernel.org
> > CC: Suresh Kumar <suresh2514@gmail.com>
> >
> > pf->rss_size_max is hardcoded and always prints max rss count as
> > 64.
> >
> > Eg:
> > kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS
> > count: 104/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: 104
> > Current hardware settings:
> > RX: n/a
> > TX: n/a
> > Other: 1
> > Combined: 104 <-------
> >
> > and is misleading.
> >
> > Change it to vsi->num_queue_pairs
>
> Please reject this patch, it breaks driver logging.
> The massage clearly states that it dumps max rss queues number that f/w
> supports.
>
> Thank you
>
> > Signed-off-by: Suresh Kumar <suresh2514@gmail.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
> >
>
>
[-- Attachment #2: Type: text/html, Size: 11418 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl v2] i40e: print correct hw max rss count in kernel ring buffer
2024-01-30 8:33 ` Loktionov, Aleksandr
@ 2024-02-15 16:22 ` Maciej Fijalkowski
-1 siblings, 0 replies; 15+ messages in thread
From: Maciej Fijalkowski @ 2024-02-15 16:22 UTC (permalink / raw)
To: Loktionov, Aleksandr
Cc: Kitszel, Przemyslaw, Brandeburg, Jesse,
linux-kernel@vger.kernel.org, edumazet@google.com,
netdev@vger.kernel.org, Nguyen, Anthony L,
intel-wired-lan@lists.osuosl.org, kuba@kernel.org, Suresh Kumar,
pabeni@redhat.com, davem@davemloft.net
On Tue, Jan 30, 2024 at 08:33:43AM +0000, Loktionov, Aleksandr wrote:
> > -----Original Message-----
> > From: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
> > Sent: Tuesday, January 30, 2024 9:26 AM
> > To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> > Subject: Fwd: [PATCH iwl v2] i40e: print correct hw max rss count
Subject should be iwl-net and you should have Fixes: tag.
I also would like you to go through
https://docs.kernel.org/process/submitting-patches.html
or any other document that would prepare you for your first submission.
> > in kernel ring buffer
> >
> > FWD to Alex
> >
> >
> > -------- Forwarded Message --------
> > Subject: [PATCH iwl v2] i40e: print correct hw max rss count in
> > kernel ring buffer
> > Date: Sat, 20 Jan 2024 12:58:06 +0530
> > From: Suresh Kumar <suresh2514@gmail.com>
> > To: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com,
> > davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
> > pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
> > netdev@vger.kernel.org, linux-kernel@vger.kernel.org
> > CC: Suresh Kumar <suresh2514@gmail.com>
> >
> > pf->rss_size_max is hardcoded and always prints max rss count as
> > 64.
> >
> > Eg:
> > kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS
> > count: 104/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: 104
> > Current hardware settings:
> > RX: n/a
> > TX: n/a
> > Other: 1
> > Combined: 104 <-------
> >
> > and is misleading.
> >
> > Change it to vsi->num_queue_pairs
>
> Please reject this patch, it breaks driver logging.
> The massage clearly states that it dumps max rss queues number that f/w supports.
...which would imply that you would be able to work with anything more
than 64 queues. From a quick glance rss_size_max comes from early i40e
days and if that would be the limit indeed then driver allowing 104 queues
would be a disaster, no?
>
> Thank you
>
> > Signed-off-by: Suresh Kumar <suresh2514@gmail.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);
IMHO this should be vsi->alloc_queue_pairs instead.
> > return pf->alloc_rss_size;
> > }
> > -- 2.43.0
> >
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH iwl v2] i40e: print correct hw max rss count in kernel ring buffer
@ 2024-02-15 16:22 ` Maciej Fijalkowski
0 siblings, 0 replies; 15+ messages in thread
From: Maciej Fijalkowski @ 2024-02-15 16:22 UTC (permalink / raw)
To: Loktionov, Aleksandr
Cc: Kitszel, Przemyslaw, Brandeburg, Jesse, Nguyen, Anthony L,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
Suresh Kumar
On Tue, Jan 30, 2024 at 08:33:43AM +0000, Loktionov, Aleksandr wrote:
> > -----Original Message-----
> > From: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
> > Sent: Tuesday, January 30, 2024 9:26 AM
> > To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> > Subject: Fwd: [PATCH iwl v2] i40e: print correct hw max rss count
Subject should be iwl-net and you should have Fixes: tag.
I also would like you to go through
https://docs.kernel.org/process/submitting-patches.html
or any other document that would prepare you for your first submission.
> > in kernel ring buffer
> >
> > FWD to Alex
> >
> >
> > -------- Forwarded Message --------
> > Subject: [PATCH iwl v2] i40e: print correct hw max rss count in
> > kernel ring buffer
> > Date: Sat, 20 Jan 2024 12:58:06 +0530
> > From: Suresh Kumar <suresh2514@gmail.com>
> > To: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com,
> > davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
> > pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
> > netdev@vger.kernel.org, linux-kernel@vger.kernel.org
> > CC: Suresh Kumar <suresh2514@gmail.com>
> >
> > pf->rss_size_max is hardcoded and always prints max rss count as
> > 64.
> >
> > Eg:
> > kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS
> > count: 104/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: 104
> > Current hardware settings:
> > RX: n/a
> > TX: n/a
> > Other: 1
> > Combined: 104 <-------
> >
> > and is misleading.
> >
> > Change it to vsi->num_queue_pairs
>
> Please reject this patch, it breaks driver logging.
> The massage clearly states that it dumps max rss queues number that f/w supports.
...which would imply that you would be able to work with anything more
than 64 queues. From a quick glance rss_size_max comes from early i40e
days and if that would be the limit indeed then driver allowing 104 queues
would be a disaster, no?
>
> Thank you
>
> > Signed-off-by: Suresh Kumar <suresh2514@gmail.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);
IMHO this should be vsi->alloc_queue_pairs instead.
> > return pf->alloc_rss_size;
> > }
> > -- 2.43.0
> >
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl v2] i40e: print correct hw max rss count in kernel ring buffer
2024-02-15 16:22 ` Maciej Fijalkowski
(?)
@ 2024-03-07 14:39 ` suresh ks
2024-03-07 15:24 ` Maciej Fijalkowski
-1 siblings, 1 reply; 15+ messages in thread
From: suresh ks @ 2024-03-07 14:39 UTC (permalink / raw)
To: Maciej Fijalkowski
Cc: Kitszel, Przemyslaw, linux-kernel@vger.kernel.org,
Loktionov, Aleksandr, edumazet@google.com, netdev@vger.kernel.org,
Nguyen, Anthony L, intel-wired-lan@lists.osuosl.org,
kuba@kernel.org, pabeni@redhat.com, davem@davemloft.net
[-- Attachment #1: Type: text/plain, Size: 3960 bytes --]
Hi Maciej,
Thanks for the links and taking time to review.
I was following the ethtool codes and suggested vsi->num_queue_pairs.
Maybe vsi->alloc_queue_pairs is the right option as you suggested. I have
not read much of i40e codes. Just that one of our customers reported this
issue and I was reviewing the codes.
I also felt rss_size_max comes from the early i40e days. So I was not sure
what I would add in the 'Fixes:' tag.
Sorry for getting late here. Was on a vacation.
thanks....
*Suresh KS*
suresh2514@gmail.com
91-7709100053
On Thu, Feb 15, 2024 at 9:52 PM Maciej Fijalkowski <
maciej.fijalkowski@intel.com> wrote:
> On Tue, Jan 30, 2024 at 08:33:43AM +0000, Loktionov, Aleksandr wrote:
> > > -----Original Message-----
> > > From: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
> > > Sent: Tuesday, January 30, 2024 9:26 AM
> > > To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> > > Subject: Fwd: [PATCH iwl v2] i40e: print correct hw max rss count
>
> Subject should be iwl-net and you should have Fixes: tag.
> I also would like you to go through
> https://docs.kernel.org/process/submitting-patches.html
>
> or any other document that would prepare you for your first submission.
>
> > > in kernel ring buffer
> > >
> > > FWD to Alex
> > >
> > >
> > > -------- Forwarded Message --------
> > > Subject: [PATCH iwl v2] i40e: print correct hw max rss count in
> > > kernel ring buffer
> > > Date: Sat, 20 Jan 2024 12:58:06 +0530
> > > From: Suresh Kumar <suresh2514@gmail.com>
> > > To: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com,
> > > davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
> > > pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
> > > netdev@vger.kernel.org, linux-kernel@vger.kernel.org
> > > CC: Suresh Kumar <suresh2514@gmail.com>
> > >
> > > pf->rss_size_max is hardcoded and always prints max rss count as
> > > 64.
> > >
> > > Eg:
> > > kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS
> > > count: 104/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: 104
> > > Current hardware settings:
> > > RX: n/a
> > > TX: n/a
> > > Other: 1
> > > Combined: 104 <-------
> > >
> > > and is misleading.
> > >
> > > Change it to vsi->num_queue_pairs
> >
> > Please reject this patch, it breaks driver logging.
> > The massage clearly states that it dumps max rss queues number that f/w
> supports.
>
> ...which would imply that you would be able to work with anything more
> than 64 queues. From a quick glance rss_size_max comes from early i40e
> days and if that would be the limit indeed then driver allowing 104 queues
> would be a disaster, no?
>
> >
> > Thank you
> >
> > > Signed-off-by: Suresh Kumar <suresh2514@gmail.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);
>
> IMHO this should be vsi->alloc_queue_pairs instead.
>
> > > return pf->alloc_rss_size;
> > > }
> > > -- 2.43.0
> > >
> >
>
[-- Attachment #2: Type: text/html, Size: 6488 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [Intel-wired-lan] [PATCH iwl v2] i40e: print correct hw max rss count in kernel ring buffer
2024-03-07 14:39 ` [Intel-wired-lan] " suresh ks
@ 2024-03-07 15:24 ` Maciej Fijalkowski
0 siblings, 0 replies; 15+ messages in thread
From: Maciej Fijalkowski @ 2024-03-07 15:24 UTC (permalink / raw)
To: suresh ks
Cc: Kitszel, Przemyslaw, linux-kernel@vger.kernel.org,
Loktionov, Aleksandr, edumazet@google.com, netdev@vger.kernel.org,
Nguyen, Anthony L, intel-wired-lan@lists.osuosl.org,
kuba@kernel.org, pabeni@redhat.com, davem@davemloft.net
On Thu, Mar 07, 2024 at 08:09:47PM +0530, suresh ks wrote:
> Hi Maciej,
>
> Thanks for the links and taking time to review.
No problem, but please don't top post on linux mailing lists nor don't
respond in HTML. These are 101 rules to participate in upstream
discussions.
>
> I was following the ethtool codes and suggested vsi->num_queue_pairs.
> Maybe vsi->alloc_queue_pairs is the right option as you suggested. I have
> not read much of i40e codes. Just that one of our customers reported this
> issue and I was reviewing the codes.
>
> I also felt rss_size_max comes from the early i40e days. So I was not sure
> what I would add in the 'Fixes:' tag.
submitting-patches.html has it explained ;)
>
> Sorry for getting late here. Was on a vacation.
>
>
> thanks....
> *Suresh KS*
> suresh2514@gmail.com
> 91-7709100053
>
>
>
> On Thu, Feb 15, 2024 at 9:52 PM Maciej Fijalkowski <
> maciej.fijalkowski@intel.com> wrote:
>
> > On Tue, Jan 30, 2024 at 08:33:43AM +0000, Loktionov, Aleksandr wrote:
> > > > -----Original Message-----
> > > > From: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
> > > > Sent: Tuesday, January 30, 2024 9:26 AM
> > > > To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> > > > Subject: Fwd: [PATCH iwl v2] i40e: print correct hw max rss count
> >
> > Subject should be iwl-net and you should have Fixes: tag.
> > I also would like you to go through
> > https://docs.kernel.org/process/submitting-patches.html
> >
> > or any other document that would prepare you for your first submission.
> >
> > > > in kernel ring buffer
> > > >
> > > > FWD to Alex
> > > >
> > > >
> > > > -------- Forwarded Message --------
> > > > Subject: [PATCH iwl v2] i40e: print correct hw max rss count in
> > > > kernel ring buffer
> > > > Date: Sat, 20 Jan 2024 12:58:06 +0530
> > > > From: Suresh Kumar <suresh2514@gmail.com>
> > > > To: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com,
> > > > davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
> > > > pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
> > > > netdev@vger.kernel.org, linux-kernel@vger.kernel.org
> > > > CC: Suresh Kumar <suresh2514@gmail.com>
> > > >
> > > > pf->rss_size_max is hardcoded and always prints max rss count as
> > > > 64.
> > > >
> > > > Eg:
> > > > kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS
> > > > count: 104/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: 104
> > > > Current hardware settings:
> > > > RX: n/a
> > > > TX: n/a
> > > > Other: 1
> > > > Combined: 104 <-------
> > > >
> > > > and is misleading.
> > > >
> > > > Change it to vsi->num_queue_pairs
> > >
> > > Please reject this patch, it breaks driver logging.
> > > The massage clearly states that it dumps max rss queues number that f/w
> > supports.
> >
> > ...which would imply that you would be able to work with anything more
> > than 64 queues. From a quick glance rss_size_max comes from early i40e
> > days and if that would be the limit indeed then driver allowing 104 queues
> > would be a disaster, no?
> >
> > >
> > > Thank you
> > >
> > > > Signed-off-by: Suresh Kumar <suresh2514@gmail.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);
> >
> > IMHO this should be vsi->alloc_queue_pairs instead.
> >
> > > > return pf->alloc_rss_size;
> > > > }
> > > > -- 2.43.0
> > > >
> > >
> >
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH iwl v2] i40e: print correct hw max rss count in kernel ring buffer
@ 2024-03-07 15:24 ` Maciej Fijalkowski
0 siblings, 0 replies; 15+ messages in thread
From: Maciej Fijalkowski @ 2024-03-07 15:24 UTC (permalink / raw)
To: suresh ks
Cc: Loktionov, Aleksandr, Kitszel, Przemyslaw, Brandeburg, Jesse,
Nguyen, Anthony L, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, pabeni@redhat.com,
intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
On Thu, Mar 07, 2024 at 08:09:47PM +0530, suresh ks wrote:
> Hi Maciej,
>
> Thanks for the links and taking time to review.
No problem, but please don't top post on linux mailing lists nor don't
respond in HTML. These are 101 rules to participate in upstream
discussions.
>
> I was following the ethtool codes and suggested vsi->num_queue_pairs.
> Maybe vsi->alloc_queue_pairs is the right option as you suggested. I have
> not read much of i40e codes. Just that one of our customers reported this
> issue and I was reviewing the codes.
>
> I also felt rss_size_max comes from the early i40e days. So I was not sure
> what I would add in the 'Fixes:' tag.
submitting-patches.html has it explained ;)
>
> Sorry for getting late here. Was on a vacation.
>
>
> thanks....
> *Suresh KS*
> suresh2514@gmail.com
> 91-7709100053
>
>
>
> On Thu, Feb 15, 2024 at 9:52 PM Maciej Fijalkowski <
> maciej.fijalkowski@intel.com> wrote:
>
> > On Tue, Jan 30, 2024 at 08:33:43AM +0000, Loktionov, Aleksandr wrote:
> > > > -----Original Message-----
> > > > From: Kitszel, Przemyslaw <przemyslaw.kitszel@intel.com>
> > > > Sent: Tuesday, January 30, 2024 9:26 AM
> > > > To: Loktionov, Aleksandr <aleksandr.loktionov@intel.com>
> > > > Subject: Fwd: [PATCH iwl v2] i40e: print correct hw max rss count
> >
> > Subject should be iwl-net and you should have Fixes: tag.
> > I also would like you to go through
> > https://docs.kernel.org/process/submitting-patches.html
> >
> > or any other document that would prepare you for your first submission.
> >
> > > > in kernel ring buffer
> > > >
> > > > FWD to Alex
> > > >
> > > >
> > > > -------- Forwarded Message --------
> > > > Subject: [PATCH iwl v2] i40e: print correct hw max rss count in
> > > > kernel ring buffer
> > > > Date: Sat, 20 Jan 2024 12:58:06 +0530
> > > > From: Suresh Kumar <suresh2514@gmail.com>
> > > > To: jesse.brandeburg@intel.com, anthony.l.nguyen@intel.com,
> > > > davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
> > > > pabeni@redhat.com, intel-wired-lan@lists.osuosl.org,
> > > > netdev@vger.kernel.org, linux-kernel@vger.kernel.org
> > > > CC: Suresh Kumar <suresh2514@gmail.com>
> > > >
> > > > pf->rss_size_max is hardcoded and always prints max rss count as
> > > > 64.
> > > >
> > > > Eg:
> > > > kernel: i40e 0000:af:00.1: User requested queue count/HW max RSS
> > > > count: 104/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: 104
> > > > Current hardware settings:
> > > > RX: n/a
> > > > TX: n/a
> > > > Other: 1
> > > > Combined: 104 <-------
> > > >
> > > > and is misleading.
> > > >
> > > > Change it to vsi->num_queue_pairs
> > >
> > > Please reject this patch, it breaks driver logging.
> > > The massage clearly states that it dumps max rss queues number that f/w
> > supports.
> >
> > ...which would imply that you would be able to work with anything more
> > than 64 queues. From a quick glance rss_size_max comes from early i40e
> > days and if that would be the limit indeed then driver allowing 104 queues
> > would be a disaster, no?
> >
> > >
> > > Thank you
> > >
> > > > Signed-off-by: Suresh Kumar <suresh2514@gmail.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);
> >
> > IMHO this should be vsi->alloc_queue_pairs instead.
> >
> > > > return pf->alloc_rss_size;
> > > > }
> > > > -- 2.43.0
> > > >
> > >
> >
^ permalink raw reply [flat|nested] 15+ messages in thread