]> git.baikalelectronics.ru Git - kernel.git/commit
[SKBUFF]: Add skb_morph
authorHerbert Xu <herbert@gondor.apana.org.au>
Sun, 14 Oct 2007 07:37:52 +0000 (00:37 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 15 Oct 2007 19:26:24 +0000 (12:26 -0700)
commit30b2b5f5a6ad09a9701c22138cb23cc411885123
tree05d74698e2be2ac052fca3132e830c524887a5fd
parent0b99b84d732e5a347c45f15c00b9c0b77171a7c8
[SKBUFF]: Add skb_morph

This patch creates a new function skb_morph that's just like skb_clone
except that it lets user provide the spare skb that will be overwritten
by the one that's to be cloned.

This will be used by IP fragment reassembly so that we get back the same
skb that went in last (rather than the head skb that we get now which
requires us to carry around double pointers all over the place).

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