From: Beilei Xing Date: Wed, 24 Feb 2021 02:09:00 +0000 (+0800) Subject: net/i40evf: fix packet loss for X722 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c45bd78e07e9d4b5ffc29748b9b7d4127293597a;p=dpdk.git net/i40evf: fix packet loss for X722 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") Cc: stable@dpdk.org Signed-off-by: Beilei Xing Signed-off-by: Hengjian Zhang Acked-by: Jeff Guo --- diff --git a/drivers/net/i40e/i40e_ethdev_vf.c b/drivers/net/i40e/i40e_ethdev_vf.c index 2909b4d894..0c9bd8d2c6 100644 --- a/drivers/net/i40e/i40e_ethdev_vf.c +++ b/drivers/net/i40e/i40e_ethdev_vf.c @@ -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);