linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/3] netdevsim: add support for PHY devices
@ 2025-07-02  8:28 Maxime Chevallier
  2025-07-02  8:28 ` [PATCH net-next 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-02  8:28 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

There exist numerous ethtool commands that gets their information from
an interface's PHY. This series allows creating virtual PHY devices
attached to netdevsim, so that we can start testing these commands.

This first series adds a minimal support. The PHY that we add are only
capable of saying if the link is up or down, based on a debugfs file.

When accepted, this interface can be extended to allow testing further
commands, and in greater details.

This series also add some selftests for the "ethtool --show-phys"
command. This is a first step towards having better testability for the
ethtool netlink PHY commands, but this could also potentially be a
stepping stone for some basic phylib tests ?

Thanks,

Maxime

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/netdevsim/Makefile                |   4 +
 drivers/net/netdevsim/dev.c                   |   2 +
 drivers/net/netdevsim/netdev.c                |   3 +
 drivers/net/netdevsim/netdevsim.h             |  14 +
 drivers/net/netdevsim/phy.c                   | 387 ++++++++++++++++++
 .../selftests/drivers/net/netdevsim/config    |   1 +
 .../drivers/net/netdevsim/ethtool-common.sh   |  19 +-
 .../drivers/net/netdevsim/ethtool-phy.sh      |  64 +++
 8 files changed, 491 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-08 14:13 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-02  8:28 [PATCH net-next 0/3] netdevsim: add support for PHY devices Maxime Chevallier
2025-07-02  8:28 ` [PATCH net-next 1/3] net: netdevsim: Add PHY support in netdevsim Maxime Chevallier
2025-07-04 12:17   ` kernel test robot
2025-07-04 12:43   ` Simon Horman
2025-07-04 12:46     ` Maxime Chevallier
2025-07-08 14:01   ` Andrew Lunn
2025-07-08 14:13     ` Maxime Chevallier
2025-07-02  8:28 ` [PATCH net-next 2/3] selftests: ethtool: Drop the unused old_netdevs variable Maxime Chevallier
2025-07-07 15:22   ` Vladimir Oltean
2025-07-02  8:28 ` [PATCH net-next 3/3] selftests: ethtool: Introduce ethernet PHY selftests on netdevsim Maxime Chevallier
2025-07-04 13:20   ` Simon Horman
2025-07-04 13:32     ` Maxime Chevallier
2025-07-04 16:50       ` Simon Horman

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).