Lines Matching refs:sk_buff

97 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr,  in skb_panic()
107 static void skb_over_panic(struct sk_buff *skb, unsigned int sz, void *addr) in skb_over_panic()
112 static void skb_under_panic(struct sk_buff *skb, unsigned int sz, void *addr) in skb_under_panic()
160 struct sk_buff *__alloc_skb_head(gfp_t gfp_mask, int node) in __alloc_skb_head()
162 struct sk_buff *skb; in __alloc_skb_head()
175 memset(skb, 0, offsetof(struct sk_buff, tail)); in __alloc_skb_head()
177 skb->truesize = sizeof(struct sk_buff); in __alloc_skb_head()
202 struct sk_buff *__alloc_skb(unsigned int size, gfp_t gfp_mask, in __alloc_skb()
207 struct sk_buff *skb; in __alloc_skb()
245 memset(skb, 0, offsetof(struct sk_buff, tail)); in __alloc_skb()
303 struct sk_buff *__build_skb(void *data, unsigned int frag_size) in __build_skb()
306 struct sk_buff *skb; in __build_skb()
315 memset(skb, 0, offsetof(struct sk_buff, tail)); in __build_skb()
339 struct sk_buff *build_skb(void *data, unsigned int frag_size) in build_skb()
341 struct sk_buff *skb = __build_skb(data, frag_size); in build_skb()
407 struct sk_buff *__netdev_alloc_skb(struct net_device *dev, unsigned int len, in __netdev_alloc_skb()
412 struct sk_buff *skb; in __netdev_alloc_skb()
476 struct sk_buff *__napi_alloc_skb(struct napi_struct *napi, unsigned int len, in __napi_alloc_skb()
480 struct sk_buff *skb; in __napi_alloc_skb()
523 void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off, in skb_add_rx_frag()
533 void skb_coalesce_rx_frag(struct sk_buff *skb, int i, int size, in skb_coalesce_rx_frag()
545 static void skb_drop_list(struct sk_buff **listp) in skb_drop_list()
551 static inline void skb_drop_fraglist(struct sk_buff *skb) in skb_drop_fraglist()
556 static void skb_clone_fraglist(struct sk_buff *skb) in skb_clone_fraglist()
558 struct sk_buff *list; in skb_clone_fraglist()
564 static void skb_free_head(struct sk_buff *skb) in skb_free_head()
574 static void skb_release_data(struct sk_buff *skb) in skb_release_data()
608 static void kfree_skbmem(struct sk_buff *skb) in kfree_skbmem()
638 static void skb_release_head_state(struct sk_buff *skb) in skb_release_head_state()
657 static void skb_release_all(struct sk_buff *skb) in skb_release_all()
673 void __kfree_skb(struct sk_buff *skb) in __kfree_skb()
687 void kfree_skb(struct sk_buff *skb) in kfree_skb()
700 void kfree_skb_list(struct sk_buff *segs) in kfree_skb_list()
703 struct sk_buff *next = segs->next; in kfree_skb_list()
718 void skb_tx_error(struct sk_buff *skb) in skb_tx_error()
739 void consume_skb(struct sk_buff *skb) in consume_skb()
754 BUILD_BUG_ON(offsetof(struct sk_buff, field) < \
755 offsetof(struct sk_buff, headers_start)); \
756 BUILD_BUG_ON(offsetof(struct sk_buff, field) > \
757 offsetof(struct sk_buff, headers_end)); \
759 static void __copy_skb_header(struct sk_buff *new, const struct sk_buff *old) in __copy_skb_header()
777 offsetof(struct sk_buff, headers_end) - in __copy_skb_header()
778 offsetof(struct sk_buff, headers_start)); in __copy_skb_header()
816 static struct sk_buff *__skb_clone(struct sk_buff *n, struct sk_buff *skb) in __skb_clone()
856 struct sk_buff *skb_morph(struct sk_buff *dst, struct sk_buff *src) in skb_morph()
878 int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask) in skb_copy_ubufs()
938 struct sk_buff *skb_clone(struct sk_buff *skb, gfp_t gfp_mask) in skb_clone()
943 struct sk_buff *n; in skb_clone()
968 static void skb_headers_offset_update(struct sk_buff *skb, int off) in skb_headers_offset_update()
983 static void copy_skb_header(struct sk_buff *new, const struct sk_buff *old) in copy_skb_header()
992 static inline int skb_alloc_rx_flag(const struct sk_buff *skb) in skb_alloc_rx_flag()
1016 struct sk_buff *skb_copy(const struct sk_buff *skb, gfp_t gfp_mask) in skb_copy()
1020 struct sk_buff *n = __alloc_skb(size, gfp_mask, in skb_copy()
1056 struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom, in __pskb_copy_fclone()
1061 struct sk_buff *n = __alloc_skb(size, gfp_mask, flags, NUMA_NO_NODE); in __pskb_copy_fclone()
1119 int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, in pskb_expand_head()
1198 struct sk_buff *skb_realloc_headroom(struct sk_buff *skb, unsigned int headroom) in skb_realloc_headroom()
1200 struct sk_buff *skb2; in skb_realloc_headroom()
1235 struct sk_buff *skb_copy_expand(const struct sk_buff *skb, in skb_copy_expand()
1242 struct sk_buff *n = __alloc_skb(newheadroom + skb->len + newtailroom, in skb_copy_expand()
1288 int skb_pad(struct sk_buff *skb, int pad) in skb_pad()
1335 unsigned char *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len) in pskb_put()
1354 unsigned char *skb_put(struct sk_buff *skb, unsigned int len) in skb_put()
1375 unsigned char *skb_push(struct sk_buff *skb, unsigned int len) in skb_push()
1395 unsigned char *skb_pull(struct sk_buff *skb, unsigned int len) in skb_pull()
1410 void skb_trim(struct sk_buff *skb, unsigned int len) in skb_trim()
1420 int ___pskb_trim(struct sk_buff *skb, unsigned int len) in ___pskb_trim()
1422 struct sk_buff **fragp; in ___pskb_trim()
1423 struct sk_buff *frag; in ___pskb_trim()
1463 struct sk_buff *nfrag; in ___pskb_trim()
1528 unsigned char *__pskb_pull_tail(struct sk_buff *skb, int delta) in __pskb_pull_tail()
1569 struct sk_buff *list = skb_shinfo(skb)->frag_list; in __pskb_pull_tail()
1570 struct sk_buff *clone = NULL; in __pskb_pull_tail()
1571 struct sk_buff *insp = NULL; in __pskb_pull_tail()
1660 int skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len) in skb_copy_bits()
1663 struct sk_buff *frag_iter; in skb_copy_bits()
1841 static bool __skb_splice_bits(struct sk_buff *skb, struct pipe_inode_info *pipe, in __skb_splice_bits()
1902 int skb_splice_bits(struct sk_buff *skb, struct sock *sk, unsigned int offset, in skb_splice_bits()
1919 struct sk_buff *frag_iter; in skb_splice_bits()
1961 int skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len) in skb_store_bits()
1964 struct sk_buff *frag_iter; in skb_store_bits()
2034 __wsum __skb_checksum(const struct sk_buff *skb, int offset, int len, in __skb_checksum()
2039 struct sk_buff *frag_iter; in __skb_checksum()
2105 __wsum skb_checksum(const struct sk_buff *skb, int offset, in skb_checksum()
2119 __wsum skb_copy_and_csum_bits(const struct sk_buff *skb, int offset, in skb_copy_and_csum_bits()
2124 struct sk_buff *frag_iter; in skb_copy_and_csum_bits()
2204 skb_zerocopy_headlen(const struct sk_buff *from) in skb_zerocopy_headlen()
2239 skb_zerocopy(struct sk_buff *to, struct sk_buff *from, int len, int hlen) in skb_zerocopy()
2294 void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to) in skb_copy_and_csum_dev()
2330 struct sk_buff *skb_dequeue(struct sk_buff_head *list) in skb_dequeue()
2333 struct sk_buff *result; in skb_dequeue()
2350 struct sk_buff *skb_dequeue_tail(struct sk_buff_head *list) in skb_dequeue_tail()
2353 struct sk_buff *result; in skb_dequeue_tail()
2372 struct sk_buff *skb; in skb_queue_purge()
2389 void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk) in skb_queue_head()
2410 void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk) in skb_queue_tail()
2430 void skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) in skb_unlink()
2450 void skb_append(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list) in skb_append()
2472 void skb_insert(struct sk_buff *old, struct sk_buff *newsk, struct sk_buff_head *list) in skb_insert()
2482 static inline void skb_split_inside_header(struct sk_buff *skb, in skb_split_inside_header()
2483 struct sk_buff* skb1, in skb_split_inside_header()
2503 static inline void skb_split_no_header(struct sk_buff *skb, in skb_split_no_header()
2504 struct sk_buff* skb1, in skb_split_no_header()
2550 void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len) in skb_split()
2566 static int skb_prepare_for_shift(struct sk_buff *skb) in skb_prepare_for_shift()
2589 int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen) in skb_shift()
2715 void skb_prepare_seq_read(struct sk_buff *skb, unsigned int from, in skb_prepare_seq_read()
2858 unsigned int skb_find_text(struct sk_buff *skb, unsigned int from, in skb_find_text()
2885 int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb, in skb_append_datato_frags()
2887 int len, int odd, struct sk_buff *skb), in skb_append_datato_frags()
2932 int skb_append_pagefrags(struct sk_buff *skb, struct page *page, in skb_append_pagefrags()
2961 static unsigned char *skb_push_rcsum(struct sk_buff *skb, unsigned len) in skb_push_rcsum()
2979 unsigned char *skb_pull_rcsum(struct sk_buff *skb, unsigned int len) in skb_pull_rcsum()
2999 struct sk_buff *skb_segment(struct sk_buff *head_skb, in skb_segment()
3002 struct sk_buff *segs = NULL; in skb_segment()
3003 struct sk_buff *tail = NULL; in skb_segment()
3004 struct sk_buff *list_skb = skb_shinfo(head_skb)->frag_list; in skb_segment()
3008 struct sk_buff *frag_skb = head_skb; in skb_segment()
3034 struct sk_buff *nskb; in skb_segment()
3225 int skb_gro_receive(struct sk_buff **head, struct sk_buff *skb) in skb_gro_receive()
3231 struct sk_buff *lp, *p = *head; in skb_gro_receive()
3295 delta_truesize = skb->truesize - SKB_DATA_ALIGN(sizeof(struct sk_buff)); in skb_gro_receive()
3339 sizeof(struct sk_buff), in skb_init()
3361 __skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) in __skb_to_sgvec()
3365 struct sk_buff *frag_iter; in __skb_to_sgvec()
3439 int skb_to_sgvec_nomark(struct sk_buff *skb, struct scatterlist *sg, in skb_to_sgvec_nomark()
3446 int skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) in skb_to_sgvec()
3473 int skb_cow_data(struct sk_buff *skb, int tailbits, struct sk_buff **trailer) in skb_cow_data()
3477 struct sk_buff *skb1, **skb_p; in skb_cow_data()
3533 struct sk_buff *skb2; in skb_cow_data()
3566 static void sock_rmem_free(struct sk_buff *skb) in sock_rmem_free()
3576 int sock_queue_err_skb(struct sock *sk, struct sk_buff *skb) in sock_queue_err_skb()
3597 struct sk_buff *sock_dequeue_err_skb(struct sock *sk) in sock_dequeue_err_skb()
3600 struct sk_buff *skb, *skb_next; in sock_dequeue_err_skb()
3631 struct sk_buff *skb_clone_sk(struct sk_buff *skb) in skb_clone_sk()
3634 struct sk_buff *clone; in skb_clone_sk()
3652 static void __skb_complete_tx_timestamp(struct sk_buff *skb, in __skb_complete_tx_timestamp()
3691 void skb_complete_tx_timestamp(struct sk_buff *skb, in skb_complete_tx_timestamp()
3709 void __skb_tstamp_tx(struct sk_buff *orig_skb, in __skb_tstamp_tx()
3713 struct sk_buff *skb; in __skb_tstamp_tx()
3744 void skb_tstamp_tx(struct sk_buff *orig_skb, in skb_tstamp_tx()
3752 void skb_complete_wifi_ack(struct sk_buff *skb, bool acked) in skb_complete_wifi_ack()
3789 bool skb_partial_csum_set(struct sk_buff *skb, u16 start, u16 off) in skb_partial_csum_set()
3805 static int skb_maybe_pull_tail(struct sk_buff *skb, unsigned int len, in skb_maybe_pull_tail()
3828 static __sum16 *skb_checksum_setup_ip(struct sk_buff *skb, in skb_checksum_setup_ip()
3862 static int skb_checksum_setup_ipv4(struct sk_buff *skb, bool recalculate) in skb_checksum_setup_ipv4()
3910 static int skb_checksum_setup_ipv6(struct sk_buff *skb, bool recalculate) in skb_checksum_setup_ipv6()
4015 int skb_checksum_setup(struct sk_buff *skb, bool recalculate) in skb_checksum_setup()
4050 static struct sk_buff *skb_checksum_maybe_trim(struct sk_buff *skb, in skb_checksum_maybe_trim()
4053 struct sk_buff *skb_chk; in skb_checksum_maybe_trim()
4090 struct sk_buff *skb_checksum_trimmed(struct sk_buff *skb, in skb_checksum_trimmed()
4092 __sum16(*skb_chkf)(struct sk_buff *skb)) in skb_checksum_trimmed()
4094 struct sk_buff *skb_chk; in skb_checksum_trimmed()
4123 void __skb_warn_lro_forwarding(const struct sk_buff *skb) in __skb_warn_lro_forwarding()
4130 void kfree_skb_partial(struct sk_buff *skb, bool head_stolen) in kfree_skb_partial()
4148 bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from, in skb_try_coalesce()
4179 delta = from->truesize - SKB_DATA_ALIGN(sizeof(struct sk_buff)); in skb_try_coalesce()
4233 void skb_scrub_packet(struct sk_buff *skb, bool xnet) in skb_scrub_packet()
4263 unsigned int skb_gso_transport_seglen(const struct sk_buff *skb) in skb_gso_transport_seglen()
4285 static struct sk_buff *skb_reorder_vlan_header(struct sk_buff *skb) in skb_reorder_vlan_header()
4298 struct sk_buff *skb_vlan_untag(struct sk_buff *skb) in skb_vlan_untag()
4338 int skb_ensure_writable(struct sk_buff *skb, int write_len) in skb_ensure_writable()
4351 static int __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci) in __skb_vlan_pop()
4383 int skb_vlan_pop(struct sk_buff *skb) in skb_vlan_pop()
4417 int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci) in skb_vlan_push()
4457 struct sk_buff *alloc_skb_with_frags(unsigned long header_len, in alloc_skb_with_frags()
4465 struct sk_buff *skb; in alloc_skb_with_frags()