summaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.h
diff options
context:
space:
mode:
authorShirley Ma <mashirle@us.ibm.com>2010-01-29 03:20:04 +0000
committerDavid S. Miller <davem@davemloft.net>2010-02-02 15:55:42 -0800
commit9ab86bbcf8be755256f0a5e994e0b38af6b4d399 (patch)
tree6de61af79e9892d192acb5ba215b9331d88c8212 /drivers/net/sky2.h
parentf9bfbebf34eab707b065116cdc9699d25ba4252a (diff)
downloadlinux-9ab86bbcf8be755256f0a5e994e0b38af6b4d399.tar.bz2
virtio_net: Defer skb allocation in receive path Date: Wed, 13 Jan 2010 12:53:38 -0800
virtio_net receives packets from its pre-allocated vring buffers, then it delivers these packets to upper layer protocols as skb buffs. So it's not necessary to pre-allocate skb for each mergable buffer, then frees extra skbs when buffers are merged into a large packet. This patch has deferred skb allocation in receiving packets for both big packets and mergeable buffers to reduce skb pre-allocations and skb frees. It frees unused buffers by calling detach_unused_buf in vring, so recv skb queue is not needed. Signed-off-by: Shirley Ma <xma@us.ibm.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.h')
0 files changed, 0 insertions, 0 deletions