diff options
Diffstat (limited to 'include/linux/skbuff.h')
-rw-r--r-- | include/linux/skbuff.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index cec0657d0d32..12e6fed73f8e 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
@@ -568,8 +568,9 @@ extern struct sk_buff *skb_clone(struct sk_buff *skb, | |||
568 | gfp_t priority); | 568 | gfp_t priority); |
569 | extern struct sk_buff *skb_copy(const struct sk_buff *skb, | 569 | extern struct sk_buff *skb_copy(const struct sk_buff *skb, |
570 | gfp_t priority); | 570 | gfp_t priority); |
571 | extern struct sk_buff *pskb_copy(struct sk_buff *skb, | 571 | extern struct sk_buff *__pskb_copy(struct sk_buff *skb, |
572 | gfp_t gfp_mask); | 572 | int headroom, gfp_t gfp_mask); |
573 | |||
573 | extern int pskb_expand_head(struct sk_buff *skb, | 574 | extern int pskb_expand_head(struct sk_buff *skb, |
574 | int nhead, int ntail, | 575 | int nhead, int ntail, |
575 | gfp_t gfp_mask); | 576 | gfp_t gfp_mask); |
@@ -1799,6 +1800,12 @@ static inline dma_addr_t skb_frag_dma_map(struct device *dev, | |||
1799 | frag->page_offset + offset, size, dir); | 1800 | frag->page_offset + offset, size, dir); |
1800 | } | 1801 | } |
1801 | 1802 | ||
1803 | static inline struct sk_buff *pskb_copy(struct sk_buff *skb, | ||
1804 | gfp_t gfp_mask) | ||
1805 | { | ||
1806 | return __pskb_copy(skb, skb_headroom(skb), gfp_mask); | ||
1807 | } | ||
1808 | |||
1802 | /** | 1809 | /** |
1803 | * skb_clone_writable - is the header of a clone writable | 1810 | * skb_clone_writable - is the header of a clone writable |
1804 | * @skb: buffer to check | 1811 | * @skb: buffer to check |