1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Thu, 28 Jan 2016 15:16:35 +0100
3 Subject: [PATCH] backports: add skb_free_frag()
5 Signed-off-by: Felix Fietkau <nbd@nbd.name>
8 --- a/backport-include/linux/skbuff.h
9 +++ b/backport-include/linux/skbuff.h
10 @@ -300,4 +300,11 @@ int skb_ensure_writable(struct sk_buff *
12 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0) */
14 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,2,0)
15 +static inline void skb_free_frag(void *data)
17 + put_page(virt_to_head_page(data));
21 #endif /* __BACKPORT_SKBUFF_H */