Skip to content
Commit 0a888fd1 authored by Mark McLoughlin's avatar Mark McLoughlin Committed by David S. Miller
Browse files

virtio_net: Recycle some more rx buffer pages



Each time we re-fill the recv queue with buffers, we allocate
one too many skbs and free it again when adding fails. We should
recycle the pages allocated in this case.

A previous version of this patch made trim_pages() trim trailing
unused pages from skbs with some paged data, but this actually
caused a barely measurable slowdown.

Signed-off-by: default avatarMark McLoughlin <markmc@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (use netdev_priv)
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 908cd2da
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment