On Tue, Jan 12, 2021 at 9:49 AM Jesper Dangaard Brouer <brouer@xxxxxxxxxx> wrote: > > Adding selftest for BPF-helper bpf_check_mtu(). Making sure > it can be used from both XDP and TC. > > V11: > - Addresse nitpicks from Andrii Nakryiko > > V10: > - Remove errno non-zero test in CHECK_ATTR() > - Addresse comments from Andrii Nakryiko > > Signed-off-by: Jesper Dangaard Brouer <brouer@xxxxxxxxxx> > --- Looks good from the generic BPF selftest perspective. Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx> > tools/testing/selftests/bpf/prog_tests/check_mtu.c | 216 ++++++++++++++++++++ > tools/testing/selftests/bpf/progs/test_check_mtu.c | 198 ++++++++++++++++++ > 2 files changed, 414 insertions(+) > create mode 100644 tools/testing/selftests/bpf/prog_tests/check_mtu.c > create mode 100644 tools/testing/selftests/bpf/progs/test_check_mtu.c > [...]