net: cleanup and document skb fclone layout
authorEric Dumazet <edumazet@google.com>
Mon, 29 Sep 2014 20:29:15 +0000 (13:29 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Oct 2014 20:34:25 +0000 (16:34 -0400)
commitd0bf4a9e92b9a93ffeeacbd7b6cb83e0ee3dc2ef
tree1ba29128caa07307632b6219c1692308ec89983a
parentb248230c34970a6c1c17c591d63b464e8d2cfc33
net: cleanup and document skb fclone layout

Lets use a proper structure to clearly document and implement
skb fast clones.

Then, we might experiment more easily alternative layouts.

This patch adds a new skb_fclone_busy() helper, used by tcp and xfrm,
to stop leaking of implementation details.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c
net/ipv4/tcp_output.c
net/xfrm/xfrm_policy.c