From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13884B640; Mon, 9 Mar 2026 14:55:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773068155; cv=none; b=N6C3lvPkw/QjKWHG2UoIQWWWsvX0VVehLgm4ZW13FP1PAH74GEKzkQECZ3Pa7S/zuFX1Dd9/2SzTqd3kCUtSDl6MNwXWHKDcyHH04xAUR7spKIxLTSrnHNGYxJQrpbHIy791t+RWlp8kPDpx6yxCorp+w3he0RMP5vsNXSFIaYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773068155; c=relaxed/simple; bh=3A044siluQ+CgDz0gvCJ+MlnzuQ7BRNv3biDaSQWhqY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=Z8CcZcEOE7P9llrfD/X3qkkCJCNmIbZ/h16PZvQ8bO2Pfsc6PiXDgpoaATetKj0htCw0uOx81Q0cLIO78YzvfuBgADcErJIbrxlqKOY91yRUAM/XSf/fVmuG1+/D1SGSBvpXJ81xLQEwJDGcc01jbv8vu1ckEu3tdld1rufbTb0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=b6P+HMjZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="b6P+HMjZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0356DC4CEF7; Mon, 9 Mar 2026 14:55:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1773068154; bh=3A044siluQ+CgDz0gvCJ+MlnzuQ7BRNv3biDaSQWhqY=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=b6P+HMjZkZhtfj6+/occb+CPtuKNuNAHlsDAnWgds5XDn+CcEjo+4bHfm8zXpIyzK InJVWND5s8cD/iry5Z3zoOVJk/4FkdQm5yMJGg0EuQiXUIeu6R1OI7alnug4PX+OLf +ZqgujUkbiOo9MdTeJxvEgHxXIV6dSmnGQbmEGITtyWvi6O2z9np5PGMk8wPM9yoJ3 OO7L0iJAlqDBHWGTxEUKcpjHyQf1xMrGjXIYLQl/+P0Vl9CQPRFRtl7HFp8koot48w PzLEqQ6FS0VICAor/pBw/Jksx8WlQw1eIEr6JXGqOVArhrZmhCZL2qg5FNtzNopUg9 fGWZHVZ4K5Tbg== From: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= To: Naveen Mamindlapalli Cc: netdev@vger.kernel.org, Donald Hunter , Jakub Kicinski , "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Saeed Mahameed , Tariq Toukan , Leon Romanovsky , Andrew Lunn , Maxime Chevallier , Andrew Lunn , Michael Chan , Hariprasad Kelam , Ido Schimmel , Danielle Ratson , linux-kernel@vger.kernel.org, linux-rdma@vger.kernel.org, Russell King Subject: Re: [RFC net-next v2 0/6] ethtool: Generic loopback support In-Reply-To: References: <20260308124016.3134012-1-bjorn@kernel.org> Date: Mon, 09 Mar 2026 15:55:51 +0100 Message-ID: <87tsupnjbc.fsf@all.your.base.are.belong.to.us> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain Naveen! Naveen Mamindlapalli writes: >> Open questions >> ============== >> >> - Is this the right extensibility model? I'd appreciate input from >> other NIC vendors on whether component/name/direction is flexible >> enough for their loopback implementations. Also, from the PHY/port >> folks (Maxime, Russell)! > > Hi Bjorn, > > The component/name/direction model in v2 fits our hardware well. > > I am working on loopback support for Marvell OcteonTX2. > The MAC (RPM block) supports a PCS-level loopback. In addition, > the on-chip SerDes (GSERM) is managed by embedded firmware and > supports three more loopback modes: > NED (Near-End Digital) -- digital domain, before the analog front-end > NEA (Near-End Analog) -- through the full analog front-end > FED (Far-End Digital) -- line-side traffic looped back > > Since the GSERM is not a phylib phy_device, both the MAC PCS > loopback and the SerDes loopbacks fall under the MAC component > in your model. > > Mapped to the v2 model: > component name supported description > MAC mac near-end PCS-level loopback > MAC serdes-ned near-end digital only > MAC serdes-nea near-end analog > MAC serdes-fed far-end line-side > > The SerDes NED and NEA both have the same (component, direction). > Both are (MAC, near-end) -- but exercise fundamentally different > hardware paths. The name field distinguishes them as per your model, Ok! ...and MAC+serdes makes sense from your PoV? Or do we need a new component "SERDES" (as Maxime points out in another reply)? > I can work on MAC + SerDes loopback driver support for CN10K and > post patches on top of your series once MAC component dispatch is > in place. Got it! Thanks!