net/i40evf: fix packet loss issue for X722
PATCH 1/1 net/i40evf: fix packet loss issue for X722
From: Beilei Xing <[email protected]>
When Tx queue number is more than Rx queue number, and RSS is enabled, there'll be packet loss with X722.
The root cause is the lookup table is not configured correctly, since it uses VF's queue pair number but not Rx queue number.
--- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/i40e/i40e_ethdev_vf.c +1 -1
@@ -2746,7 +2746,7 @@ i40evf_config_rss(struct i40e_vf *vf) }for (i =0 ; i < rss_lut_size; i++) - lut_info[i] = i % vf->num_queue_pairs; + lut_info[i] = i % num; ret =i40evf_set_rss_lut (&vf->vsi, lut_info, rss_lut_size);
Signature · 1 line
2.26.2
Quoted 40 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Wednesday, February 24, 2021 10:09 AM
To: Guo, Jia <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; [email protected]; Zhang, HengjianX <[email protected]>
Subject: [PATCH] net/i40evf: fix packet loss issue for X722From: Beilei Xing <[email protected]>
When Tx queue number is more than Rx queue number, and RSS is enabled, there'll be packet loss with X722.
The root cause is the lookup table is not configured correctly, since it uses VF's queue pair number but not Rx queue number.Fixes 2da3ba746795 ("net/i40e: fix VF runtime queues RSS config")Signed-off-by Beilei Xing <[email protected]>Signed-off-by Hengjian Zhang <[email protected]>--- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/i40e/i40e_ethdev_vf.c +1
-2@@ -2746,7 +2746,7 @@ i40evf_config_rss(struct i40e_vf *vf) }for (i =0 ; i < rss_lut_size; i++) - lut_info[i] = i % vf->num_queue_pairs; + lut_info[i] = i % num; ret =i40evf_set_rss_lut (&vf->vsi, lut_info, rss_lut_size); --2.26.2
Zhang, Qi Z
AppliedQuoted 10 lines
-----Original Message-----
From: dev <[email protected]> On Behalf Of Guo, Jia
Sent: Wednesday, February 24, 2021 10:35 AM
To: Xing, Beilei <[email protected]>
Cc: [email protected]; [email protected]; Zhang, HengjianX <[email protected]>
Subject: Re: [dpdk-dev] [PATCH] net/i40evf: fix packet loss issue for X722
Quoted 23 lines
Acked-by Jeff Guo <[email protected]>Quoted 21 lines
-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Wednesday, February 24, 2021 10:09 AM
To: Guo, Jia <[email protected]>
Cc: [email protected]; Xing, Beilei <[email protected]>; [email protected]; Zhang, HengjianX <[email protected]>
Subject: [PATCH] net/i40evf: fix packet loss issue for X722From: Beilei Xing <[email protected]>
When Tx queue number is more than Rx queue number, and RSS is enabled, there'll be packet loss with X722.
The root cause is the lookup table is not configured correctly, since it uses VF's queue pair number but not Rx queue number.Fixes 2da3ba746795 ("net/i40e: fix VF runtime queues RSS config")Signed-off-by Beilei Xing <[email protected]>Signed-off-by Hengjian Zhang <[email protected]>---
Applied to dpdk-next-net-intel.
Thanks
Qi