diff options
author | Nikita V. Shirokov | 2018-04-18 06:42:22 +0200 |
---|---|---|
committer | Daniel Borkmann | 2018-04-18 23:34:17 +0200 |
commit | 0367d0a29427d5916b98cf31dfc85a8293540614 (patch) | |
tree | 1fb815b56707d8a4affc19d5741fb699bbce5aa7 /samples/bpf/xdp_adjust_tail_kern.c | |
parent | bpf: making bpf_prog_test run aware of possible data_end ptr change (diff) | |
download | kernel-qcow2-linux-0367d0a29427d5916b98cf31dfc85a8293540614.tar.gz kernel-qcow2-linux-0367d0a29427d5916b98cf31dfc85a8293540614.tar.xz kernel-qcow2-linux-0367d0a29427d5916b98cf31dfc85a8293540614.zip |
bpf: adding tests for bpf_xdp_adjust_tail
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>
Diffstat (limited to 'samples/bpf/xdp_adjust_tail_kern.c')
0 files changed, 0 insertions, 0 deletions