diff options
| author | Nikita V. Shirokov <tehnerd@tehnerd.com> | 2018-04-22 21:16:48 -0700 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2018-04-23 11:28:34 +0200 |
| commit | aaa6452763cf944da72f16e0736554accb364703 (patch) | |
| tree | c4e08677572a19959fc98cf0bdf433aa2ae8940c /scripts/bpf_helpers_doc.py | |
| parent | hv_netvsc: select needed ucs2_string routine (diff) | |
| download | linux-aaa6452763cf944da72f16e0736554accb364703.tar.gz linux-aaa6452763cf944da72f16e0736554accb364703.zip | |
bpf: fix virtio-net's length calc for XDP_PASS
In commit 6870de435b90 ("bpf: make virtio compatible w/
bpf_xdp_adjust_tail") i didn't account for vi->hdr_len during new
packet's length calculation after bpf_prog_run in receive_mergeable.
because of this all packets, if they were passed to the kernel,
were truncated by 12 bytes.
Fixes:6870de435b90 ("bpf: make virtio compatible w/ bpf_xdp_adjust_tail")
Reported-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Nikita V. Shirokov <tehnerd@tehnerd.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions
