Mark McLoughlin 0a888fd1f6 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 <markmc@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (use netdev_priv)
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-11-16 22:39:18 -08:00
..
2008-11-06 00:50:56 -05:00
2008-11-16 00:36:08 -08:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-07-18 17:54:17 -07:00
2008-10-09 12:22:38 -07:00
2008-11-12 16:03:05 -08:00
2008-11-12 16:02:45 -08:00
2008-08-13 16:05:38 -07:00
2008-08-13 16:05:37 -07:00
2008-08-13 16:05:37 -07:00
2008-08-13 16:05:37 -07:00
2008-09-03 14:38:00 -07:00
2008-09-22 19:27:10 -07:00
2008-10-27 17:06:18 -07:00
2008-11-16 12:41:35 -08:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-07-25 15:44:44 +10:00
2008-08-14 04:26:38 -04:00
2008-10-27 17:06:18 -07:00
2008-10-08 19:51:33 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-07-20 17:12:34 -07:00
2008-07-20 17:12:34 -07:00
2008-10-17 02:38:35 +11:00
2008-10-27 17:06:18 -07:00
2008-11-10 15:11:56 -05:00
2008-11-10 15:11:56 -05:00
2008-10-27 17:06:18 -07:00
2008-08-07 02:20:57 -04:00
2008-10-27 17:06:18 -07:00
2008-08-07 01:55:50 -04:00
2008-10-22 06:22:13 -04:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-08-29 02:13:33 -07:00
2008-08-29 02:14:29 -07:00
2008-08-29 02:14:43 -07:00
2008-10-27 17:06:18 -07:00
2008-11-03 16:55:44 -08:00
2008-05-30 22:18:02 -04:00
2008-10-28 23:02:33 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00
2008-10-27 17:06:18 -07:00