[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)
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>

No differences found