Re: [PATCH net v2] selftests: drv-net: pause: ensure the link partner sees the link when probed

From: Maxime Chevallier

Date: Sun Nov 29 2026 - 07:27:07 EST


Hi Andrew,

On 11/28/26 18:07, Andrew Lunn wrote:
>> This has been found while running the stmmac kernel selftest suite
>> between an imx8mp + ksz9131 PHY and a Intel i350-T4 card, the
>> renegotiation happened too fast to reliably see it on the intel card
>> side.
>
> The logic of the patch makes sense. So i've no problems with the patch
> itself.
>
> I'm just curious about not being able to see it. Autoneg, at 1G, take
> a little over 1 second. So if you can poll at 0.5s intervals, you
> should see it. Is ssh to this machine really slow? Or is the Intel
> i350-T4 driver doing something odd? Slow at reporting the down? Fast a
> reporting the up?

The main issue is that we just didn't poll at all, so we sometimes read
the carrier change counter in the Intel card before the link had come back
up, and sometimes after.

Looking at the timings on both ends of the link I don't see any real
oddity, it takes around a second or two to renegotiate the link.

The main reason I missed this before is that most of these tests were
skipping on the stmmac CI farm due to me using cheap USB to Ethernet
adapters that didn't support Pause. Only one or two boards did the full
Pause test.

Now all 12 boards (well, 11 right now as the Motorcomm PCIe card is
apparently fried) are connected to these IGB peers that exercise the full
Pause tests. Maybe IGB gives the results a couple of hundreds of milliseconds
later than the previous peer I used for these tests, and that's enough
to put the test right in that racy window :(

Maxime