Hi Mateusz,

On 2026-06-10T14:25:33, Mateusz Furdyna <[email protected]> wrote:
> test: net: add IP defragmentation duplicate-fragment regression test
>
> Add a unit test for the IP datagram reassembler (CONFIG_IP_DEFRAG) that
> covers the duplicate-last-fragment scenario.
>
> Without the fix the last fragment will re-trigger datagram delivery,
> increasing udp_rx_count to 2 and effectively failing the test; with it
> applied the test passes with udp_rx_count == 1.
>
> Signed-off-by: Mateusz Furdyna <[email protected]>
>
> test/dm/Makefile     |  1 +
>  test/dm/net_defrag.c | 82 
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 83 insertions(+)

Reviewed-by: Simon Glass <[email protected]>

> diff --git a/test/dm/net_defrag.c b/test/dm/net_defrag.c
> @@ -0,0 +1,82 @@
> +DM_TEST(dm_test_net_ip_defrag_dup_last, 0);

Just to check, does this test actually use driver model?

Regards,
Simon

Reply via email to