[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250716073048.03e117a1@kernel.org>
Date: Wed, 16 Jul 2025 07:30:48 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Mohsin Bashir <mohsin.bashr@...il.com>
Cc: netdev@...r.kernel.org, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, pabeni@...hat.com, shuah@...nel.org, horms@...nel.org,
cratiu@...dia.com, noren@...dia.com, cjubran@...dia.com, mbloch@...dia.com,
jdamato@...tly.com, gal@...dia.com, sdf@...ichev.me, ast@...nel.org,
daniel@...earbox.net, hawk@...nel.org, john.fastabend@...il.com,
nathan@...nel.org, nick.desaulniers+lkml@...il.com, morbo@...gle.com,
justinstitt@...gle.com, bpf@...r.kernel.org,
linux-kselftest@...r.kernel.org, llvm@...ts.linux.dev
Subject: Re: [PATCH net-next V5 0/5] net: netdevsim: hook in XDP handling
On Tue, 15 Jul 2025 14:05:48 -0700 Mohsin Bashir wrote:
> This patch series add tests to validate XDP native support for PASS,
> DROP, ABORT, and TX actions, as well as headroom and tailroom adjustment.
> For adjustment tests, validate support for both the extension and
> shrinking cases across various packet sizes and offset values.
>
> The pass criteria for head/tail adjustment tests require that at-least
> one adjustment value works for at-least one packet size. This ensure
> that the variability in maximum supported head/tail adjustment offset
> across different drivers is being incorporated.
>
> The results reported in this series are based on fbnic. However, the
> series is tested against multiple other drivers including netdevism.
Not much luck, on netdevsim with a debug kernel build the test seems to
time out after 3min 30sec without printing anything.
A normal VM it doesn't time out but it seems to reliably fail as follows:
TAP version 13
1..1
# timeout set to 180
# selftests: drivers/net: xdp.py
# TAP version 13
# 1..9
# 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_mb
# # Exception| Traceback (most recent call last):
# # Exception| File "/home/virtme/testing-17/tools/testing/selftests/net/lib/py/ksft.py", line 243, in ksft_run
# # Exception| case(*args)
# # Exception| File "/home/virtme/testing-17/tools/testing/selftests/drivers/net/./xdp.py", line 466, in test_xdp_native_adjst_tail_grow_data
# # Exception| _validate_res(res, offset_lst, pkt_sz_lst)
# # Exception| File "/home/virtme/testing-17/tools/testing/selftests/drivers/net/./xdp.py", line 337, in _validate_res
# # Exception| raise KsftFailEx(f"{res['reason']}")
# # Exception| net.lib.py.ksft.KsftFailEx: Adjustment failed
# not ok 6 xdp.test_xdp_native_adjst_tail_grow_data
# ok 7 xdp.test_xdp_native_adjst_tail_shrnk_data
# # Failed run: pkt_sz 512, offset -256. Last successful run: pkt_sz 512, offset -128. Reason: Adjustment failed
# ok 8 xdp.test_xdp_native_adjst_head_grow_data
# # Exception| Traceback (most recent call last):
# # Exception| File "/home/virtme/testing-17/tools/testing/selftests/net/lib/py/ksft.py", line 243, in ksft_run
# # Exception| case(*args)
# # Exception| File "/home/virtme/testing-17/tools/testing/selftests/drivers/net/./xdp.py", line 625, in test_xdp_native_adjst_head_shrnk_data
# # Exception| _validate_res(res, offset_lst, pkt_sz_lst)
# # Exception| File "/home/virtme/testing-17/tools/testing/selftests/drivers/net/./xdp.py", line 337, in _validate_res
# # Exception| raise KsftFailEx(f"{res['reason']}")
# # Exception| net.lib.py.ksft.KsftFailEx: Data exchange failed
# not ok 9 xdp.test_xdp_native_adjst_head_shrnk_data
# # Totals: pass:7 fail:2 xfail:0 xpass:0 skip:0 error:0
not ok 1 selftests: drivers/net: xdp.py # exit=1
--
pw-bot: cr
Powered by blists - more mailing lists