From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D59DEA0547 for ; Wed, 24 Feb 2021 03:34:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C8A4F1607A0; Wed, 24 Feb 2021 03:34:53 +0100 (CET) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mails.dpdk.org (Postfix) with ESMTP id CB7224069B; Wed, 24 Feb 2021 03:34:50 +0100 (CET) IronPort-SDR: DLj0K3U2dmnZUdfeDPO7ZSJtjnvI8FnslsZxqFylUwZTFe7/zNTVgutoTjw7FQuhOEwEKek0d3 KMvVzAV25wTg== X-IronPort-AV: E=McAfee;i="6000,8403,9904"; a="204477738" X-IronPort-AV: E=Sophos;i="5.81,201,1610438400"; d="scan'208";a="204477738" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2021 18:34:49 -0800 IronPort-SDR: BMPOF53R474qmfcIZqlyfEnWl31YhgGjErxI6ZCQhszVS1HZ7/sVedIAGSXf+VcizaFW1ppykA qf1hT0kWK6wQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,201,1610438400"; d="scan'208";a="391355723" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by fmsmga008.fm.intel.com with ESMTP; 23 Feb 2021 18:34:49 -0800 Received: from shsmsx602.ccr.corp.intel.com (10.109.6.142) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Tue, 23 Feb 2021 18:34:48 -0800 Received: from shsmsx601.ccr.corp.intel.com (10.109.6.141) by SHSMSX602.ccr.corp.intel.com (10.109.6.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Wed, 24 Feb 2021 10:34:47 +0800 Received: from shsmsx601.ccr.corp.intel.com ([10.109.6.141]) by SHSMSX601.ccr.corp.intel.com ([10.109.6.141]) with mapi id 15.01.2106.002; Wed, 24 Feb 2021 10:34:47 +0800 From: "Guo, Jia" To: "Xing, Beilei" CC: "dev@dpdk.org" , "stable@dpdk.org" , "Zhang, HengjianX" Thread-Topic: [PATCH] net/i40evf: fix packet loss issue for X722 Thread-Index: AQHXClPbydFABYz5YU2UIFsZ0hZcKKpmln5w Date: Wed, 24 Feb 2021 02:34:47 +0000 Message-ID: <4ea4236364b54a89bd01d959afa350f2@intel.com> References: <20210224020900.93574-1-beilei.xing@intel.com> In-Reply-To: <20210224020900.93574-1-beilei.xing@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.5.1.3 x-originating-ip: [10.239.127.36] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-stable] [PATCH] net/i40evf: fix packet loss issue for X722 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Sender: "stable" Acked-by: Jeff Guo > -----Original Message----- > From: Xing, Beilei > Sent: Wednesday, February 24, 2021 10:09 AM > To: Guo, Jia > Cc: dev@dpdk.org; Xing, Beilei ; stable@dpdk.org; > Zhang, HengjianX > Subject: [PATCH] net/i40evf: fix packet loss issue for X722 >=20 > From: Beilei Xing >=20 > 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. >=20 > Fixes: 2da3ba746795 ("net/i40e: fix VF runtime queues RSS config") > Cc: stable@dpdk.org >=20 > Signed-off-by: Beilei Xing > Signed-off-by: Hengjian Zhang > --- > drivers/net/i40e/i40e_ethdev_vf.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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) > } >=20 > for (i =3D 0; i < rss_lut_size; i++) > - lut_info[i] =3D i % vf->num_queue_pairs; > + lut_info[i] =3D i % num; >=20 > ret =3D i40evf_set_rss_lut(&vf->vsi, lut_info, > rss_lut_size); > -- > 2.26.2