The netdevsim kernel module simulates network devices. In contrast to the so-called dummy kind network interfaces, netdevsims are actually virtual devices and not just network interfaces. Kernel netdevsim goes back a long time, before 5.0 IIRC. netdevsim allows testing network interface testing with multiple queues, tc/XDP BPF and limited SR-IOV API aspects, but also PTP devices, without the need for a real physical HW NIC. netdevsims support aspects, dummy network interfaces do not.
In order to run tests relying on netdevsim being available and loadable, please consider adding the following kernel modules to Github runners:
Description
The
netdevsim
kernel module simulates network devices. In contrast to the so-calleddummy
kind network interfaces, netdevsims are actually virtual devices and not just network interfaces. Kernel netdevsim goes back a long time, before 5.0 IIRC. netdevsim allows testing network interface testing with multiple queues, tc/XDP BPF and limited SR-IOV API aspects, but also PTP devices, without the need for a real physical HW NIC. netdevsims support aspects,dummy
network interfaces do not.In order to run tests relying on
netdevsim
being available and loadable, please consider adding the following kernel modules to Github runners:netdevsim
ptp_mock
psample
Platforms affected
Runner images affected
Image version and build link
Runner Image Image: ubuntu-22.04 Version: 20240624.1.0 Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240624.1/images/ubuntu/Ubuntu2204-Readme.md Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240624.1
Is it regression?
no
Expected behavior
modprobe netdevsim
succeedsActual behavior
modprobe: FATAL: Module netdevsim not found in directory /lib/modules/6.5.0-1022-azure
Repro steps
Have a Github action step: