Lines Matching refs:sk_buff
275 SKB_DATA_ALIGN(sizeof(struct sk_buff)) + \
342 struct sk_buff *next;
343 struct sk_buff *prev;
350 struct sk_buff;
531 void (*complete)(struct sk_buff *, struct ubuf_info *,
534 int (*link_skb)(struct sk_buff *skb, struct ubuf_info *uarg);
600 struct sk_buff *frag_list;
872 struct sk_buff { struct
876 struct sk_buff *next; argument
877 struct sk_buff *prev;
910 void (*destructor)(struct sk_buff *skb); argument
937 #define CLONED_OFFSET offsetof(struct sk_buff, __cloned_offset) argument
1101 #define PKT_TYPE_OFFSET offsetof(struct sk_buff, __pkt_type_offset) argument
1114 #define SKB_BF_MONO_TC_OFFSET offsetof(struct sk_buff, __mono_tc_offset)
1129 static inline bool skb_pfmemalloc(const struct sk_buff *skb) in skb_pfmemalloc()
1147 static inline struct dst_entry *skb_dst(const struct sk_buff *skb) in skb_dst()
1166 static inline void skb_dst_set(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set()
1182 static inline void skb_dst_set_noref(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set_noref()
1193 static inline bool skb_dst_is_noref(const struct sk_buff *skb) in skb_dst_is_noref()
1211 static inline unsigned int skb_napi_id(const struct sk_buff *skb) in skb_napi_id()
1220 static inline bool skb_wifi_acked_valid(const struct sk_buff *skb) in skb_wifi_acked_valid()
1235 static inline bool skb_unref(struct sk_buff *skb) in skb_unref()
1247 static inline bool skb_data_unref(const struct sk_buff *skb, in skb_data_unref()
1265 void __fix_address sk_skb_reason_drop(struct sock *sk, struct sk_buff *skb,
1269 kfree_skb_reason(struct sk_buff *skb, enum skb_drop_reason reason) in kfree_skb_reason()
1278 static inline void kfree_skb(struct sk_buff *skb) in kfree_skb()
1283 void skb_release_head_state(struct sk_buff *skb);
1284 void kfree_skb_list_reason(struct sk_buff *segs,
1286 void skb_dump(const char *level, const struct sk_buff *skb, bool full_pkt);
1287 void skb_tx_error(struct sk_buff *skb);
1289 static inline void kfree_skb_list(struct sk_buff *segs) in kfree_skb_list()
1295 void consume_skb(struct sk_buff *skb);
1297 static inline void consume_skb(struct sk_buff *skb) in consume_skb()
1303 void __consume_stateless_skb(struct sk_buff *skb);
1304 void __kfree_skb(struct sk_buff *skb);
1306 void kfree_skb_partial(struct sk_buff *skb, bool head_stolen);
1307 bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from,
1310 struct sk_buff *__alloc_skb(unsigned int size, gfp_t priority, int flags,
1312 struct sk_buff *__build_skb(void *data, unsigned int frag_size);
1313 struct sk_buff *build_skb(void *data, unsigned int frag_size);
1314 struct sk_buff *build_skb_around(struct sk_buff *skb,
1316 void skb_attempt_defer_free(struct sk_buff *skb);
1318 struct sk_buff *napi_build_skb(void *data, unsigned int frag_size);
1319 struct sk_buff *slab_build_skb(void *data);
1328 static inline struct sk_buff *alloc_skb(unsigned int size, in alloc_skb()
1334 struct sk_buff *alloc_skb_with_frags(unsigned long header_len,
1339 struct sk_buff *alloc_skb_for_msg(struct sk_buff *first);
1343 struct sk_buff skb1;
1345 struct sk_buff skb2;
1360 const struct sk_buff *skb) in skb_fclone_busy()
1378 static inline struct sk_buff *alloc_skb_fclone(unsigned int size, in alloc_skb_fclone()
1384 struct sk_buff *skb_morph(struct sk_buff *dst, struct sk_buff *src);
1385 void skb_headers_offset_update(struct sk_buff *skb, int off);
1386 int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask);
1387 struct sk_buff *skb_clone(struct sk_buff *skb, gfp_t priority);
1388 void skb_copy_header(struct sk_buff *new, const struct sk_buff *old);
1389 struct sk_buff *skb_copy(const struct sk_buff *skb, gfp_t priority);
1390 struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom,
1392 static inline struct sk_buff *__pskb_copy(struct sk_buff *skb, int headroom, in __pskb_copy()
1398 int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, gfp_t gfp_mask);
1399 struct sk_buff *skb_realloc_headroom(struct sk_buff *skb,
1401 struct sk_buff *skb_expand_head(struct sk_buff *skb, unsigned int headroom);
1402 struct sk_buff *skb_copy_expand(const struct sk_buff *skb, int newheadroom,
1404 int __must_check skb_to_sgvec_nomark(struct sk_buff *skb, struct scatterlist *sg,
1406 int __must_check skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg,
1408 int skb_cow_data(struct sk_buff *skb, int tailbits, struct sk_buff **trailer);
1409 int __skb_pad(struct sk_buff *skb, int pad, bool free_on_error);
1422 static inline int skb_pad(struct sk_buff *skb, int pad) in skb_pad()
1428 int skb_append_pagefrags(struct sk_buff *skb, struct page *page,
1436 struct sk_buff *root_skb;
1437 struct sk_buff *cur_skb;
1442 void skb_prepare_seq_read(struct sk_buff *skb, unsigned int from,
1449 unsigned int skb_find_text(struct sk_buff *skb, unsigned int from,
1485 static inline void skb_clear_hash(struct sk_buff *skb) in skb_clear_hash()
1492 static inline void skb_clear_hash_if_not_l4(struct sk_buff *skb) in skb_clear_hash_if_not_l4()
1499 __skb_set_hash(struct sk_buff *skb, __u32 hash, bool is_sw, bool is_l4) in __skb_set_hash()
1507 skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type) in skb_set_hash()
1514 __skb_set_sw_hash(struct sk_buff *skb, __u32 hash, bool is_l4) in __skb_set_sw_hash()
1519 u32 __skb_get_hash_symmetric_net(const struct net *net, const struct sk_buff *skb);
1521 static inline u32 __skb_get_hash_symmetric(const struct sk_buff *skb) in __skb_get_hash_symmetric()
1526 void __skb_get_hash_net(const struct net *net, struct sk_buff *skb);
1527 u32 skb_get_poff(const struct sk_buff *skb);
1528 u32 __skb_get_poff(const struct sk_buff *skb, const void *data,
1530 __be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
1533 static inline __be32 skb_flow_get_ports(const struct sk_buff *skb, in skb_flow_get_ports()
1548 const struct sk_buff *skb,
1553 static inline bool skb_flow_dissect(const struct sk_buff *skb, in skb_flow_dissect()
1561 static inline bool skb_flow_dissect_flow_keys(const struct sk_buff *skb, in skb_flow_dissect_flow_keys()
1572 const struct sk_buff *skb, in skb_flow_dissect_flow_keys_basic()
1582 void skb_flow_dissect_meta(const struct sk_buff *skb,
1591 skb_flow_dissect_ct(const struct sk_buff *skb,
1597 skb_flow_dissect_tunnel_info(const struct sk_buff *skb,
1601 void skb_flow_dissect_hash(const struct sk_buff *skb,
1605 static inline __u32 skb_get_hash_net(const struct net *net, struct sk_buff *skb) in skb_get_hash_net()
1613 static inline __u32 skb_get_hash(struct sk_buff *skb) in skb_get_hash()
1621 static inline __u32 skb_get_hash_flowi6(struct sk_buff *skb, const struct flowi6 *fl6) in skb_get_hash_flowi6()
1633 __u32 skb_get_hash_perturb(const struct sk_buff *skb,
1636 static inline __u32 skb_get_hash_raw(const struct sk_buff *skb) in skb_get_hash_raw()
1641 static inline void skb_copy_hash(struct sk_buff *to, const struct sk_buff *from) in skb_copy_hash()
1648 static inline int skb_cmp_decrypted(const struct sk_buff *skb1, in skb_cmp_decrypted()
1649 const struct sk_buff *skb2) in skb_cmp_decrypted()
1658 static inline bool skb_is_decrypted(const struct sk_buff *skb) in skb_is_decrypted()
1667 static inline void skb_copy_decrypted(struct sk_buff *to, in skb_copy_decrypted()
1668 const struct sk_buff *from) in skb_copy_decrypted()
1676 static inline unsigned char *skb_end_pointer(const struct sk_buff *skb) in skb_end_pointer()
1681 static inline unsigned int skb_end_offset(const struct sk_buff *skb) in skb_end_offset()
1686 static inline void skb_set_end_offset(struct sk_buff *skb, unsigned int offset) in skb_set_end_offset()
1691 static inline unsigned char *skb_end_pointer(const struct sk_buff *skb) in skb_end_pointer()
1696 static inline unsigned int skb_end_offset(const struct sk_buff *skb) in skb_end_offset()
1701 static inline void skb_set_end_offset(struct sk_buff *skb, unsigned int offset) in skb_set_end_offset()
1715 struct sk_buff *skb, struct iov_iter *from,
1718 int zerocopy_fill_skb_from_iter(struct sk_buff *skb,
1721 static inline int skb_zerocopy_iter_dgram(struct sk_buff *skb, in skb_zerocopy_iter_dgram()
1727 int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb,
1734 static inline struct skb_shared_hwtstamps *skb_hwtstamps(struct sk_buff *skb) in skb_hwtstamps()
1739 static inline struct ubuf_info *skb_zcopy(struct sk_buff *skb) in skb_zcopy()
1746 static inline bool skb_zcopy_pure(const struct sk_buff *skb) in skb_zcopy_pure()
1751 static inline bool skb_zcopy_managed(const struct sk_buff *skb) in skb_zcopy_managed()
1756 static inline bool skb_pure_zcopy_same(const struct sk_buff *skb1, in skb_pure_zcopy_same()
1757 const struct sk_buff *skb2) in skb_pure_zcopy_same()
1767 static inline void skb_zcopy_init(struct sk_buff *skb, struct ubuf_info *uarg) in skb_zcopy_init()
1773 static inline void skb_zcopy_set(struct sk_buff *skb, struct ubuf_info *uarg, in skb_zcopy_set()
1785 static inline void skb_zcopy_set_nouarg(struct sk_buff *skb, void *val) in skb_zcopy_set_nouarg()
1791 static inline bool skb_zcopy_is_nouarg(struct sk_buff *skb) in skb_zcopy_is_nouarg()
1796 static inline void *skb_zcopy_get_nouarg(struct sk_buff *skb) in skb_zcopy_get_nouarg()
1818 static inline void skb_zcopy_clear(struct sk_buff *skb, bool zerocopy_success) in skb_zcopy_clear()
1830 void __skb_zcopy_downgrade_managed(struct sk_buff *skb);
1832 static inline void skb_zcopy_downgrade_managed(struct sk_buff *skb) in skb_zcopy_downgrade_managed()
1839 static inline bool skb_frags_readable(const struct sk_buff *skb) in skb_frags_readable()
1844 static inline void skb_mark_not_on_list(struct sk_buff *skb) in skb_mark_not_on_list()
1849 static inline void skb_poison_list(struct sk_buff *skb) in skb_poison_list()
1861 static inline void skb_list_del_init(struct sk_buff *skb) in skb_list_del_init()
1875 return list->next == (const struct sk_buff *) list; in skb_queue_empty()
1887 return READ_ONCE(list->next) == (const struct sk_buff *) list; in skb_queue_empty_lockless()
1899 const struct sk_buff *skb) in skb_queue_is_last()
1901 return skb->next == (const struct sk_buff *) list; in skb_queue_is_last()
1912 const struct sk_buff *skb) in skb_queue_is_first()
1914 return skb->prev == (const struct sk_buff *) list; in skb_queue_is_first()
1925 static inline struct sk_buff *skb_queue_next(const struct sk_buff_head *list, in skb_queue_next()
1926 const struct sk_buff *skb) in skb_queue_next()
1943 static inline struct sk_buff *skb_queue_prev(const struct sk_buff_head *list, in skb_queue_prev()
1944 const struct sk_buff *skb) in skb_queue_prev()
1960 static inline struct sk_buff *skb_get(struct sk_buff *skb) in skb_get()
1978 static inline int skb_cloned(const struct sk_buff *skb) in skb_cloned()
1984 static inline int skb_unclone(struct sk_buff *skb, gfp_t pri) in skb_unclone()
2000 int __skb_unclone_keeptruesize(struct sk_buff *skb, gfp_t pri);
2001 static inline int skb_unclone_keeptruesize(struct sk_buff *skb, gfp_t pri) in skb_unclone_keeptruesize()
2017 static inline int skb_header_cloned(const struct sk_buff *skb) in skb_header_cloned()
2029 static inline int skb_header_unclone(struct sk_buff *skb, gfp_t pri) in skb_header_unclone()
2045 static inline void __skb_header_release(struct sk_buff *skb) in __skb_header_release()
2059 static inline int skb_shared(const struct sk_buff *skb) in skb_shared()
2077 static inline struct sk_buff *skb_share_check(struct sk_buff *skb, gfp_t pri) in skb_share_check()
2081 struct sk_buff *nskb = skb_clone(skb, pri); in skb_share_check()
2112 static inline struct sk_buff *skb_unshare(struct sk_buff *skb, in skb_unshare()
2117 struct sk_buff *nskb = skb_copy(skb, pri); in skb_unshare()
2142 static inline struct sk_buff *skb_peek(const struct sk_buff_head *list_) in skb_peek()
2144 struct sk_buff *skb = list_->next; in skb_peek()
2146 if (skb == (struct sk_buff *)list_) in skb_peek()
2157 static inline struct sk_buff *__skb_peek(const struct sk_buff_head *list_) in __skb_peek()
2171 static inline struct sk_buff *skb_peek_next(struct sk_buff *skb, in skb_peek_next()
2174 struct sk_buff *next = skb->next; in skb_peek_next()
2176 if (next == (struct sk_buff *)list_) in skb_peek_next()
2194 static inline struct sk_buff *skb_peek_tail(const struct sk_buff_head *list_) in skb_peek_tail()
2196 struct sk_buff *skb = READ_ONCE(list_->prev); in skb_peek_tail()
2198 if (skb == (struct sk_buff *)list_) in skb_peek_tail()
2239 list->prev = list->next = (struct sk_buff *)list; in __skb_queue_head_init()
2270 static inline void __skb_insert(struct sk_buff *newsk, in __skb_insert()
2271 struct sk_buff *prev, struct sk_buff *next, in __skb_insert()
2285 struct sk_buff *prev, in __skb_queue_splice()
2286 struct sk_buff *next) in __skb_queue_splice()
2288 struct sk_buff *first = list->next; in __skb_queue_splice()
2289 struct sk_buff *last = list->prev; in __skb_queue_splice()
2307 __skb_queue_splice(list, (struct sk_buff *) head, head->next); in skb_queue_splice()
2323 __skb_queue_splice(list, (struct sk_buff *) head, head->next); in skb_queue_splice_init()
2338 __skb_queue_splice(list, head->prev, (struct sk_buff *) head); in skb_queue_splice_tail()
2355 __skb_queue_splice(list, head->prev, (struct sk_buff *) head); in skb_queue_splice_tail_init()
2373 struct sk_buff *prev, in __skb_queue_after()
2374 struct sk_buff *newsk) in __skb_queue_after()
2379 void skb_append(struct sk_buff *old, struct sk_buff *newsk,
2383 struct sk_buff *next, in __skb_queue_before()
2384 struct sk_buff *newsk) in __skb_queue_before()
2400 struct sk_buff *newsk) in __skb_queue_head()
2402 __skb_queue_after(list, (struct sk_buff *)list, newsk); in __skb_queue_head()
2404 void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk);
2417 struct sk_buff *newsk) in __skb_queue_tail()
2419 __skb_queue_before(list, (struct sk_buff *)list, newsk); in __skb_queue_tail()
2421 void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk);
2427 void skb_unlink(struct sk_buff *skb, struct sk_buff_head *list);
2428 static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) in __skb_unlink()
2430 struct sk_buff *next, *prev; in __skb_unlink()
2448 static inline struct sk_buff *__skb_dequeue(struct sk_buff_head *list) in __skb_dequeue()
2450 struct sk_buff *skb = skb_peek(list); in __skb_dequeue()
2455 struct sk_buff *skb_dequeue(struct sk_buff_head *list);
2465 static inline struct sk_buff *__skb_dequeue_tail(struct sk_buff_head *list) in __skb_dequeue_tail()
2467 struct sk_buff *skb = skb_peek_tail(list); in __skb_dequeue_tail()
2472 struct sk_buff *skb_dequeue_tail(struct sk_buff_head *list);
2475 static inline bool skb_is_nonlinear(const struct sk_buff *skb) in skb_is_nonlinear()
2480 static inline unsigned int skb_headlen(const struct sk_buff *skb) in skb_headlen()
2485 static inline unsigned int __skb_pagelen(const struct sk_buff *skb) in __skb_pagelen()
2494 static inline unsigned int skb_pagelen(const struct sk_buff *skb) in skb_pagelen()
2537 static inline void skb_len_add(struct sk_buff *skb, int delta) in skb_len_add()
2557 static inline void __skb_fill_netmem_desc(struct sk_buff *skb, int i, in __skb_fill_netmem_desc()
2580 static inline void __skb_fill_page_desc(struct sk_buff *skb, int i, in __skb_fill_page_desc()
2586 static inline void skb_fill_netmem_desc(struct sk_buff *skb, int i, in skb_fill_netmem_desc()
2607 static inline void skb_fill_page_desc(struct sk_buff *skb, int i, in skb_fill_page_desc()
2624 static inline void skb_fill_page_desc_noacc(struct sk_buff *skb, int i, in skb_fill_page_desc_noacc()
2634 void skb_add_rx_frag_netmem(struct sk_buff *skb, int i, netmem_ref netmem,
2637 static inline void skb_add_rx_frag(struct sk_buff *skb, int i, in skb_add_rx_frag()
2645 void skb_coalesce_rx_frag(struct sk_buff *skb, int i, int size,
2651 static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb) in skb_tail_pointer()
2656 static inline void skb_reset_tail_pointer(struct sk_buff *skb) in skb_reset_tail_pointer()
2661 static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset) in skb_set_tail_pointer()
2668 static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb) in skb_tail_pointer()
2673 static inline void skb_reset_tail_pointer(struct sk_buff *skb) in skb_reset_tail_pointer()
2678 static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset) in skb_set_tail_pointer()
2685 static inline void skb_assert_len(struct sk_buff *skb) in skb_assert_len()
2696 void *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len);
2697 void *skb_put(struct sk_buff *skb, unsigned int len);
2698 static inline void *__skb_put(struct sk_buff *skb, unsigned int len) in __skb_put()
2707 static inline void *__skb_put_zero(struct sk_buff *skb, unsigned int len) in __skb_put_zero()
2715 static inline void *__skb_put_data(struct sk_buff *skb, const void *data, in __skb_put_data()
2724 static inline void __skb_put_u8(struct sk_buff *skb, u8 val) in __skb_put_u8()
2729 static inline void *skb_put_zero(struct sk_buff *skb, unsigned int len) in skb_put_zero()
2738 static inline void *skb_put_data(struct sk_buff *skb, const void *data, in skb_put_data()
2748 static inline void skb_put_u8(struct sk_buff *skb, u8 val) in skb_put_u8()
2753 void *skb_push(struct sk_buff *skb, unsigned int len);
2754 static inline void *__skb_push(struct sk_buff *skb, unsigned int len) in __skb_push()
2763 void *skb_pull(struct sk_buff *skb, unsigned int len);
2764 static inline void *__skb_pull(struct sk_buff *skb, unsigned int len) in __skb_pull()
2780 static inline void *skb_pull_inline(struct sk_buff *skb, unsigned int len) in skb_pull_inline()
2785 void *skb_pull_data(struct sk_buff *skb, size_t len);
2787 void *__pskb_pull_tail(struct sk_buff *skb, int delta);
2790 pskb_may_pull_reason(struct sk_buff *skb, unsigned int len) in pskb_may_pull_reason()
2806 static inline bool pskb_may_pull(struct sk_buff *skb, unsigned int len) in pskb_may_pull()
2811 static inline void *pskb_pull(struct sk_buff *skb, unsigned int len) in pskb_pull()
2820 void skb_condense(struct sk_buff *skb);
2828 static inline unsigned int skb_headroom(const struct sk_buff *skb) in skb_headroom()
2839 static inline int skb_tailroom(const struct sk_buff *skb) in skb_tailroom()
2851 static inline int skb_availroom(const struct sk_buff *skb) in skb_availroom()
2867 static inline void skb_reserve(struct sk_buff *skb, int len) in skb_reserve()
2885 static inline void skb_tailroom_reserve(struct sk_buff *skb, unsigned int mtu, in skb_tailroom_reserve()
2900 static inline void skb_set_inner_protocol(struct sk_buff *skb, in skb_set_inner_protocol()
2907 static inline void skb_set_inner_ipproto(struct sk_buff *skb, in skb_set_inner_ipproto()
2914 static inline void skb_reset_inner_headers(struct sk_buff *skb) in skb_reset_inner_headers()
2921 static inline void skb_reset_mac_len(struct sk_buff *skb) in skb_reset_mac_len()
2926 static inline unsigned char *skb_inner_transport_header(const struct sk_buff in skb_inner_transport_header()
2932 static inline int skb_inner_transport_offset(const struct sk_buff *skb) in skb_inner_transport_offset()
2937 static inline void skb_reset_inner_transport_header(struct sk_buff *skb) in skb_reset_inner_transport_header()
2942 static inline void skb_set_inner_transport_header(struct sk_buff *skb, in skb_set_inner_transport_header()
2949 static inline unsigned char *skb_inner_network_header(const struct sk_buff *skb) in skb_inner_network_header()
2954 static inline void skb_reset_inner_network_header(struct sk_buff *skb) in skb_reset_inner_network_header()
2959 static inline void skb_set_inner_network_header(struct sk_buff *skb, in skb_set_inner_network_header()
2966 static inline bool skb_inner_network_header_was_set(const struct sk_buff *skb) in skb_inner_network_header_was_set()
2971 static inline unsigned char *skb_inner_mac_header(const struct sk_buff *skb) in skb_inner_mac_header()
2976 static inline void skb_reset_inner_mac_header(struct sk_buff *skb) in skb_reset_inner_mac_header()
2981 static inline void skb_set_inner_mac_header(struct sk_buff *skb, in skb_set_inner_mac_header()
2987 static inline bool skb_transport_header_was_set(const struct sk_buff *skb) in skb_transport_header_was_set()
2992 static inline unsigned char *skb_transport_header(const struct sk_buff *skb) in skb_transport_header()
2998 static inline void skb_reset_transport_header(struct sk_buff *skb) in skb_reset_transport_header()
3012 skb_reset_transport_header_careful(struct sk_buff *skb) in skb_reset_transport_header_careful()
3026 static inline void skb_set_transport_header(struct sk_buff *skb, in skb_set_transport_header()
3033 static inline unsigned char *skb_network_header(const struct sk_buff *skb) in skb_network_header()
3038 static inline void skb_reset_network_header(struct sk_buff *skb) in skb_reset_network_header()
3043 static inline void skb_set_network_header(struct sk_buff *skb, const int offset) in skb_set_network_header()
3049 static inline int skb_mac_header_was_set(const struct sk_buff *skb) in skb_mac_header_was_set()
3054 static inline unsigned char *skb_mac_header(const struct sk_buff *skb) in skb_mac_header()
3060 static inline int skb_mac_offset(const struct sk_buff *skb) in skb_mac_offset()
3065 static inline u32 skb_mac_header_len(const struct sk_buff *skb) in skb_mac_header_len()
3071 static inline void skb_unset_mac_header(struct sk_buff *skb) in skb_unset_mac_header()
3076 static inline void skb_reset_mac_header(struct sk_buff *skb) in skb_reset_mac_header()
3081 static inline void skb_set_mac_header(struct sk_buff *skb, const int offset) in skb_set_mac_header()
3087 static inline void skb_pop_mac_header(struct sk_buff *skb) in skb_pop_mac_header()
3092 static inline void skb_probe_transport_header(struct sk_buff *skb) in skb_probe_transport_header()
3104 static inline void skb_mac_header_rebuild(struct sk_buff *skb) in skb_mac_header_rebuild()
3118 static inline void skb_mac_header_rebuild_full(struct sk_buff *skb, u32 full_mac_len) in skb_mac_header_rebuild_full()
3129 static inline int skb_checksum_start_offset(const struct sk_buff *skb) in skb_checksum_start_offset()
3134 static inline unsigned char *skb_checksum_start(const struct sk_buff *skb) in skb_checksum_start()
3139 static inline int skb_transport_offset(const struct sk_buff *skb) in skb_transport_offset()
3144 static inline u32 skb_network_header_len(const struct sk_buff *skb) in skb_network_header_len()
3150 static inline u32 skb_inner_network_header_len(const struct sk_buff *skb) in skb_inner_network_header_len()
3155 static inline int skb_network_offset(const struct sk_buff *skb) in skb_network_offset()
3160 static inline int skb_inner_network_offset(const struct sk_buff *skb) in skb_inner_network_offset()
3165 static inline int pskb_network_may_pull(struct sk_buff *skb, unsigned int len) in pskb_network_may_pull()
3218 int ___pskb_trim(struct sk_buff *skb, unsigned int len);
3220 static inline void __skb_set_length(struct sk_buff *skb, unsigned int len) in __skb_set_length()
3228 static inline void __skb_trim(struct sk_buff *skb, unsigned int len) in __skb_trim()
3233 void skb_trim(struct sk_buff *skb, unsigned int len);
3235 static inline int __pskb_trim(struct sk_buff *skb, unsigned int len) in __pskb_trim()
3243 static inline int pskb_trim(struct sk_buff *skb, unsigned int len) in pskb_trim()
3257 static inline void pskb_trim_unique(struct sk_buff *skb, unsigned int len) in pskb_trim_unique()
3263 static inline int __skb_grow(struct sk_buff *skb, unsigned int len) in __skb_grow()
3285 static inline void skb_orphan(struct sk_buff *skb) in skb_orphan()
3305 static inline int skb_orphan_frags(struct sk_buff *skb, gfp_t gfp_mask) in skb_orphan_frags()
3315 static inline int skb_orphan_frags_rx(struct sk_buff *skb, gfp_t gfp_mask) in skb_orphan_frags_rx()
3334 struct sk_buff *skb; in __skb_queue_purge_reason()
3377 struct sk_buff *__netdev_alloc_skb(struct net_device *dev, unsigned int length,
3393 static inline struct sk_buff *netdev_alloc_skb(struct net_device *dev, in netdev_alloc_skb()
3400 static inline struct sk_buff *__dev_alloc_skb(unsigned int length, in __dev_alloc_skb()
3407 static inline struct sk_buff *dev_alloc_skb(unsigned int length) in dev_alloc_skb()
3413 static inline struct sk_buff *__netdev_alloc_skb_ip_align(struct net_device *dev, in __netdev_alloc_skb_ip_align()
3416 struct sk_buff *skb = __netdev_alloc_skb(dev, length + NET_IP_ALIGN, gfp); in __netdev_alloc_skb_ip_align()
3423 static inline struct sk_buff *netdev_alloc_skb_ip_align(struct net_device *dev, in netdev_alloc_skb_ip_align()
3448 struct sk_buff *napi_alloc_skb(struct napi_struct *napi, unsigned int length);
3449 void napi_consume_skb(struct sk_buff *skb, int budget);
3451 void napi_skb_free_stolen_head(struct sk_buff *skb);
3452 void __napi_kfree_skb(struct sk_buff *skb, enum skb_drop_reason reason);
3528 struct sk_buff *skb) in skb_propagate_pfmemalloc()
3621 int skb_pp_cow_data(struct page_pool *pool, struct sk_buff **pskb,
3623 int skb_cow_data_for_xdp(struct page_pool *pool, struct sk_buff **pskb,
3696 static inline struct sk_buff *pskb_copy(struct sk_buff *skb, in pskb_copy()
3703 static inline struct sk_buff *pskb_copy_for_clone(struct sk_buff *skb, in pskb_copy_for_clone()
3718 static inline int skb_clone_writable(const struct sk_buff *skb, unsigned int len) in skb_clone_writable()
3724 static inline int skb_try_make_writable(struct sk_buff *skb, in skb_try_make_writable()
3731 static inline int __skb_cow(struct sk_buff *skb, unsigned int headroom, in __skb_cow()
3757 static inline int skb_cow(struct sk_buff *skb, unsigned int headroom) in skb_cow()
3772 static inline int skb_cow_head(struct sk_buff *skb, unsigned int headroom) in skb_cow_head()
3787 static inline int skb_padto(struct sk_buff *skb, unsigned int len) in skb_padto()
3806 static inline int __must_check __skb_put_padto(struct sk_buff *skb, in __skb_put_padto()
3831 static inline int __must_check skb_put_padto(struct sk_buff *skb, unsigned int len) in skb_put_padto()
3839 static inline int skb_add_data(struct sk_buff *skb, in skb_add_data()
3858 static inline bool skb_can_coalesce(struct sk_buff *skb, int i, in skb_can_coalesce()
3872 static inline int __skb_linearize(struct sk_buff *skb) in __skb_linearize()
3884 static inline int skb_linearize(struct sk_buff *skb) in skb_linearize()
3896 static inline bool skb_has_shared_frag(const struct sk_buff *skb) in skb_has_shared_frag()
3909 static inline int skb_linearize_cow(struct sk_buff *skb) in skb_linearize_cow()
3916 __skb_postpull_rcsum(struct sk_buff *skb, const void *start, unsigned int len, in __skb_postpull_rcsum()
3937 static inline void skb_postpull_rcsum(struct sk_buff *skb, in skb_postpull_rcsum()
3949 __skb_postpush_rcsum(struct sk_buff *skb, const void *start, unsigned int len, in __skb_postpush_rcsum()
3966 static inline void skb_postpush_rcsum(struct sk_buff *skb, in skb_postpush_rcsum()
3972 void *skb_pull_rcsum(struct sk_buff *skb, unsigned int len);
3985 static inline void *skb_push_rcsum(struct sk_buff *skb, unsigned int len) in skb_push_rcsum()
3992 int pskb_trim_rcsum_slow(struct sk_buff *skb, unsigned int len);
4003 static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len) in pskb_trim_rcsum()
4010 static inline int __skb_trim_rcsum(struct sk_buff *skb, unsigned int len) in __skb_trim_rcsum()
4018 static inline int __skb_grow_rcsum(struct sk_buff *skb, unsigned int len) in __skb_grow_rcsum()
4025 #define rb_to_skb(rb) rb_entry_safe(rb, struct sk_buff, rbnode)
4033 skb != (struct sk_buff *)(queue); \
4038 skb != (struct sk_buff *)(queue); \
4042 for (; skb != (struct sk_buff *)(queue); \
4059 skb != (struct sk_buff *)(queue); \
4064 skb != (struct sk_buff *)(queue); \
4069 skb != (struct sk_buff *)(queue); \
4074 skb != (struct sk_buff *)(queue); \
4077 static inline bool skb_has_frag_list(const struct sk_buff *skb) in skb_has_frag_list()
4082 static inline void skb_frag_list_init(struct sk_buff *skb) in skb_frag_list_init()
4093 const struct sk_buff *skb);
4094 struct sk_buff *__skb_try_recv_from_queue(struct sock *sk,
4098 struct sk_buff **last);
4099 struct sk_buff *__skb_try_recv_datagram(struct sock *sk,
4102 struct sk_buff **last);
4103 struct sk_buff *__skb_recv_datagram(struct sock *sk,
4106 struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned int flags, int *err);
4109 int skb_copy_datagram_iter(const struct sk_buff *from, int offset,
4111 static inline int skb_copy_datagram_msg(const struct sk_buff *from, int offset, in skb_copy_datagram_msg()
4116 int skb_copy_and_csum_datagram_msg(struct sk_buff *skb, int hlen,
4118 int skb_copy_and_hash_datagram_iter(const struct sk_buff *skb, int offset,
4121 int skb_copy_datagram_from_iter(struct sk_buff *skb, int offset,
4123 int zerocopy_sg_from_iter(struct sk_buff *skb, struct iov_iter *frm);
4124 void skb_free_datagram(struct sock *sk, struct sk_buff *skb);
4125 int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags);
4126 int skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len);
4127 int skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len);
4128 __wsum skb_copy_and_csum_bits(const struct sk_buff *skb, int offset, u8 *to,
4130 int skb_splice_bits(struct sk_buff *skb, struct sock *sk, unsigned int offset,
4133 int skb_send_sock_locked(struct sock *sk, struct sk_buff *skb, int offset,
4135 int skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset, int len);
4136 void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to);
4137 unsigned int skb_zerocopy_headlen(const struct sk_buff *from);
4138 int skb_zerocopy(struct sk_buff *to, struct sk_buff *from,
4140 void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len);
4141 int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen);
4142 void skb_scrub_packet(struct sk_buff *skb, bool xnet);
4143 struct sk_buff *skb_segment(struct sk_buff *skb, netdev_features_t features);
4144 struct sk_buff *skb_segment_list(struct sk_buff *skb, netdev_features_t features,
4146 struct sk_buff *skb_vlan_untag(struct sk_buff *skb);
4147 int skb_ensure_writable(struct sk_buff *skb, unsigned int write_len);
4148 int skb_ensure_writable_head_tail(struct sk_buff *skb, struct net_device *dev);
4149 int __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci);
4150 int skb_vlan_pop(struct sk_buff *skb);
4151 int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci);
4152 int skb_eth_pop(struct sk_buff *skb);
4153 int skb_eth_push(struct sk_buff *skb, const unsigned char *dst,
4155 int skb_mpls_push(struct sk_buff *skb, __be32 mpls_lse, __be16 mpls_proto,
4157 int skb_mpls_pop(struct sk_buff *skb, __be16 next_proto, int mac_len,
4159 int skb_mpls_update_lse(struct sk_buff *skb, __be32 mpls_lse);
4160 int skb_mpls_dec_ttl(struct sk_buff *skb);
4161 struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,
4181 __wsum __skb_checksum(const struct sk_buff *skb, int offset, int len,
4183 __wsum skb_checksum(const struct sk_buff *skb, int offset, int len,
4187 __skb_header_pointer(const struct sk_buff *skb, int offset, int len, in __skb_header_pointer()
4200 skb_header_pointer(const struct sk_buff *skb, int offset, int len, void *buffer) in skb_header_pointer()
4207 skb_pointer_if_linear(const struct sk_buff *skb, int offset, int len) in skb_pointer_if_linear()
4224 static inline bool skb_needs_linearize(struct sk_buff *skb, in skb_needs_linearize()
4232 static inline void skb_copy_from_linear_data(const struct sk_buff *skb, in skb_copy_from_linear_data()
4239 static inline void skb_copy_from_linear_data_offset(const struct sk_buff *skb, in skb_copy_from_linear_data_offset()
4246 static inline void skb_copy_to_linear_data(struct sk_buff *skb, in skb_copy_to_linear_data()
4253 static inline void skb_copy_to_linear_data_offset(struct sk_buff *skb, in skb_copy_to_linear_data_offset()
4263 static inline ktime_t skb_get_ktime(const struct sk_buff *skb) in skb_get_ktime()
4277 static inline void skb_get_timestamp(const struct sk_buff *skb, in skb_get_timestamp()
4283 static inline void skb_get_new_timestamp(const struct sk_buff *skb, in skb_get_new_timestamp()
4292 static inline void skb_get_timestampns(const struct sk_buff *skb, in skb_get_timestampns()
4301 static inline void skb_get_new_timestampns(const struct sk_buff *skb, in skb_get_new_timestampns()
4310 static inline void __net_timestamp(struct sk_buff *skb) in __net_timestamp()
4321 static inline void skb_set_delivery_time(struct sk_buff *skb, ktime_t kt, in skb_set_delivery_time()
4332 static inline void skb_set_delivery_type_by_clockid(struct sk_buff *skb, in skb_set_delivery_type_by_clockid()
4359 static inline void skb_clear_delivery_time(struct sk_buff *skb) in skb_clear_delivery_time()
4370 static inline void skb_clear_tstamp(struct sk_buff *skb) in skb_clear_tstamp()
4378 static inline ktime_t skb_tstamp(const struct sk_buff *skb) in skb_tstamp()
4386 static inline ktime_t skb_tstamp_cond(const struct sk_buff *skb, bool cond) in skb_tstamp_cond()
4397 static inline u8 skb_metadata_len(const struct sk_buff *skb) in skb_metadata_len()
4402 static inline void *skb_metadata_end(const struct sk_buff *skb) in skb_metadata_end()
4407 static inline bool __skb_metadata_differs(const struct sk_buff *skb_a, in __skb_metadata_differs()
4408 const struct sk_buff *skb_b, in __skb_metadata_differs()
4446 static inline bool skb_metadata_differs(const struct sk_buff *skb_a, in skb_metadata_differs()
4447 const struct sk_buff *skb_b) in skb_metadata_differs()
4459 static inline void skb_metadata_set(struct sk_buff *skb, u8 meta_len) in skb_metadata_set()
4464 static inline void skb_metadata_clear(struct sk_buff *skb) in skb_metadata_clear()
4469 struct sk_buff *skb_clone_sk(struct sk_buff *skb);
4473 void skb_clone_tx_timestamp(struct sk_buff *skb);
4474 bool skb_defer_rx_timestamp(struct sk_buff *skb);
4478 static inline void skb_clone_tx_timestamp(struct sk_buff *skb) in skb_clone_tx_timestamp()
4482 static inline bool skb_defer_rx_timestamp(struct sk_buff *skb) in skb_defer_rx_timestamp()
4501 void skb_complete_tx_timestamp(struct sk_buff *skb,
4504 void __skb_tstamp_tx(struct sk_buff *orig_skb, const struct sk_buff *ack_skb,
4519 void skb_tstamp_tx(struct sk_buff *orig_skb,
4534 static inline void skb_tx_timestamp(struct sk_buff *skb) in skb_tx_timestamp()
4548 void skb_complete_wifi_ack(struct sk_buff *skb, bool acked);
4550 __sum16 __skb_checksum_complete_head(struct sk_buff *skb, int len);
4551 __sum16 __skb_checksum_complete(struct sk_buff *skb);
4553 static inline int skb_csum_unnecessary(const struct sk_buff *skb) in skb_csum_unnecessary()
4577 static inline __sum16 skb_checksum_complete(struct sk_buff *skb) in skb_checksum_complete()
4583 static inline void __skb_decr_checksum_unnecessary(struct sk_buff *skb) in __skb_decr_checksum_unnecessary()
4593 static inline void __skb_incr_checksum_unnecessary(struct sk_buff *skb) in __skb_incr_checksum_unnecessary()
4604 static inline void __skb_reset_checksum_unnecessary(struct sk_buff *skb) in __skb_reset_checksum_unnecessary()
4617 static inline bool __skb_checksum_validate_needed(struct sk_buff *skb, in __skb_checksum_validate_needed()
4641 static inline void skb_checksum_complete_unset(struct sk_buff *skb) in skb_checksum_complete_unset()
4656 static inline __sum16 __skb_checksum_validate_complete(struct sk_buff *skb, in __skb_checksum_validate_complete()
4680 static inline __wsum null_compute_pseudo(struct sk_buff *skb, int proto) in null_compute_pseudo()
4722 static inline bool __skb_checksum_convert_check(struct sk_buff *skb) in __skb_checksum_convert_check()
4727 static inline void __skb_checksum_convert(struct sk_buff *skb, __wsum pseudo) in __skb_checksum_convert()
4739 static inline void skb_remcsum_adjust_partial(struct sk_buff *skb, void *ptr, in skb_remcsum_adjust_partial()
4752 static inline void skb_remcsum_process(struct sk_buff *skb, void *ptr, in skb_remcsum_process()
4773 static inline struct nf_conntrack *skb_nfct(const struct sk_buff *skb) in skb_nfct()
4782 static inline unsigned long skb_get_nfct(const struct sk_buff *skb) in skb_get_nfct()
4791 static inline void skb_set_nfct(struct sk_buff *skb, unsigned long nfct) in skb_set_nfct()
4837 void *__skb_ext_set(struct sk_buff *skb, enum skb_ext_id id,
4839 void *skb_ext_add(struct sk_buff *skb, enum skb_ext_id id);
4840 void __skb_ext_del(struct sk_buff *skb, enum skb_ext_id id);
4843 static inline void skb_ext_put(struct sk_buff *skb) in skb_ext_put()
4849 static inline void __skb_ext_copy(struct sk_buff *dst, in __skb_ext_copy()
4850 const struct sk_buff *src) in __skb_ext_copy()
4862 static inline void skb_ext_copy(struct sk_buff *dst, const struct sk_buff *src) in skb_ext_copy()
4873 static inline bool skb_ext_exist(const struct sk_buff *skb, enum skb_ext_id id) in skb_ext_exist()
4878 static inline void skb_ext_del(struct sk_buff *skb, enum skb_ext_id id) in skb_ext_del()
4884 static inline void *skb_ext_find(const struct sk_buff *skb, enum skb_ext_id id) in skb_ext_find()
4895 static inline void skb_ext_reset(struct sk_buff *skb) in skb_ext_reset()
4903 static inline bool skb_has_extensions(struct sk_buff *skb) in skb_has_extensions()
4908 static inline void skb_ext_put(struct sk_buff *skb) {} in skb_ext_put()
4909 static inline void skb_ext_reset(struct sk_buff *skb) {} in skb_ext_reset()
4910 static inline void skb_ext_del(struct sk_buff *skb, int unused) {} in skb_ext_del()
4911 static inline void __skb_ext_copy(struct sk_buff *d, const struct sk_buff *s) {} in __skb_ext_copy()
4912 static inline void skb_ext_copy(struct sk_buff *dst, const struct sk_buff *s) {} in skb_ext_copy()
4913 static inline bool skb_has_extensions(struct sk_buff *skb) { return false; } in skb_has_extensions()
4916 static inline void nf_reset_ct(struct sk_buff *skb) in nf_reset_ct()
4924 static inline void nf_reset_trace(struct sk_buff *skb) in nf_reset_trace()
4931 static inline void ipvs_reset(struct sk_buff *skb) in ipvs_reset()
4939 static inline void __nf_copy(struct sk_buff *dst, const struct sk_buff *src, in __nf_copy()
4952 static inline void nf_copy(struct sk_buff *dst, const struct sk_buff *src) in nf_copy()
4962 static inline void skb_copy_secmark(struct sk_buff *to, const struct sk_buff *from) in skb_copy_secmark()
4967 static inline void skb_init_secmark(struct sk_buff *skb) in skb_init_secmark()
4972 static inline void skb_copy_secmark(struct sk_buff *to, const struct sk_buff *from) in skb_copy_secmark()
4975 static inline void skb_init_secmark(struct sk_buff *skb) in skb_init_secmark()
4979 static inline int secpath_exists(const struct sk_buff *skb) in secpath_exists()
4988 static inline bool skb_irq_freeable(const struct sk_buff *skb) in skb_irq_freeable()
4997 static inline void skb_set_queue_mapping(struct sk_buff *skb, u16 queue_mapping) in skb_set_queue_mapping()
5002 static inline u16 skb_get_queue_mapping(const struct sk_buff *skb) in skb_get_queue_mapping()
5007 static inline void skb_copy_queue_mapping(struct sk_buff *to, const struct sk_buff *from) in skb_copy_queue_mapping()
5012 static inline void skb_record_rx_queue(struct sk_buff *skb, u16 rx_queue) in skb_record_rx_queue()
5017 static inline u16 skb_get_rx_queue(const struct sk_buff *skb) in skb_get_rx_queue()
5022 static inline bool skb_rx_queue_recorded(const struct sk_buff *skb) in skb_rx_queue_recorded()
5027 static inline void skb_set_dst_pending_confirm(struct sk_buff *skb, u32 val) in skb_set_dst_pending_confirm()
5032 static inline bool skb_get_dst_pending_confirm(const struct sk_buff *skb) in skb_get_dst_pending_confirm()
5037 static inline struct sec_path *skb_sec_path(const struct sk_buff *skb) in skb_sec_path()
5046 static inline bool skb_is_gso(const struct sk_buff *skb) in skb_is_gso()
5052 static inline bool skb_is_gso_v6(const struct sk_buff *skb) in skb_is_gso_v6()
5058 static inline bool skb_is_gso_sctp(const struct sk_buff *skb) in skb_is_gso_sctp()
5064 static inline bool skb_is_gso_tcp(const struct sk_buff *skb) in skb_is_gso_tcp()
5069 static inline void skb_gso_reset(struct sk_buff *skb) in skb_gso_reset()
5092 void __skb_warn_lro_forwarding(const struct sk_buff *skb);
5094 static inline bool skb_warn_if_lro(const struct sk_buff *skb) in skb_warn_if_lro()
5108 static inline void skb_forward_csum(struct sk_buff *skb) in skb_forward_csum()
5123 static inline void skb_checksum_none_assert(const struct sk_buff *skb) in skb_checksum_none_assert()
5128 bool skb_partial_csum_set(struct sk_buff *skb, u16 start, u16 off);
5130 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
5131 struct sk_buff *skb_checksum_trimmed(struct sk_buff *skb,
5133 __sum16(*skb_chkf)(struct sk_buff *skb));
5144 static inline bool skb_head_is_locked(const struct sk_buff *skb) in skb_head_is_locked()
5158 static inline __wsum lco_csum(struct sk_buff *skb) in lco_csum()
5174 static inline bool skb_is_redirected(const struct sk_buff *skb) in skb_is_redirected()
5179 static inline void skb_set_redirected(struct sk_buff *skb, bool from_ingress) in skb_set_redirected()
5189 static inline void skb_reset_redirect(struct sk_buff *skb) in skb_reset_redirect()
5194 static inline void skb_set_redirected_noclear(struct sk_buff *skb, in skb_set_redirected_noclear()
5203 static inline bool skb_csum_is_sctp(struct sk_buff *skb) in skb_csum_is_sctp()
5212 static inline void skb_reset_csum_not_inet(struct sk_buff *skb) in skb_reset_csum_not_inet()
5220 static inline void skb_set_kcov_handle(struct sk_buff *skb, in skb_set_kcov_handle()
5228 static inline u64 skb_get_kcov_handle(struct sk_buff *skb) in skb_get_kcov_handle()
5237 static inline void skb_mark_for_recycle(struct sk_buff *skb) in skb_mark_for_recycle()
5244 ssize_t skb_splice_from_iter(struct sk_buff *skb, struct iov_iter *iter,