[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6765aeeaf0b9_21de220885@john.notmuch>
Date: Fri, 20 Dec 2024 09:52:42 -0800
From: John Fastabend <john.fastabend@...il.com>
To: Cong Wang <xiyou.wangcong@...il.com>,
netdev@...r.kernel.org
Cc: bpf@...r.kernel.org,
Cong Wang <cong.wang@...edance.com>,
John Fastabend <john.fastabend@...il.com>,
Daniel Borkmann <daniel@...earbox.net>,
Zijian Zhang <zijianzhang@...edance.com>
Subject: RE: [Patch bpf v3 2/4] selftests/bpf: Add a BPF selftest for
bpf_skb_change_tail()
Cong Wang wrote:
> From: Cong Wang <cong.wang@...edance.com>
>
> As requested by Daniel, we need to add a selftest to cover
> bpf_skb_change_tail() cases in skb_verdict. Here we test trimming,
> growing and error cases, and validate its expected return values and the
> expected sizes of the payload.
>
> Cc: John Fastabend <john.fastabend@...il.com>
> Cc: Daniel Borkmann <daniel@...earbox.net>
> Cc: Zijian Zhang <zijianzhang@...edance.com>
> Signed-off-by: Cong Wang <cong.wang@...edance.com>
> ---
> .../selftests/bpf/prog_tests/sockmap_basic.c | 51 +++++++++++++++++++
> .../bpf/progs/test_sockmap_change_tail.c | 40 +++++++++++++++
> 2 files changed, 91 insertions(+)
> create mode 100644 tools/testing/selftests/bpf/progs/test_sockmap_change_tail.c
Acked-by: John Fastabend <john.fastabend@...il.com>
Powered by blists - more mailing lists