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 # 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 16. Last successful run: pkt_sz 2048, offset 1. 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': 373372440, 'packets': 253005, 'errors': 0, 'dropped': 2015, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0}, 'tx': {'bytes': 5146973, 'packets': 26219, 'errors': 0, 'dropped': 4, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 36}} # # Before far stats: {'rx': {'bytes': 5123303, 'packets': 26224, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0, 'otherhost': 42}, 'tx': {'bytes': 355042604, 'packets': 30095, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 2}} # # Tx cmd: 3.6989359855651855 # # After close stats: {'rx': {'bytes': 373500440, 'packets': 255005, 'errors': 0, 'dropped': 2015, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0}, 'tx': {'bytes': 5146973, 'packets': 26219, 'errors': 0, 'dropped': 4, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 36}} # # After far stats: {'rx': {'bytes': 5123303, 'packets': 26224, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0, 'otherhost': 42}, 'tx': {'bytes': 355170604, 'packets': 32095, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 2}} # # 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 758, 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 741, 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 1150, in _op # # Exception| return self._ops(ops)[0] # # Exception| File "/home/virtme/testing/wt-22/tools/net/ynl/pyynl/lib/ynl.py", line 1106, 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': 373500800, 'packets': 255009, 'errors': 0, 'dropped': 2015, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0}, 'tx': {'bytes': 5147413, 'packets': 26223, 'errors': 0, 'dropped': 4, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 36}} # # Before far stats: {'rx': {'bytes': 5123743, 'packets': 26228, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0, 'otherhost': 42}, 'tx': {'bytes': 355170604, 'packets': 32095, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 2}} # # Tx cmd: 3.645749807357788 # # After close stats: {'rx': {'bytes': 373628800, 'packets': 257009, 'errors': 0, 'dropped': 4015, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0}, 'tx': {'bytes': 5147413, 'packets': 26223, 'errors': 0, 'dropped': 4, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 36}} # # After far stats: {'rx': {'bytes': 5123743, 'packets': 26228, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0, 'otherhost': 42}, 'tx': {'bytes': 355298604, 'packets': 34095, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 2}} # # 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 766, 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 741, 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 1150, in _op # # Exception| return self._ops(ops)[0] # # Exception| File "/home/virtme/testing/wt-22/tools/net/ynl/pyynl/lib/ynl.py", line 1106, 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': 373629324, 'packets': 257015, 'errors': 0, 'dropped': 4015, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0}, 'tx': {'bytes': 5148017, 'packets': 26229, 'errors': 0, 'dropped': 4, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 36}} # # Before far stats: {'rx': {'bytes': 5124347, 'packets': 26234, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0, 'otherhost': 42}, 'tx': {'bytes': 355298768, 'packets': 34097, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 2}} # # Tx cmd: 4.418701648712158 # # Check| At /home/virtme/testing/wt-22/tools/testing/selftests/drivers/net/./xdp.py, line 774, 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 724, in _test_xdp_native_ifc_stats: # # Check| ksft_ge(after['tx-packets'] - before['tx-packets'], 2000) # # Check failed 1997 < 2000 # # After close stats: {'rx': {'bytes': 373757410, 'packets': 259016, 'errors': 0, 'dropped': 4015, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0}, 'tx': {'bytes': 5299791, 'packets': 28226, 'errors': 0, 'dropped': 4, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 36}} # # After far stats: {'rx': {'bytes': 5252425, 'packets': 28235, 'errors': 0, 'dropped': 0, 'over_errors': 0, 'multicast': 0, 'length_errors': 0, 'crc_errors': 0, 'frame_errors': 0, 'fifo_errors': 0, 'missed_errors': 0, 'otherhost': 42}, 'tx': {'bytes': 355426854, 'packets': 36098, 'errors': 0, 'dropped': 0, 'carrier_errors': 0, 'collisions': 0, 'aborted_errors': 0, 'fifo_errors': 0, 'window_errors': 0, 'heartbeat_errors': 0, 'carrier_changes': 2}} # # 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 774, 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 741, 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 1150, in _op # # Exception| return self._ops(ops)[0] # # Exception| File "/home/virtme/testing/wt-22/tools/net/ynl/pyynl/lib/ynl.py", line 1106, 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:10 fail:3 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__->