Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp185075lqo; Wed, 27 Mar 2024 10:05:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVaXMCALlFu7ua9NXEKicwpXg1HX2j8n1AJYUFzsxzl9yLscduI4U4oFVJCBI0V8KLLXqL0B0RdFHr/sj//JkmmOrk9SrxVPRVBS+aPBg== X-Google-Smtp-Source: AGHT+IEl28WhLBppQIon2JlSkZZLgvMoO10XqVp3uEvVoFxOunxv9oz/hkKifcl/6CJxlxCi+z0J X-Received: by 2002:a17:902:e849:b0:1dc:8f19:8344 with SMTP id t9-20020a170902e84900b001dc8f198344mr324516plg.27.1711559141464; Wed, 27 Mar 2024 10:05:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711559141; cv=pass; d=google.com; s=arc-20160816; b=f+hiaXezWqgDJfayqywyxcBMDjSG1BU0ImT/A4KxSW/JNpv6qy0f2pnJsBAA3voHd1 lSrjLbxrDyFhmqhqnwLp+RI08j4ybg8pgyvbsS3d4fzNSzOQRZwh1/hMrrBG3PZRIxfI Nbs7ki/Npk2Rv5is7vzKNHdb6/JlehQanX/cHt9ovcen/WyBj7eQQ6vS1R5Kcs+rbIbw 8hhm9W81c1K7VUx9ZpzseX4fxNPX5gIvrFkUG18MW012HkQa8iS1LSZYpMh/N9+AnSDt L6Dckh+7yPOsVmB3Nqk4GLOQyTvjA6UCVjg84VDpIMgi2NdThkKralbX42rocfHvqehG 0h3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=CbVD9UKbAsHeFEJViP5OC4bsSoJgyMJMV/qKCudoXnA=; fh=WOWPeXQzz9KnGx+dwv8ZkjuTMQghTg6/cpS2AQQ/sQg=; b=xmfDSZ3heswLvBYWoG23Nudx7EC4htw2MX2LlKwD3LqqW1HfFFwxdCb7WvNuxVAgdB retahM9sg/Ft2bRdiJcXWxWnWOfoZPvQIArz+gO8p6dM7+uieVuLp74b7pDPONrG46On kEgcjgNW0MJwnc2B6PjJi+QbRIIKLpmfO86UlWV+DsmOoGg0BSxP0pXfxzLBdvSuXyhN Gs9ISgvnzmf0tx5iR8wZ/k3RbZFCU3M9eKpQepb6zxfa6JLrr+q8sn8BIn7r3RrnOksx 8WUOtTdwfrNQHKzKdelRMZx58Qovuk+ElvFu+0iRyOIWHNVOEs73WsCG9eZpp/qlv4la T+IQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fKLAYYPD; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-121633-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id jf20-20020a170903269400b001e05d7b6a38si9298415plb.400.2024.03.27.10.05.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 10:05:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121633-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=fKLAYYPD; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-121633-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121633-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 78CDCB29073 for ; Wed, 27 Mar 2024 16:30:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B4BB4131BA7; Wed, 27 Mar 2024 16:30:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="fKLAYYPD" Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 504B61311B6; Wed, 27 Mar 2024 16:30:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711557021; cv=none; b=SbPnF9Abu4hz77vyXjDHim2JYNap4bdp+/9bMLM3FnggzpUh2Ghrmjen318WbuVvhlL0g4HOxi3d/31N4k6zgCsKp9sHrIbpk1BqP92StPD1mQnVZ+orfC+iCA/LiHMEQu9F/71oyqyFLJE+O0g4x8Y7iUbuJf80U/LKejpbRh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711557021; c=relaxed/simple; bh=+IQ0w5v5MheTaI5m471++uoq8tmNWb8WrcmDZ/hhJUY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=M3Cw7WJAW8yAiVS1ctYG14CCYu6GCGAfcPxV2LWA36hq8P3LIoVJ6ZlXXNbgGm3Is29MqN/DiXvPTtap6XzamuB3XQVL6C8EBmnbYKbdeatPZJWr9bSWN+Z+JI7LYxpXju3mBfY+cIa+95WTBS7XuRjTd7pA8C3Py4xCMiD9OXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=fKLAYYPD; arc=none smtp.client-ip=209.85.218.47 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f47.google.com with SMTP id a640c23a62f3a-a4a39ab1a10so239566b.1; Wed, 27 Mar 2024 09:30:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1711557018; x=1712161818; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=CbVD9UKbAsHeFEJViP5OC4bsSoJgyMJMV/qKCudoXnA=; b=fKLAYYPDzwVayhbFeGead9WG7pquGh/9nah3qWhbcuOd6Jd+CIufUbbMKrYALS8vLp 1Vqm/icj7//trCDnASy/WI8txWu6bPgnz9GBBN4JB3IeH8XRMy0AncxhVg3ee7tuSkSK L5iMr6wskr3oWDi+gxRnm/fbwA7F9T8TVPkoBi0Jr2Q9wlo5zJueXldYs7HKJrYcWRpt +RzQgJivYVquQ5mFy1a5nzmjR3uU6D6YLnRIrxXLIbfCRFsGEMbWAm9jstYIsAjzTdEw X9i069wi002NNRS34h/JntBve7JE4crPIiRuNY3nhsgcKz+cs3FOf6CxGDB4/F3ZRnJp eOlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711557018; x=1712161818; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CbVD9UKbAsHeFEJViP5OC4bsSoJgyMJMV/qKCudoXnA=; b=SCJjFcKiDjj3bBEM/YOVt3JvhXDxK/UpkuCq4eAoetMtbJmMW7DitDyp4rzcOKUIP+ C3hcurY88KymBPOX1GCfaoXHDa9Ja7pWTefa31bH4tHaPhRbVIEE/tCX+QqYnW7QQT+y Ho2M7CdbvUuYNkBWYxRHgJEfid/+4FpCtfmo604rV7erygTZyieNkjvFEc7kunlGluDO WLKSzkSJKX/dRhrRZzrPGiFt0Mp33GOOttZ7I/9rWLMN/Zj68sjbwVfnJ4DSKsImItu3 IhxoNsQxuYPG2/8Q0o96o9aQZvNtTpqGPONuHvmruNiSPaUObOu96xp4KAyEm1p4Nsus MtOg== X-Forwarded-Encrypted: i=1; AJvYcCX0HL4gT6Jim4PBKb8GdXOb9KjR6twmrG3BE8Ioz/dWHm8zm/lRPAFHnosw+LYtonA70/TCZLbT9A8gczC5DaVexxQwWVuRV6rU3uic X-Gm-Message-State: AOJu0YyrD0HwCQMcSSPS0iajK7gRRgaUyGGRGp9rkixWD+qxCqWPCtrO 8XDTOfxO7un1FHYMDLydDTcx0YViaS38Pn4mfg0W/C0zlLaHxrlfHL51YQsWPjY= X-Received: by 2002:a17:907:76f2:b0:a47:32b3:18c5 with SMTP id kg18-20020a17090776f200b00a4732b318c5mr2319745ejc.68.1711557018062; Wed, 27 Mar 2024 09:30:18 -0700 (PDT) Received: from WBEC325.dom.lan ([185.188.71.122]) by smtp.gmail.com with ESMTPSA id o9-20020a170906774900b00a46a2ac0dbasm5609385ejn.197.2024.03.27.09.30.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 09:30:17 -0700 (PDT) From: Pawel Dembicki To: netdev@vger.kernel.org Cc: Pawel Dembicki , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Stefan Eichenberger , Dimitri Fedrau , Kory Maincent , Maxime Chevallier , Shay Agroskin , Ahmed Zaki , linux-kernel@vger.kernel.org Subject: [PATCH net-next v2 2/3] net: ethtool: Add impedance mismatch result code to cable test Date: Wed, 27 Mar 2024 17:29:13 +0100 Message-Id: <20240327162918.2426792-2-paweldembicki@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240327162918.2426792-1-paweldembicki@gmail.com> References: <20240327162918.2426792-1-paweldembicki@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Some PHYs can recognize during a cable test if the impedance in the cable is okay. This commit introduces a new result code: ETHTOOL_A_CABLE_RESULT_CODE_IMPEDANCE_MISMATCH which represents the results of a cable test indicating abnormal impedance. Signed-off-by: Pawel Dembicki --- v2: - introduce patch include/uapi/linux/ethtool_netlink.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/ethtool_netlink.h b/include/uapi/linux/ethtool_netlink.h index 3f89074aa06c..ecc020bd47d1 100644 --- a/include/uapi/linux/ethtool_netlink.h +++ b/include/uapi/linux/ethtool_netlink.h @@ -515,6 +515,7 @@ enum { ETHTOOL_A_CABLE_RESULT_CODE_OPEN, ETHTOOL_A_CABLE_RESULT_CODE_SAME_SHORT, ETHTOOL_A_CABLE_RESULT_CODE_CROSS_SHORT, + ETHTOOL_A_CABLE_RESULT_CODE_IMPEDANCE_MISMATCH, }; enum { -- 2.25.1