Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp1375458pxy; Sun, 15 Aug 2021 19:20:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6M5UETZgFwGclHY2ohb4rT4zDt5a9UArK9ztNfZxaBVQvXjT8FC3acpoXgmawYUi7sBOW X-Received: by 2002:a05:6e02:1c2b:: with SMTP id m11mr7124994ilh.242.1629080406992; Sun, 15 Aug 2021 19:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629080406; cv=none; d=google.com; s=arc-20160816; b=wMZ8W4hH2o3Cy+6Mvjsd3yrotNJCpW17PhgbHG7R1rZLBmBYgO3ixHX40rxxvnmK4Q t5BVN1DWGMVvNZkbcHBW7ZlA4W8KUK8WrALXH9xQ7i7HIT+BSan5PcRIXXDHXQaWRuQz DkkJ6UjIxeMBEES8COjm6i6JKOzezAz2S8cfOq50qwH1Yb1IJvEMTavUa3aUfkXOn8XX rKDPo424Lq4asn+x76LahYqd9MaIIMTPkmY5O6cTSp1UKcLpBbZtudwygKubMv5ttpLa Ma76GYTgWDYKPk53D9ngdDonFRINx42WYv891GicMfnEYS6atXmrdzbjuli5yqpXjPpA seTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Mnb9BSluQuVP+GhPDJ4BFisoErPmQHxIShvb1B0rM5g=; b=iuKmNQMm50JA3/kuuEfiVzHpkPRP/FqQGtsdFwyU25I1vOMaF5IZ54hJX7MBA/wUwe ca7R/jz8H+oyN2W1ap2rc28cdaJzC1TL8dMNfMKTIBDkQ5QbCxZG2jDUCW1Apii1APHK ZZsVL38YhExQN5bl1hTnVgnj1gn7Rrfw1jqxI4du3J1juhQSpAK/qsg1kx6xWBfuGVnX qZF+FrL53evY0bxsVn0Og43MT+D0lNMdRUL1NIOFTi7GAMslrikmefVbDx5WTJZo0/X0 vwuszoKqMGJzGBC0/LoROHqvNLjWrOm2GLM8F2vrXJTggrZiGiLoNh8MgRlWfh58izv2 iojA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h9si10471347ils.85.2021.08.15.19.19.55; Sun, 15 Aug 2021 19:20:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231493AbhHPCTs (ORCPT + 99 others); Sun, 15 Aug 2021 22:19:48 -0400 Received: from szxga01-in.huawei.com ([45.249.212.187]:17019 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbhHPCTr (ORCPT ); Sun, 15 Aug 2021 22:19:47 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4GnyS41rgyzb2Jk; Mon, 16 Aug 2021 10:15:32 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 16 Aug 2021 10:19:14 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 16 Aug 2021 10:19:14 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH RESEND V2 net-next 2/4] ethtool: add two link extended substates of bad signal integrity Date: Mon, 16 Aug 2021 10:15:27 +0800 Message-ID: <1629080129-46507-3-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1629080129-46507-1-git-send-email-huangguangbin2@huawei.com> References: <1629080129-46507-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_REFERENCE_CLOCK_LOST means the input external clock signal for SerDes is too weak or lost. ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_ALOS means the received signal for SerDes is too weak because analog loss of signal. Signed-off-by: Guangbin Huang --- include/uapi/linux/ethtool.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/ethtool.h b/include/uapi/linux/ethtool.h index 67aa7134b301..b6db6590baf0 100644 --- a/include/uapi/linux/ethtool.h +++ b/include/uapi/linux/ethtool.h @@ -639,6 +639,8 @@ enum ethtool_link_ext_substate_link_logical_mismatch { enum ethtool_link_ext_substate_bad_signal_integrity { ETHTOOL_LINK_EXT_SUBSTATE_BSI_LARGE_NUMBER_OF_PHYSICAL_ERRORS = 1, ETHTOOL_LINK_EXT_SUBSTATE_BSI_UNSUPPORTED_RATE, + ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_REFERENCE_CLOCK_LOST, + ETHTOOL_LINK_EXT_SUBSTATE_BSI_SERDES_ALOS, }; /* More information in addition to ETHTOOL_LINK_EXT_STATE_CABLE_ISSUE. */ -- 2.8.1