[PATCH v2 2/2] test: net: add IP defragmentation duplicate-fragment regression test

Simon Glass sjg at chromium.org
Sun Jun 14 14:16:31 CEST 2026


Hi Mateusz,

On 2026-06-10T14:25:33, Mateusz Furdyna <mateusz.furdyna at nokia.com> 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 <mateusz.furdyna at nokia.com>
>
> test/dm/Makefile     |  1 +
>  test/dm/net_defrag.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 83 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

> 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


More information about the U-Boot mailing list