diff options
Diffstat (limited to 'include/linux/skbuff.h')
| -rw-r--r-- | include/linux/skbuff.h | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/linux/skbuff.h b/include/linux/skbuff.h index b33a3a1f205e..6a2c34e6d962 100644 --- a/include/linux/skbuff.h +++ b/include/linux/skbuff.h | |||
| @@ -589,9 +589,6 @@ static inline struct sk_buff *alloc_skb_fclone(unsigned int size, | |||
| 589 | return __alloc_skb(size, priority, SKB_ALLOC_FCLONE, NUMA_NO_NODE); | 589 | return __alloc_skb(size, priority, SKB_ALLOC_FCLONE, NUMA_NO_NODE); |
| 590 | } | 590 | } |
| 591 | 591 | ||
| 592 | extern void skb_recycle(struct sk_buff *skb); | ||
| 593 | extern bool skb_recycle_check(struct sk_buff *skb, int skb_size); | ||
| 594 | |||
| 595 | extern struct sk_buff *skb_morph(struct sk_buff *dst, struct sk_buff *src); | 592 | extern struct sk_buff *skb_morph(struct sk_buff *dst, struct sk_buff *src); |
| 596 | extern int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask); | 593 | extern int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask); |
| 597 | extern struct sk_buff *skb_clone(struct sk_buff *skb, | 594 | extern struct sk_buff *skb_clone(struct sk_buff *skb, |
| @@ -2645,27 +2642,6 @@ static inline void skb_checksum_none_assert(const struct sk_buff *skb) | |||
| 2645 | 2642 | ||
| 2646 | bool skb_partial_csum_set(struct sk_buff *skb, u16 start, u16 off); | 2643 | bool skb_partial_csum_set(struct sk_buff *skb, u16 start, u16 off); |
| 2647 | 2644 | ||
| 2648 | static inline bool skb_is_recycleable(const struct sk_buff *skb, int skb_size) | ||
| 2649 | { | ||
| 2650 | if (irqs_disabled()) | ||
| 2651 | return false; | ||
| 2652 | |||
| 2653 | if (skb_shinfo(skb)->tx_flags & SKBTX_DEV_ZEROCOPY) | ||
| 2654 | return false; | ||
| 2655 | |||
| 2656 | if (skb_is_nonlinear(skb) || skb->fclone != SKB_FCLONE_UNAVAILABLE) | ||
| 2657 | return false; | ||
| 2658 | |||
| 2659 | skb_size = SKB_DATA_ALIGN(skb_size + NET_SKB_PAD); | ||
| 2660 | if (skb_end_offset(skb) < skb_size) | ||
| 2661 | return false; | ||
| 2662 | |||
| 2663 | if (skb_shared(skb) || skb_cloned(skb)) | ||
| 2664 | return false; | ||
| 2665 | |||
| 2666 | return true; | ||
| 2667 | } | ||
| 2668 | |||
| 2669 | /** | 2645 | /** |
| 2670 | * skb_head_is_locked - Determine if the skb->head is locked down | 2646 | * skb_head_is_locked - Determine if the skb->head is locked down |
| 2671 | * @skb: skb to check | 2647 | * @skb: skb to check |
