public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Gerhard Engleder <gerhard@engleder-embedded.com>, andrew@lunn.ch
Cc: netdev@vger.kernel.org, hkallweit1@gmail.com,
	linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, ltrager@meta.com,
	Jijie Shao <shaojijie@huawei.com>
Subject: Re: [PATCH net-next v10 0/5] Support loopback mode speed selection
Date: Thu, 20 Mar 2025 08:32:32 +0100	[thread overview]
Message-ID: <e90db88f-05d6-4389-b5bd-5e4146bdfbe8@redhat.com> (raw)
In-Reply-To: <ab02f08f-d294-462e-bbda-bb6909781ce6@engleder-embedded.com>

On 3/20/25 7:26 AM, Gerhard Engleder wrote:
> On 12.03.25 21:30, Gerhard Engleder wrote:
>> Previously to commit 6ff3cddc365b ("net: phylib: do not disable autoneg
>> for fixed speeds >= 1G") it was possible to select the speed of the
>> loopback mode by configuring a fixed speed before enabling the loopback
>> mode. Now autoneg is always enabled for >= 1G and a fixed speed of >= 1G
>> requires successful autoneg. Thus, the speed of the loopback mode depends
>> on the link partner for >= 1G. There is no technical reason to depend on
>> the link partner for loopback mode. With this behavior the loopback mode
>> is less useful for testing.
>>
>> Allow PHYs to support optional speed selection for the loopback mode.
>> This support is implemented for the generic loopback support and for PHY
>> drivers, which obviously support speed selection for loopback mode.
>> Additionally, loopback support according to the data sheet is added to
>> the KSZ9031 PHY.
>>
>> Extend phy_loopback() to signal link up and down if speed changes,
>> because a new link speed requires link up signalling.
>>
>> Use this loopback speed selection in the tsnep driver to select the
>> loopback mode speed depending the previously active speed. User space
>> tests with 100 Mbps and 1 Gbps loopback are possible again.
>>
>> v10:
>> - remove selftests, because Anrew Lunn expects a new netlink API for
>>    selftests and the selftest patches should wait for it
>>
> 
> Hello Andrew,
> 
> The patchset now does not touch any selftest code anymore. It now only
> fixes the 1Gbps loopback, which requires a link partner since
> 6ff3cddc365b. tsnep is using the extended phy_loopback() interface
> to select the loopback speed. Also the phy_loopback() usage in tsnep
> could be simplified, because thanks to your review comments link speed
> changes are now signaled correctly by phy_loopback().
> 
> I'm curious about the work of Lee Trager and I will definitely take a
> look on it. I will take a look to the netdev 0x19 talk as soon as the
> slides or the recording is available.
> 
> I did not get an answer from you to my last reply of v9. That's the
> reason why I decided to post v10 without selftests. How to proceed
> with this changes? The development cycle is near the end, so maybe
> you want to delay this change to the beginning of the next development
> cycle?

FTR, I reached for Andrew off-list and he is ok with v10. Given the
large PW backlog and the upcoming merge window, I'm going to apply the
patches possibly before his explicit ack on the ML.

/P


  reply	other threads:[~2025-03-20  7:32 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-12 20:30 [PATCH net-next v10 0/5] Support loopback mode speed selection Gerhard Engleder
2025-03-12 20:30 ` [PATCH net-next v10 1/5] net: phy: Allow loopback speed selection for PHY drivers Gerhard Engleder
2025-03-12 20:30 ` [PATCH net-next v10 2/5] net: phy: Support speed selection for PHY loopback Gerhard Engleder
2025-03-12 20:30 ` [PATCH net-next v10 3/5] net: phy: micrel: Add loopback support Gerhard Engleder
2025-03-13  8:57   ` Maxime Chevallier
2025-03-13  9:35     ` Gerhard Engleder
2025-03-13  9:41       ` Maxime Chevallier
2025-03-12 20:30 ` [PATCH net-next v10 4/5] net: phy: marvell: Align set_loopback() implementation Gerhard Engleder
2025-03-12 20:30 ` [PATCH net-next v10 5/5] tsnep: Select speed for loopback Gerhard Engleder
2025-03-20  6:26 ` [PATCH net-next v10 0/5] Support loopback mode speed selection Gerhard Engleder
2025-03-20  7:32   ` Paolo Abeni [this message]
2025-03-20  7:50 ` patchwork-bot+netdevbpf

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=e90db88f-05d6-4389-b5bd-5e4146bdfbe8@redhat.com \
    --to=pabeni@redhat.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=gerhard@engleder-embedded.com \
    --cc=hkallweit1@gmail.com \
    --cc=kuba@kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=ltrager@meta.com \
    --cc=netdev@vger.kernel.org \
    --cc=shaojijie@huawei.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