]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: migrate mergeable rx buffers to page frag allocators
authorMichael Dalton <mwdalton@google.com>
Mon, 28 Oct 2013 22:44:18 +0000 (15:44 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Oct 2013 03:56:46 +0000 (23:56 -0400)
commitde4826a7cfe2984a8c3420d219973d2249baf9de
tree845c49d94b0a1d749a6fab0acad4bb0700c917c8
parent10250fd3f693a7ff66feaff394e1dfd15465729e
virtio_net: migrate mergeable rx buffers to page frag allocators

The virtio_net driver's mergeable receive buffer allocator
uses 4KB packet buffers. For MTU-sized traffic, SKB truesize
is > 4KB but only ~1500 bytes of the buffer is used to store
packet data, reducing the effective TCP window size
substantially. This patch addresses the performance concerns
with mergeable receive buffers by allocating MTU-sized packet
buffers using page frag allocators. If more than MAX_SKB_FRAGS
buffers are needed, the SKB frag_list is used.

Signed-off-by: Michael Dalton <mwdalton@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c