make -C tools/testing/selftests TARGETS="drivers/net" TEST_PROGS=xdp.py TEEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing/wt-22/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing/wt-22/tools/testing/selftests/drivers/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing/wt-22/tools/testing/selftests/drivers/net' make[1]: Entering directory '/home/virtme/testing/wt-22/tools/testing/selftests/net/lib' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing/wt-22/tools/testing/selftests/net/lib' make[1]: Entering directory '/home/virtme/testing/wt-22/tools/testing/selftests/drivers/net' TAP version 13 1..1 # overriding timeout to 360 # selftests: drivers/net: xdp.py # TAP version 13 # 1..13 # ok 1 xdp.test_xdp_native_pass_sb # # Check| At /home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py, line 245, in test_xdp_native_pass_mb: # # Check| _test_pass(cfg, bpf_info, 8000) # # Check| At /home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py, line 217, in _test_pass: # # Check| ksft_eq(_test_udp(cfg, port, msg_sz), True, "UDP packet exchange failed") # # Check failed False != True UDP packet exchange failed # # Check| At /home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py, line 245, in test_xdp_native_pass_mb: # # Check| _test_pass(cfg, bpf_info, 8000) # # Check| At /home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py, line 220, in _test_pass: # # Check| ksft_ne(stats[XDPStats.RX.value], 0, "RX stats should not be zero") # # Check failed 0 == 0 RX stats should not be zero # not ok 2 xdp.test_xdp_native_pass_mb # ok 3 xdp.test_xdp_native_drop_sb # ok 4 xdp.test_xdp_native_drop_mb # ok 5 xdp.test_xdp_native_tx_sb # ok 6 xdp.test_xdp_native_tx_mb # # Failed run: pkt_sz 2048, offset 32. Last successful run: pkt_sz 2048, offset 16. Reason: Adjustment failed # ok 7 xdp.test_xdp_native_adjst_tail_grow_data # ok 8 xdp.test_xdp_native_adjst_tail_shrnk_data # # hds-thresh not supported. Using default: 1500 # # Failed run: pkt_sz 512, offset -256. Last successful run: pkt_sz 512, offset -128. Reason: Adjustment failed # ok 9 xdp.test_xdp_native_adjst_head_grow_data # # hds-thresh not supported. Using default: 1500 # # Failed run: pkt_sz (2048) > HDS threshold (1500) and offset 64 > 48 # ok 10 xdp.test_xdp_native_adjst_head_shrnk_data # # Before close stats: {'rx': {'bytes': 292705588, 'packets': 199395, 'errors': 0, 'dropped': 2014, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 5085713, 'packets': 21746, 'errors': 0, 'dropped': 5, 'carrier_errors': 0, 'collisions': 0}} # # Before far stats: {'rx': {'bytes': 5061973, 'packets': 21750, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 278376624, 'packets': 25597, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0}} # # Tx cmd: 1.043811559677124 # # After close stats: {'rx': {'bytes': 292833588, 'packets': 201395, 'errors': 0, 'dropped': 2014, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 5085713, 'packets': 21746, 'errors': 0, 'dropped': 5, 'carrier_errors': 0, 'collisions': 0}} # # After far stats: {'rx': {'bytes': 5061973, 'packets': 21750, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 278504624, 'packets': 27597, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0}} # # Exception| Traceback (most recent call last): # # Exception| File "/home/virtme/testing/wt-22/tools/testing/selftests/net/lib/py/ksft.py", line 254, in ksft_run # # Exception| case(*args) # # Exception| File "/home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py", line 751, in test_xdp_native_qstats_pass # # Exception| _test_xdp_native_ifc_stats(cfg, XDPAction.PASS) # # Exception| File "/home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py", line 734, in _test_xdp_native_ifc_stats # # Exception| cfg.ethnl.channels_set({'header': {'dev-index': cfg.ifindex}, # # Exception| File "/home/virtme/testing/wt-22/tools/net/ynl/pyynl/lib/ynl.py", line 1159, in _op # # Exception| return self._ops(ops)[0] # # Exception| File "/home/virtme/testing/wt-22/tools/net/ynl/pyynl/lib/ynl.py", line 1115, in _ops # # Exception| raise NlError(nl_msg) # # Exception| net.ynl.pyynl.lib.ynl.NlError: Netlink error: Invalid argument # not ok 11 xdp.test_xdp_native_qstats_pass # # Before close stats: {'rx': {'bytes': 292833948, 'packets': 201399, 'errors': 0, 'dropped': 2014, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 5086153, 'packets': 21750, 'errors': 0, 'dropped': 5, 'carrier_errors': 0, 'collisions': 0}} # # Before far stats: {'rx': {'bytes': 5062413, 'packets': 21754, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 278504624, 'packets': 27597, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0}} # # Tx cmd: 0.966256856918335 # # After close stats: {'rx': {'bytes': 292961948, 'packets': 203399, 'errors': 0, 'dropped': 4014, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 5086153, 'packets': 21750, 'errors': 0, 'dropped': 5, 'carrier_errors': 0, 'collisions': 0}} # # After far stats: {'rx': {'bytes': 5062413, 'packets': 21754, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 278632624, 'packets': 29597, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0}} # # Exception| Traceback (most recent call last): # # Exception| File "/home/virtme/testing/wt-22/tools/testing/selftests/net/lib/py/ksft.py", line 254, in ksft_run # # Exception| case(*args) # # Exception| File "/home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py", line 759, in test_xdp_native_qstats_drop # # Exception| _test_xdp_native_ifc_stats(cfg, XDPAction.DROP) # # Exception| File "/home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py", line 734, in _test_xdp_native_ifc_stats # # Exception| cfg.ethnl.channels_set({'header': {'dev-index': cfg.ifindex}, # # Exception| File "/home/virtme/testing/wt-22/tools/net/ynl/pyynl/lib/ynl.py", line 1159, in _op # # Exception| return self._ops(ops)[0] # # Exception| File "/home/virtme/testing/wt-22/tools/net/ynl/pyynl/lib/ynl.py", line 1115, in _ops # # Exception| raise NlError(nl_msg) # # Exception| net.ynl.pyynl.lib.ynl.NlError: Netlink error: Invalid argument # not ok 12 xdp.test_xdp_native_qstats_drop # # Before close stats: {'rx': {'bytes': 292962308, 'packets': 203403, 'errors': 0, 'dropped': 4014, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 5086593, 'packets': 21754, 'errors': 0, 'dropped': 5, 'carrier_errors': 0, 'collisions': 0}} # # Before far stats: {'rx': {'bytes': 5062853, 'packets': 21758, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 278632624, 'packets': 29597, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0}} # # Tx cmd: 1.3399443626403809 # # Check| At /home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py, line 767, in test_xdp_native_qstats_tx: # # Check| _test_xdp_native_ifc_stats(cfg, XDPAction.TX) # # Check| At /home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py, line 717, in _test_xdp_native_ifc_stats: # # Check| ksft_ge(after['tx-packets'] - before['tx-packets'], 2000) # # Check failed 1999 < 2000 # # After close stats: {'rx': {'bytes': 293090308, 'packets': 205403, 'errors': 0, 'dropped': 4014, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 5238517, 'packets': 23753, 'errors': 0, 'dropped': 5, 'carrier_errors': 0, 'collisions': 0}} # # After far stats: {'rx': {'bytes': 5190853, 'packets': 23758, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0}, 'tx': {'bytes': 278760624, 'packets': 31597, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0}} # # Exception| Traceback (most recent call last): # # Exception| File "/home/virtme/testing/wt-22/tools/testing/selftests/net/lib/py/ksft.py", line 254, in ksft_run # # Exception| case(*args) # # Exception| File "/home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py", line 767, in test_xdp_native_qstats_tx # # Exception| _test_xdp_native_ifc_stats(cfg, XDPAction.TX) # # Exception| File "/home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py", line 734, in _test_xdp_native_ifc_stats # # Exception| cfg.ethnl.channels_set({'header': {'dev-index': cfg.ifindex}, # # Exception| File "/home/virtme/testing/wt-22/tools/net/ynl/pyynl/lib/ynl.py", line 1159, in _op # # Exception| return self._ops(ops)[0] # # Exception| File "/home/virtme/testing/wt-22/tools/net/ynl/pyynl/lib/ynl.py", line 1115, in _ops # # Exception| raise NlError(nl_msg) # # Exception| net.ynl.pyynl.lib.ynl.NlError: Netlink error: Invalid argument # not ok 13 xdp.test_xdp_native_qstats_tx # # Totals: pass:9 fail:4 xfail:0 xpass:0 skip:0 error:0 not ok 1 selftests: drivers/net: xdp.py # exit=1 make[1]: Leaving directory '/home/virtme/testing/wt-22/tools/testing/selftests/drivers/net' make: Leaving directory '/home/virtme/testing/wt-22/tools/testing/selftests' xx__-> echo $? 0 xx__-> echo scan > /sys/kernel/debug/kmemleak xx__-> echo scan > /sys/kernel/debug/kmemleak && cat /sys/kernel/debug/kmemleak xx__->