netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v3 0/3] netdevsim: add support for PHY devices
@ 2025-07-10  6:22 Maxime Chevallier
  2025-07-10  6:22 ` [PATCH net-next v3 1/3] net: netdevsim: Add PHY support in netdevsim Maxime Chevallier
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Maxime Chevallier @ 2025-07-10  6:22 UTC (permalink / raw)
  To: davem
  Cc: Maxime Chevallier, netdev, linux-kernel, thomas.petazzoni,
	Andrew Lunn, Jakub Kicinski, Eric Dumazet, Paolo Abeni,
	Russell King, Florian Fainelli, Heiner Kallweit, Vladimir Oltean,
	Köry Maincent, Oleksij Rempel, Simon Horman, Shuah Khan,
	linux-kselftest

Hi everyone,

Here's a V3 for the netdevsim PHY support. This V3 includes :
 - A fix for a compiling issue with PHYLIB=n
 - An updated KConfig to only allow PHYLIB=y|n
 - Converted the link setting file to a bool debugfs file, relying on
   link state polling

The idea of this series is to allow attaching virtual PHY devices to
netdevsim, so that we can test PHY-related ethtool commands. This can be
extended in the future for phylib testing as well.

V2: https://lore.kernel.org/netdev/20250708115531.111326-1-maxime.chevallier@bootlin.com/
 - Fix building with PHYLIB=m
 - Use shellcheck on the shell scripts

V1: https://lore.kernel.org/netdev/20250702082806.706973-1-maxime.chevallier@bootlin.com/

Maxime Chevallier (3):
  net: netdevsim: Add PHY support in netdevsim
  selftests: ethtool: Drop the unused old_netdevs variable
  selftests: ethtool: Introduce ethernet PHY selftests on netdevsim

 drivers/net/Kconfig                           |   1 +
 drivers/net/netdevsim/Makefile                |   4 +
 drivers/net/netdevsim/dev.c                   |   2 +
 drivers/net/netdevsim/netdev.c                |   8 +
 drivers/net/netdevsim/netdevsim.h             |  25 ++
 drivers/net/netdevsim/phy.c                   | 375 ++++++++++++++++++
 .../selftests/drivers/net/netdevsim/config    |   1 +
 .../drivers/net/netdevsim/ethtool-common.sh   |  19 +-
 .../drivers/net/netdevsim/ethtool-phy.sh      |  64 +++
 9 files changed, 496 insertions(+), 3 deletions(-)
 create mode 100644 drivers/net/netdevsim/phy.c
 create mode 100755 tools/testing/selftests/drivers/net/netdevsim/ethtool-phy.sh

-- 
2.49.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-07-15 15:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-10  6:22 [PATCH net-next v3 0/3] netdevsim: add support for PHY devices Maxime Chevallier
2025-07-10  6:22 ` [PATCH net-next v3 1/3] net: netdevsim: Add PHY support in netdevsim Maxime Chevallier
2025-07-11 23:55   ` Jakub Kicinski
2025-07-15  6:08     ` Maxime Chevallier
2025-07-12 16:54   ` Andrew Lunn
2025-07-15  6:05     ` Maxime Chevallier
2025-07-15 13:23       ` Andrew Lunn
2025-07-15 13:56         ` Maxime Chevallier
2025-07-15 15:16           ` Andrew Lunn
2025-07-10  6:22 ` [PATCH net-next v3 2/3] selftests: ethtool: Drop the unused old_netdevs variable Maxime Chevallier
2025-07-10  6:22 ` [PATCH net-next v3 3/3] selftests: ethtool: Introduce ethernet PHY selftests on netdevsim Maxime Chevallier
2025-07-11 23:58   ` Jakub Kicinski
2025-07-15  5:45     ` Maxime Chevallier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).