Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp676866pxt; Thu, 12 Aug 2021 07:18:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyl1ZaujrzJbz3ZxXmHMhxsbTXg3oEUWNb8vUzpblEnXP15Xqw2SxhSTicGo/FdTdUNHEzA X-Received: by 2002:a05:6402:22aa:: with SMTP id cx10mr5614514edb.59.1628777902776; Thu, 12 Aug 2021 07:18:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628777902; cv=none; d=google.com; s=arc-20160816; b=a5aD2FJy0mQuCFBEPK6QuizytWZCAs8JN0Y0p5TSWuw5Qb8a0upTvFJf9Z+IiY2g0S vl01nu8idu2c37nsjCBOeGx/j8mr5Xn2qbZo5dZwbhAGNUc0nHb/JQ7G2YEkaSf2i9fa sPEYK6/KNBD+JvfojZFvz//LmpMvHQQBHr9fQjRvjX9bSu1e7K6yYs6ZBn9Rnx0BmJQX IfjuV1dEmH4ZgKYZN1uA4pAn1WIo1pvXwp0DTkJD4aCQsw8d+EK1B3qVCqgqAfs/y5bO acdJzpJlv1qviBY81bXFA3asYVdLUwIicdMR0TLR2+/s5tVGSfDyFstpiXIlsgPdPzXj n3WQ== 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=AVR1uinap1y5qaFixNWxBw1b5jZ8NUd1eTrhQwuYMN6w6xzObprg5Wd976gBc5rpG4 D81qN8K4LYqn8W7SjWMgyhSUmTn118PNhjoycgvDzfe7pGLFJOGwgwWV3aBCQ1F2rNT6 TCNXeeKPwftSn5lkP1BUa8Rs8EzFa4SjDnXxooO8EC8XhzZheNzW0Ix8oDVPGNfuSjvn 0eaNO9Op88KKA7iny3Vrmbl1uQSK0RPc0gtF4yM2+9W2Y6GdIgJvnBdVqO+U8qI8kml1 EXbzXJAC2qa+SL96HxaAR7NTWu3j4njiPqHxtDhUhpdLOql2E8jYI+AJd61zpykK0UKF iBwQ== 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 z17si2500914edq.261.2021.08.12.07.17.52; Thu, 12 Aug 2021 07:18:22 -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 S237368AbhHLMM4 (ORCPT + 99 others); Thu, 12 Aug 2021 08:12:56 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:8404 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236141AbhHLMMt (ORCPT ); Thu, 12 Aug 2021 08:12:49 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4Gllp01Dnlz86cH; Thu, 12 Aug 2021 20:08:24 +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; Thu, 12 Aug 2021 20:12:22 +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; Thu, 12 Aug 2021 20:12:21 +0800 From: Guangbin Huang To: , CC: , , , Subject: [PATCH V2 net-next 2/4] ethtool: add two link extended substates of bad signal integrity Date: Thu, 12 Aug 2021 20:08:36 +0800 Message-ID: <1628770118-18714-3-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1628770118-18714-1-git-send-email-huangguangbin2@huawei.com> References: <1628770118-18714-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) 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