Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: Mark McLoughlin <[email protected]> Signed-off-by: Rusty Russell <[email protected]> (use netdev_priv) Signed-off-by: David S. Miller <[email protected]>
- Loading branch information