From: Andrew Lunn <andrew@lunn.ch>
To: Hariprasad Kelam <hkelam@marvell.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
kuba@kernel.org, davem@davemloft.net, sgoutham@marvell.com,
gakula@marvell.com, sbhatta@marvell.com, naveenm@marvell.com,
edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch,
bbhushan2@marvell.com
Subject: Re: Query regarding Phy loopback support
Date: Tue, 16 Sep 2025 18:43:20 +0200 [thread overview]
Message-ID: <3b76cc60-f0c5-478b-b26c-e951a71d3d0b@lunn.ch> (raw)
In-Reply-To: <aMlHoBWqe8YOwnv8@test-OptiPlex-Tower-Plus-7010>
On Tue, Sep 16, 2025 at 04:48:56PM +0530, Hariprasad Kelam wrote:
> We're looking for a standard way to configure PHY loopback on a network
> interface using common Linux tools like ethtool, ip, or devlink.
>
> Currently, ethtool -k eth0 loopback on enables a generic loopback, but it
> doesn't specify if it's an internal, external, or PHY loopback.
> Need suggestions to implement this feature in a standard way.
What actually do you mean by PHY loopback?
88e1118R supports two different loopbacks. It can do the loop at the
PCS, looping packets from the MAC back to the MAC. Or it can do the
loop at the PCS, looping packets from the media back to the media and
also deliver them to the MAC.
The 88e1510 has a slight different loopback. When used with copper, it
can loopback frames from the MAC back to the MAC in the copper
PCS. When used with Fibre is can loopback frames from the MAC to the
MAC in the fibre PCS. Additionally, it can loop back frames from the
MAC in the SERDES layer. And it can loopback frames from the media
back out the media.
From what a know of the aquantia PHY, it can loopback frames from the
MAC at the PCS or the PMA. And frames from the media can be looped
back at the PMA or the PCS.
I expect other vendors have a similar set of different places they can
do loopback, probably with variations.
Or do you simply mean as defined in 802.3, c22.2.4.1.2? And
c45.2.1.1.4, C45.2.1.1.5, taking into account c45.2.1.7.15 and
c45.2.1.12.1? And c45.2.1.18.1, c45.2.1.21.1, c45.2.1.22.1,
c45.2.1.231.6, c45.2.1.232.1, c45.2.1.234.5, c45.2.1.235.1, ...
Andrew
next prev parent reply other threads:[~2025-09-16 16:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-16 11:18 Query regarding Phy loopback support Hariprasad Kelam
2025-09-16 16:43 ` Andrew Lunn [this message]
2025-09-21 17:44 ` Hariprasad Kelam
2025-09-21 18:42 ` Andrew Lunn
2025-09-22 15:14 ` Maxime Chevallier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3b76cc60-f0c5-478b-b26c-e951a71d3d0b@lunn.ch \
--to=andrew@lunn.ch \
--cc=andrew+netdev@lunn.ch \
--cc=bbhushan2@marvell.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=gakula@marvell.com \
--cc=hkelam@marvell.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=naveenm@marvell.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sbhatta@marvell.com \
--cc=sgoutham@marvell.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox