From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 632DFA056D; Tue, 3 Mar 2020 06:53:00 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5247E1C00F; Tue, 3 Mar 2020 06:52:59 +0100 (CET) Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id 95E5F2BB8; Tue, 3 Mar 2020 06:52:57 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Mar 2020 21:52:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,510,1574150400"; d="scan'208";a="274065910" Received: from dpdk-qiming2.sh.intel.com ([10.67.119.101]) by fmsmga002.fm.intel.com with ESMTP; 02 Mar 2020 21:52:54 -0800 From: Qiming Yang To: dev@dpdk.org Cc: xiaolong.ye@intel.com, Qiming Yang , stable@dpdk.org Date: Tue, 3 Mar 2020 13:45:00 +0800 Message-Id: <20200303054500.72798-1-qiming.yang@intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20200226092221.85536-1-qiming.yang@intel.com> References: <20200226092221.85536-1-qiming.yang@intel.com> Subject: [dpdk-dev] [PATCH v2] net/i40e: fix X722 performance drop X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Lack of GL_SWR_PM_UP_THR value for mac type 4x10G X722 caused it can't reach line rate in one queue one core forwarding case. It's about 1% performance drop. This patch add value as: Device-ID Value Comments 0x37D0 0x03030303 4x10G FPK This value is hardware specific. Fixes: 3320d4a240da ("net/i40e: workaround performance degradation") Cc: stable@dpdk.org Signed-off-by: Qiming Yang --- drivers/net/i40e/i40e_ethdev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/i40e/i40e_ethdev.c b/drivers/net/i40e/i40e_ethdev.c index 9fbda1c..c09b9b9 100644 --- a/drivers/net/i40e/i40e_ethdev.c +++ b/drivers/net/i40e/i40e_ethdev.c @@ -10504,6 +10504,7 @@ i40e_get_swr_pm_cfg(struct i40e_hw *hw, uint32_t *value) { I40E_GL_SWR_PM_EF_DEVICE(I40E_DEV_ID_KX_C) }, { I40E_GL_SWR_PM_EF_DEVICE(I40E_DEV_ID_10G_BASE_T) }, { I40E_GL_SWR_PM_EF_DEVICE(I40E_DEV_ID_10G_BASE_T4) }, + { I40E_GL_SWR_PM_EF_DEVICE(I40E_DEV_ID_SFP_X722) }, { I40E_GL_SWR_PM_SF_DEVICE(I40E_DEV_ID_KX_B) }, { I40E_GL_SWR_PM_SF_DEVICE(I40E_DEV_ID_QSFP_A) }, -- 2.9.5