[PATCH net-next v2 0/3] netdevsim: add support for PHY devices

Maxime Chevallier posted 3 patches 3 months ago
There is a newer version of this series
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                   | 398 ++++++++++++++++++
.../selftests/drivers/net/netdevsim/config    |   1 +
.../drivers/net/netdevsim/ethtool-common.sh   |  19 +-
.../drivers/net/netdevsim/ethtool-phy.sh      |  64 +++
8 files changed, 518 insertions(+), 3 deletions(-)
create mode 100644 drivers/net/netdevsim/phy.c
create mode 100755 tools/testing/selftests/drivers/net/netdevsim/ethtool-phy.sh
[PATCH net-next v2 0/3] netdevsim: add support for PHY devices
Posted by Maxime Chevallier 3 months ago
Hi everyone,

Here's a V2 for the netdevsim PHY support, including a bugfix for
NETDEVSIM=m as well as a round of shellcheck cleanups for
ethtool-phy.sh.

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.

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/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                   | 398 ++++++++++++++++++
 .../selftests/drivers/net/netdevsim/config    |   1 +
 .../drivers/net/netdevsim/ethtool-common.sh   |  19 +-
 .../drivers/net/netdevsim/ethtool-phy.sh      |  64 +++
 8 files changed, 518 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
Re: [PATCH net-next v2 0/3] netdevsim: add support for PHY devices
Posted by Jakub Kicinski 3 months ago
On Tue,  8 Jul 2025 13:55:27 +0200 Maxime Chevallier wrote:
> Here's a V2 for the netdevsim PHY support, including a bugfix for
> NETDEVSIM=m as well as a round of shellcheck cleanups for
> ethtool-phy.sh.
> 
> 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.

Appears to break the build for BPF CI:

https://github.com/kernel-patches/bpf/actions/runs/16150854854/job/45581507731
-- 
pw-bot: cr
Re: [PATCH net-next v2 0/3] netdevsim: add support for PHY devices
Posted by Maxime Chevallier 3 months ago
On Tue, 8 Jul 2025 13:55:53 -0700
Jakub Kicinski <kuba@kernel.org> wrote:

> On Tue,  8 Jul 2025 13:55:27 +0200 Maxime Chevallier wrote:
> > Here's a V2 for the netdevsim PHY support, including a bugfix for
> > NETDEVSIM=m as well as a round of shellcheck cleanups for
> > ethtool-phy.sh.
> > 
> > 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.  
> 
> Appears to break the build for BPF CI:
> 
> https://github.com/kernel-patches/bpf/actions/runs/16150854854/job/45581507731

aw :( I'll follow-up on that then, sorry :(

Maxime