lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <53151eb0-5c1c-47a1-95bb-2a6654d5d230@amd.com>
Date: Tue, 21 Oct 2025 22:10:42 +0530
From: "Rangoju, Raju" <raju.rangoju@....com>
To: Maxime Chevallier <maxime.chevallier@...tlin.com>,
 Andrew Lunn <andrew@...n.ch>
Cc: netdev@...r.kernel.org, pabeni@...hat.com, kuba@...nel.org,
 edumazet@...gle.com, davem@...emloft.net, andrew+netdev@...n.ch,
 Shyam-sundar.S-k@....com
Subject: Re: [PATCH net-next v3 2/4] amd-xgbe: add ethtool phy selftest



On 10/21/2025 3:02 PM, Maxime Chevallier wrote:
> Caution: This message originated from an External Source. Use proper caution when opening attachments, clicking links, or responding.
> 
> 
> On 20/10/2025 21:07, Andrew Lunn wrote:
>> On Mon, Oct 20, 2025 at 06:19:55PM +0200, Maxime Chevallier wrote:
>>> Hi Raju,
>>>
>>> On 20/10/2025 17:22, Raju Rangoju wrote:
>>>> Adds support for ethtool PHY loopback selftest. It uses
>>>> genphy_loopback function, which use BMCR loopback bit to
>>>> enable or disable loopback.
>>>>
>>>> Signed-off-by: Raju Rangoju <Raju.Rangoju@....com>
>>>
>>> This all looks a lot like the stmmac selftests, hopefully one day
>>> we can extract that logic into a more generic selftest framework
>>> for all drivers to use.
>>
>> https://elixir.bootlin.com/linux/v6.17.3/source/net/core/selftests.c#L441
>>
>> Sorry, not looked at the patch to see if this is relevant for this
>> driver. But we do have a generic selftest framework...
>>
>>        Andrew
> 
> Ah ! And this also looks like this driver code. It seems to me that the
> main diffence that the amd-xgbe selftest brings is the ability to
> fallback to MAC-side loopback should PHY loopback fails, so they don't
> 1:1 map to these, but we could consider extending the existing selftests.
> 
> Besides that it seems that the generic selftest are more efficient wrt
> how they deal with PHY loopback, as they don't re-configure it for each
> selftest.
> 
> I don't necessarly think this series should be reworked but this is
> starting to be a lot of code duplication.
> 
> Raju, maybe you can re-use at least the generic packet generation
> functions (i.e net_tst_get_skb() 

Sure Maxime. The net_test_get_skb() is currently not exported, let me 
see if these can be re-used.

Thanks,
Raju

> 
> Maxime


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ