aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/test_adjust_tail.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2018-04-18bpf: adding tests for bpf_xdp_adjust_tailNikita V. Shirokov1-0/+30
adding selftests for bpf_xdp_adjust_tail helper. in this synthetic test we are testing that 1) if data_end < data helper will return EINVAL 2) for normal use case packet's length would be reduced. Signed-off-by: Nikita V. Shirokov <tehnerd@tehnerd.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>