Cong Wang wrote: > From: Cong Wang <cong.wang@xxxxxxxxxxxxx> > > 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@xxxxxxxxx> > Cc: Daniel Borkmann <daniel@xxxxxxxxxxxxx> > Cc: Zijian Zhang <zijianzhang@xxxxxxxxxxxxx> > Signed-off-by: Cong Wang <cong.wang@xxxxxxxxxxxxx> > --- > .../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@xxxxxxxxx>