Re: [PATCH v2] selftests/bpf: Validate UDP length in cls_redirect test

2025-06-07 Thread Suchit K
> I don't quite see the point. > This is a test prog. It's not supposed to be used as production code. It was marked as a TODO and so I sent a patch for it. I'm sorry I didn't think of the practical implications of it.

[PATCH v2] selftests/bpf: Validate UDP length in cls_redirect test

2025-06-02 Thread Suchit Karunakaran
From: Suchit Add validation step to ensure that the UDP payload is long enough to contain the expected GUE and UNIGUE encapsulation headers Signed-off-by: Suchit --- Changes since v2: - Rebase tools/testing/selftests/bpf/progs/test_cls_redirect.c | 8 +++- 1 file changed, 7 insertions

[PATCH] selftests/bpf: Validate UDP length in cls_redirect test

2025-06-02 Thread Suchit
Add validation step to ensure that the UDP payload is long enough to contain the expected GUE and UNIGUE encapsulation headers Signed-off-by: Suchit --- tools/testing/selftests/bpf/progs/test_cls_redirect.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/testing