skb: add helpers to allocate ext independently from sk_buff
authorPaolo Abeni <pabeni@redhat.com>
Thu, 9 Jan 2020 15:59:24 +0000 (07:59 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Jan 2020 02:41:42 +0000 (18:41 -0800)
commit8b69a803814bb8b14155ea60df83f6d57527e69e
tree92e71bf4a33294a1d0dc22f9f9529a105f6a381a
parente66b2f31a068dd67172008459678821a79e4ea24
skb: add helpers to allocate ext independently from sk_buff

Currently we can allocate the extension only after the skb,
this change allows the user to do the opposite, will simplify
allocation failure handling from MPTCP.

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/skbuff.c