Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp2761948pxt; Mon, 9 Aug 2021 08:19:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwX+hnsHUvp/m55PlkODIQXpE93XhUASUCBXzkNFz/COU3idmaXPxDENsLOn+W77c59ztC X-Received: by 2002:a17:906:544f:: with SMTP id d15mr22879156ejp.520.1628522385662; Mon, 09 Aug 2021 08:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628522385; cv=none; d=google.com; s=arc-20160816; b=ehxPWa9iPN1KpshuoLpg0l6+og0m8uOmlcVuImXFqfGQtGZaJVD5AfWI1GZL5R/DBa tJ38CPwHgqoWlcSk3z8aPSYrUdjN47+LVsqXMWAKeKXpZ8tWiiMuoaYHy33Ni7WQYY4M /vnnuEl0qAQwOrURngiPEfOVBTq7+75zMYBgZp1oTiScPIk0UwKPd4W21zLjwnmHsNbu z946U3cv7kKvN2F4WcJRPBAghbhWHMdeJLCr+ZjLzW3MOcOI9csyGUJ6VT3eLxYF0a7b 8wij8YymBK5012IKlhIbuE10tujnCoIz91neoI4kQlBsx8Rnw6pgeG7gaaZWDTB1Y5pM UDGQ== 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=zhNfK5sC0+0n4Qwe0BbQtIUE7AziGPaKlRa4Lo64lWb/kTk/njt9+kDxbpa8aoh+3l GYq8kKvf264Fk9jDy+jItGx6V74HfY7ZKdAUQMmx3K/Ri24X03D58pWHxqGWHiRR0bey nR/+gwAzIEUKFQuAsec1IWYM07+BQcvzlJo57KKlKfk5oyKJumZ/JyW448Vy/Ar6TZPU WHmISzdgSqt6ecay/LbMXgTecLtadEe3ygyQOhKUUYdilnWMbZcOg03wXGcIwJKjecBn ywsXuXg7Z1sSV1vI1uaY99lT5I5e7gMGEi2Oha4FQ5goGtN8HARUfd0qolpWoOjjS2ts rzOA== 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 c23si2577666ejx.112.2021.08.09.08.19.22; Mon, 09 Aug 2021 08:19:45 -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 S235164AbhHIOzC (ORCPT + 99 others); Mon, 9 Aug 2021 10:55:02 -0400 Received: from szxga08-in.huawei.com ([45.249.212.255]:13258 "EHLO szxga08-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234321AbhHIOys (ORCPT ); Mon, 9 Aug 2021 10:54:48 -0400 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4Gjzch2gNNz1CTvw; Mon, 9 Aug 2021 22:54:12 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 9 Aug 2021 22:54:24 +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, 9 Aug 2021 22:54:24 +0800 From: Guangbin Huang To: , CC: , , , Subject: [PATCH net-next 2/4] ethtool: add two link extended substates of bad signal integrity Date: Mon, 9 Aug 2021 22:50:40 +0800 Message-ID: <1628520642-30839-3-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1628520642-30839-1-git-send-email-huangguangbin2@huawei.com> References: <1628520642-30839-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) 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