| Newsgroups |
gmane.linux.network |
| Message-ID |
<[email protected]> |
> 2026=E5=B9=B48=E6=9C=884=E6=97=A5 04:59=EF=BC=8CJakub Kicinski =
<[email protected]> =E5=86=99=E9=81=93=EF=BC=9A
>=20
> On Mon, 3 Aug 2026 16:00:15 +0800 [email protected] wrote:
>> root @roy-System-Product-Name =E2=9E=9C =
=E2=80=A6/mirror-net-next/tools/testing/selftests =EF=87=91 =EE=9C=82 =
=EE=82=B6=EF=90=98 main=EE=82=B4 ?3 =EF=90=BA 15:54:46=20
>> =E2=9C=98 python3 ./drivers/net/stats.py
>> TAP version 13
>> 1..8
>> ok 1 stats.check_pause
>> ok 2 stats.check_fec
>> ok 3 stats.check_fec_hist
>> ok 4 stats.pkt_byte_sum
>> ok 5 stats.qstat_by_ifindex
>> ok 6 stats.check_down
>> ok 7 stats.procfs_hammer
>> # completed up/down cycles: 76
>> ok 8 stats.procfs_downup_hammer
>> # Totals: pass:8 fail:0 xfail:0 xpass:0 skip:0 error:0
>=20
> Thanks, did you set up the env variables like NETIF?
> The context you shared does not specify how you set things up..
>=20
Thanks, I just set NETIF to PF/VF(ngbe) devices. And do the tests again.
=E2=9C=98 NETIF=3Denp6s0f0 python3 -u ./drivers/net/stats.py
TAP version 13
1..8
ok 1 stats.check_pause
ok 2 stats.check_fec # SKIP FEC not supported by the device
ok 3 stats.check_fec_hist # SKIP FEC not supported by the device
ok 4 stats.pkt_byte_sum
ok 5 stats.qstat_by_ifindex
ok 6 stats.check_down
ok 7 stats.procfs_hammer
# completed up/down cycles: 50
ok 8 stats.procfs_downup_hammer
# Totals: pass:6 fail:0 xfail:0 xpass:0 skip:2 error:0
dmesg -w
=E2=80=A6=E2=80=A6
[1283721.111104] ngbe 0000:06:00.0: removed PHC on enp6s0f0
[1283721.187152] ngbe 0000:06:00.0 enp6s0f0: PHY [ngbe-600:00] driver =
[Generic FE-GE Realtek PHY] (irq=3DPOLL)
[1283721.187455] ngbe 0000:06:00.0: registered PHC device on enp6s0f0
[1283721.187496] ngbe 0000:06:00.0 enp6s0f0: configuring for =
phy/rgmii-rxid link mode
[1283721.262749] ngbe 0000:06:00.0: removed PHC on enp6s0f0
[1283721.286142] ngbe 0000:06:00.0 enp6s0f0: PHY [ngbe-600:00] driver =
[Generic FE-GE Realtek PHY] (irq=3DPOLL)
[1283721.286289] ngbe 0000:06:00.0: registered PHC device on enp6s0f0
[1283721.286329] ngbe 0000:06:00.0 enp6s0f0: configuring for =
phy/rgmii-rxid link mode
[1283721.309968] ngbe 0000:06:00.0: removed PHC on enp6s0f0
[1283721.386142] ngbe 0000:06:00.0 enp6s0f0: PHY [ngbe-600:00] driver =
[Generic FE-GE Realtek PHY] (irq=3DPOLL)
[1283721.386389] ngbe 0000:06:00.0: registered PHC device on enp6s0f0
[1283721.386430] ngbe 0000:06:00.0 enp6s0f0: configuring for =
phy/rgmii-rxid link mode
[1283721.460411] ngbe 0000:06:00.0: removed PHC on enp6s0f0
[1283721.484139] ngbe 0000:06:00.0 enp6s0f0: PHY [ngbe-600:00] driver =
[Generic FE-GE Realtek PHY] (irq=3DPOLL)
[1283721.484255] ngbe 0000:06:00.0: registered PHC device on enp6s0f0
[1283721.484295] ngbe 0000:06:00.0 enp6s0f0: configuring for =
phy/rgmii-rxid link mode
[1283721.506989] ngbe 0000:06:00.0: removed PHC on enp6s0f0
[1283721.583146] ngbe 0000:06:00.0 enp6s0f0: PHY [ngbe-600:00] driver =
[Generic FE-GE Realtek PHY] (irq=3DPOLL)
[1283721.583446] ngbe 0000:06:00.0: registered PHC device on enp6s0f0
[1283721.583487] ngbe 0000:06:00.0 enp6s0f0: configuring for =
phy/rgmii-rxid link mode
[1283724.663809] ngbe 0000:06:00.0 enp6s0f0: Link is Up - 1Gbps/Full - =
flow control rx/tx
[1283724.855515] ngbevf 0000:07:00.4 enp6s0f0v1: Link is Up - 1Gbps
[1283724.919544] ngbevf 0000:07:00.0 enp6s0f0v0: Link is Up - 1Gbps
[1283726.903575] ngbevf 0000:07:00.4 enp6s0f0v1: Link is Down
[1283727.927585] ngbevf 0000:07:00.4 enp6s0f0v1: Link is Up - 1Gbps
=E2=9C=98 NETIF=3Denp6s0f0v0 python3 -u ./drivers/net/stats.py
TAP version 13
1..8
ok 1 stats.check_pause # SKIP pause not supported by the device
ok 2 stats.check_fec # SKIP FEC not supported by the device
ok 3 stats.check_fec_hist # SKIP FEC not supported by the device
ok 4 stats.pkt_byte_sum
ok 5 stats.qstat_by_ifindex
ok 6 stats.check_down
ok 7 stats.procfs_hammer
# Exception| Traceback (most recent call last):
# Exception| File =
"/root/Work/mirror-net-next/tools/testing/selftests/net/lib/py/ksft.py", =
line 420, in ksft_run
# Exception| func(*args)
# Exception| ~~~~^^^^^^^
# Exception| File =
"/root/Work/mirror-net-next/tools/testing/selftests/net/lib/py/ksft.py", =
line 257, in wrapper
# Exception| return func(*args, **kwargs)
# Exception| File =
"/root/Work/mirror-net-next/tools/testing/selftests/./drivers/net/stats.py=
", line 268, in procfs_downup_hammer
# Exception| channels =3D ethnl.channels_get({'header': =
{'dev-index': cfg.ifindex}})
# Exception| File =
"/root/Work/mirror-net-next/tools/net/ynl/pyynl/lib/ynl.py", line 1440, =
in _op
# Exception| return self._ops(ops)[0]
# Exception| ~~~~~~~~~^^^^^
# Exception| File =
"/root/Work/mirror-net-next/tools/net/ynl/pyynl/lib/ynl.py", line 1397, =
in _ops
# Exception| raise NlError(nl_msg)
# Exception| net.ynl.pyynl.lib.ynl.NlError: Netlink error: Operation not =
supported
# Exception|=20
not ok 8 stats.procfs_downup_hammer
# Totals: pass:4 fail:1 xfail:0 xpass:0 skip:3 error:0
Dmesg -w
[1283852.025298] ngbevf 0000:07:00.0 enp6s0f0v0: Link is Up - 1Gbps
[1283869.049493] ngbevf 0000:07:00.0 enp6s0f0v0: Link is Up - 1Gbps