aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorNikita V. Shirokov <[email protected]>2018-04-22 21:16:48 -0700
committerDaniel Borkmann <[email protected]>2018-04-23 11:28:34 +0200
commitaaa6452763cf944da72f16e0736554accb364703 (patch)
treec4e08677572a19959fc98cf0bdf433aa2ae8940c /lib/mpi/mpiutil.c
parent48d7a07ba355c7056e66adcdd35379d12e48252b (diff)
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 <[email protected]> Signed-off-by: Nikita V. Shirokov <[email protected]> Acked-by: Jason Wang <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions