From: Mark McLoughlin Date: Mon, 17 Nov 2008 06:39:18 +0000 (-0800) Subject: virtio_net: Recycle some more rx buffer pages X-Git-Tag: v2.6.29-rc1~581^2~698 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a888fd1f6320d1d9318c58de9bca3cef41546d6;p=pandora-kernel.git 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 Signed-off-by: Rusty Russell (use netdev_priv) Signed-off-by: David S. Miller --- Reading git-diff-tree failed