]> git.karo-electronics.de Git - linux-beck.git/commit
net: netdev_alloc_skb() use build_skb()
authorEric Dumazet <edumazet@google.com>
Thu, 17 May 2012 07:34:16 +0000 (07:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 May 2012 19:52:40 +0000 (15:52 -0400)
commita1c7fff7e18f59e684e07b0f9a770561cd39f395
tree99b006ffc7423205ded8616a21eb955f1fe046dd
parent1de5a71c3e6eae2fbf15e9a9e13a8fc269bb82bc
net: netdev_alloc_skb() use build_skb()

netdev_alloc_skb() is used by networks driver in their RX path to
allocate an skb to receive an incoming frame.

With recent skb->head_frag infrastructure, it makes sense to change
netdev_alloc_skb() to use build_skb() and a frag allocator.

This permits a zero copy splice(socket->pipe), and better GRO or TCP
coalescing.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c