aboutsummaryrefslogtreecommitdiffstats
path: root/net/lapb/lapb_iface.c
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2016-12-23 14:37:26 +0000
committerDavid S. Miller <[email protected]>2016-12-23 18:48:54 +0000
commit56a86f84b8332afe8c6fcb4b09d09d9bf094e2db (patch)
treeae161601bc78368c4dcbc2adc6c9d45932f33c1b /net/lapb/lapb_iface.c
parentvirtio-net: correctly xmit linearized page on XDP_TX (diff)
downloadkernel-56a86f84b8332afe8c6fcb4b09d09d9bf094e2db.tar.gz
kernel-56a86f84b8332afe8c6fcb4b09d09d9bf094e2db.zip
virtio-net: fix page miscount during XDP linearizing
We don't put page during linearizing, the would cause leaking when xmit through XDP_TX or the packet exceeds PAGE_SIZE. Fix them by put page accordingly. Also decrease the number of buffers during linearizing to make sure caller can free buffers correctly when packet exceeds PAGE_SIZE. With this patch, we won't get OOM after linearize huge number of packets. Cc: John Fastabend <[email protected]> Signed-off-by: Jason Wang <[email protected]> Acked-by: John Fastabend <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions