Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1872065yba; Thu, 25 Apr 2019 07:06:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzd3Y7czRAaDy28tj5Z2o/k3K12NcxIA3TJD5gpcp1EZbRlXCxSRan07/iNDW8UiqzH11y X-Received: by 2002:a17:902:4165:: with SMTP id e92mr39994791pld.10.1556201172484; Thu, 25 Apr 2019 07:06:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556201172; cv=none; d=google.com; s=arc-20160816; b=fDto/jMQDjYJOUMiO50VCQUpWBEXr1wnsPKZ3vF/RKVcc145Ls+rhGHL/cVrs8Su1E WmM01lc2RoHisoRUV7uOXY81101SvKeGgJuX7l33cSI8uKXqTig+fU+fMtKzbmwOK5wL o2zVAL+dH72k6nXPdyG2eUR+dHTNX+GExFNeDqfR4cPcYlASMrcOptVJgoeFguViyMrp bFRmYW2SPIiDmb+eFb/TWg43h2TNGnYlpADv7qEDr2ZAetEiZWxFvibQROS29aQeWfSA HmD+IBzFOpjhsG03Zjn0+GB3wrdFDe5SVtlOln5wCVpfrCTyEn9z2XkQasbMOkdJO9Sj S0yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=0ER5X/Fu85N5Doygh4hsFSN9dwHI7GI/f/C4+ZmGdDg=; b=m/+X/ErsNl2n2xe+4qkkthEngyGzyRBf/4RQrYCVKleD8v81bSj1/POY2k/4rBALq3 zqhhImgL+UzklIeQWNZVBsAzPd6yLwU1xZbD3LK+4uWfubHvr0djkA47i4Vzqd0UuR2b PneJHbJyixZlrxZxiQAC+EoKN+vKyR1kvJxPBJO665kMU5NYYjUMwhNG1Is34wkVPp+m 0nieUlCwLFKb48Lev0soZ82s5HR2ArOBJLC4wtR79Hgn7iBGPZdWiA8abMbewBRB5HPS /1lwgXM04C9mjx55JxxjhE9MdXLYGiLuGiNBepJQq1/XNEFbxNdJkOTkG9ME/bAV09Oi MC6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21si22021616pgj.513.2019.04.25.07.05.55; Thu, 25 Apr 2019 07:06:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387870AbfDYMoY (ORCPT + 99 others); Thu, 25 Apr 2019 08:44:24 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6696 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731398AbfDYMoR (ORCPT ); Thu, 25 Apr 2019 08:44:17 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 48B0D4CF03BBE59A1931; Thu, 25 Apr 2019 20:44:14 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Thu, 25 Apr 2019 20:44:05 +0800 From: Huazhong Tan To: CC: , , , , , , liuzhongzhu , Peng Li , Huazhong Tan Subject: [PATCH V3 net-next 09/11] net: hns3: extend the loopback state acquisition time Date: Thu, 25 Apr 2019 20:42:53 +0800 Message-ID: <1556196175-65389-10-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556196175-65389-1-git-send-email-tanhuazhong@huawei.com> References: <1556196175-65389-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.132] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: liuzhongzhu The test results show that the maximum time of hardware return to mac link state is 500MS.The software needs to set twice the maximum time of hardware return state (1000MS). If not modified, the loopback test returns probability failure. Signed-off-by: liuzhongzhu Signed-off-by: Peng Li Signed-off-by: Huazhong Tan --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 4d5568e..effe89fa 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -5337,8 +5337,8 @@ static int hclge_set_serdes_loopback(struct hclge_dev *hdev, bool en, #define HCLGE_SERDES_RETRY_MS 10 #define HCLGE_SERDES_RETRY_NUM 100 -#define HCLGE_MAC_LINK_STATUS_MS 20 -#define HCLGE_MAC_LINK_STATUS_NUM 10 +#define HCLGE_MAC_LINK_STATUS_MS 10 +#define HCLGE_MAC_LINK_STATUS_NUM 100 #define HCLGE_MAC_LINK_STATUS_DOWN 0 #define HCLGE_MAC_LINK_STATUS_UP 1 -- 2.7.4