]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
[NET] skbuff: Add skb_cow_head
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 16 Sep 2007 23:21:16 +0000 (16:21 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 16 Sep 2007 23:21:16 +0000 (16:21 -0700)
commitd9cc20484e5e48c6a5deb4387c20fd45bfbdde8c
treef0a9f05ad00b8a506abeb3b42cb3346cef7d2155
parente081e1e3ef4682802ac63b1e5e26158fb9ca9e90
[NET] skbuff: Add skb_cow_head

This patch adds an optimised version of skb_cow that avoids the copy if
the header can be modified even if the rest of the payload is cloned.

This can be used in encapsulating paths where we only need to modify the
header.  As it is, this can be used in PPPOE and bridging.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pppoe.c
include/linux/skbuff.h
net/bridge/br_netfilter.c