From patchwork Wed Feb 24 02:09:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Xing, Beilei" X-Patchwork-Id: 88125 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 97391A034F; Wed, 24 Feb 2021 03:22:12 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 55855160788; Wed, 24 Feb 2021 03:22:12 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 279344069B; Wed, 24 Feb 2021 03:22:09 +0100 (CET) IronPort-SDR: vyIwNKLTRBECsQ/JGxPGTRXAhwTWtHYgcPaK7DAMbeFgqLYXPUTrA1UgpQSP0E9sgWtJ7t4NBg lCo0ZXl5fYaA== X-IronPort-AV: E=McAfee;i="6000,8403,9904"; a="269976553" X-IronPort-AV: E=Sophos;i="5.81,201,1610438400"; d="scan'208";a="269976553" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Feb 2021 18:22:08 -0800 IronPort-SDR: UFHwY55da3CK3dOIjPn10i1x+Kt2Rx8kTxLku0/0Wn6vr7HJvcIBGlzJ6+OCaI567mUGa8Eo+o gNPuju/beZwA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.81,201,1610438400"; d="scan'208";a="403444682" Received: from dpdk-beileix-3.sh.intel.com ([10.67.110.150]) by orsmga008.jf.intel.com with ESMTP; 23 Feb 2021 18:22:06 -0800 From: beilei.xing@intel.com To: jia.guo@intel.com Cc: dev@dpdk.org, Beilei Xing , stable@dpdk.org, Hengjian Zhang Date: Wed, 24 Feb 2021 10:09:00 +0800 Message-Id: <20210224020900.93574-1-beilei.xing@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Subject: [dpdk-dev] [PATCH] net/i40evf: fix packet loss issue for X722 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Beilei Xing 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 --- drivers/net/i40e/i40e_ethdev_vf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);