summaryrefslogtreecommitdiffstats
path: root/include/linux/skbuff.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-05-16 10:46:23 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-17 12:35:34 -0700
commit4930f4831b1547b52c5968e9307fe3d840d7fba0 (patch)
tree11c8520bff5181c4954df61a7082f12f441f0867 /include/linux/skbuff.h
parent5c8264435d4f6a056ac926989a827aba1961e3c8 (diff)
downloadlinux-stable-4930f4831b1547b52c5968e9307fe3d840d7fba0.tar.gz
linux-stable-4930f4831b1547b52c5968e9307fe3d840d7fba0.tar.bz2
linux-stable-4930f4831b1547b52c5968e9307fe3d840d7fba0.zip
net: allow __skb_ext_alloc to sleep
mptcp calls this from the transmit side, from process context. Allow a sleeping allocation instead of unconditional GFP_ATOMIC. Acked-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r--include/linux/skbuff.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h
index 3000c526f552..531843952809 100644
--- a/include/linux/skbuff.h
+++ b/include/linux/skbuff.h
@@ -4165,7 +4165,7 @@ struct skb_ext {
char data[] __aligned(8);
};
-struct skb_ext *__skb_ext_alloc(void);
+struct skb_ext *__skb_ext_alloc(gfp_t flags);
void *__skb_ext_set(struct sk_buff *skb, enum skb_ext_id id,
struct skb_ext *ext);
void *skb_ext_add(struct sk_buff *skb, enum skb_ext_id id);