* [Intel-wired-lan] [PATCH net v1] i40e: Fix calculating the number of queue pairs
@ 2022-04-29 12:40 Jedzej Jagielski
2022-05-19 10:06 ` Sreenivas, Bharathi
0 siblings, 1 reply; 2+ messages in thread
From: Jedzej Jagielski @ 2022-04-29 12:40 UTC (permalink / raw)
To: intel-wired-lan
From: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
If ADq is enabled for a VF, then actual number of queue pair
is a number of currently available traffic classes for this VF.
Without this change the configuration of the rx/tx queues
fails with error.
Fixes: d29e0d233e0d ("i40e: missing input validation on VF message handling by the PF")
Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
---
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
index 2606e8f0f19b..033ea71763e3 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
@@ -2282,7 +2282,7 @@ static int i40e_vc_config_queues_msg(struct i40e_vf *vf, u8 *msg)
}
if (vf->adq_enabled) {
- for (i = 0; i < I40E_MAX_VF_VSI; i++)
+ for (i = 0; i < vf->num_tc; i++)
num_qps_all += vf->ch[i].num_qps;
if (num_qps_all != qci->num_queue_pairs) {
aq_ret = I40E_ERR_PARAM;
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Intel-wired-lan] [PATCH net v1] i40e: Fix calculating the number of queue pairs
2022-04-29 12:40 [Intel-wired-lan] [PATCH net v1] i40e: Fix calculating the number of queue pairs Jedzej Jagielski
@ 2022-05-19 10:06 ` Sreenivas, Bharathi
0 siblings, 0 replies; 2+ messages in thread
From: Sreenivas, Bharathi @ 2022-05-19 10:06 UTC (permalink / raw)
To: intel-wired-lan
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces@osuosl.org> On Behalf Of
> Jedzej Jagielski
> Sent: Friday, April 29, 2022 6:10 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Jagielski, Jedrzej <jedrzej.jagielski@intel.com>
> Subject: [Intel-wired-lan] [PATCH net v1] i40e: Fix calculating the number of
> queue pairs
>
> From: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
>
> If ADq is enabled for a VF, then actual number of queue pair is a number of
> currently available traffic classes for this VF.
>
> Without this change the configuration of the rx/tx queues fails with error.
>
> Fixes: d29e0d233e0d ("i40e: missing input validation on VF message handling
> by the PF")
> Signed-off-by: Grzegorz Szczurek <grzegorzx.szczurek@intel.com>
> Signed-off-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
> ---
> drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Tested-by: Bharathi Sreenivas<bharathi.sreenivas@intel.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-05-19 10:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-29 12:40 [Intel-wired-lan] [PATCH net v1] i40e: Fix calculating the number of queue pairs Jedzej Jagielski
2022-05-19 10:06 ` Sreenivas, Bharathi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.