Lines Matching refs:sk_buff

154 			 SKB_DATA_ALIGN(sizeof(struct sk_buff)) +	\
201 struct sk_buff *next;
202 struct sk_buff *prev;
208 struct sk_buff;
339 struct sk_buff *frag_list;
546 struct sk_buff { struct
550 struct sk_buff *next; argument
551 struct sk_buff *prev;
572 void (*destructor)(struct sk_buff *skb); argument
614 #define PKT_TYPE_OFFSET() offsetof(struct sk_buff, __pkt_type_offset) argument
725 static inline bool skb_pfmemalloc(const struct sk_buff *skb) in skb_pfmemalloc() argument
743 static inline struct dst_entry *skb_dst(const struct sk_buff *skb) in skb_dst()
762 static inline void skb_dst_set(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set()
777 static inline void skb_dst_set_noref(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set_noref()
787 static inline bool skb_dst_is_noref(const struct sk_buff *skb) in skb_dst_is_noref()
792 static inline struct rtable *skb_rtable(const struct sk_buff *skb) in skb_rtable()
797 void kfree_skb(struct sk_buff *skb);
798 void kfree_skb_list(struct sk_buff *segs);
799 void skb_tx_error(struct sk_buff *skb);
800 void consume_skb(struct sk_buff *skb);
801 void __kfree_skb(struct sk_buff *skb);
804 void kfree_skb_partial(struct sk_buff *skb, bool head_stolen);
805 bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from,
808 struct sk_buff *__alloc_skb(unsigned int size, gfp_t priority, int flags,
810 struct sk_buff *__build_skb(void *data, unsigned int frag_size);
811 struct sk_buff *build_skb(void *data, unsigned int frag_size);
812 static inline struct sk_buff *alloc_skb(unsigned int size, in alloc_skb()
818 struct sk_buff *alloc_skb_with_frags(unsigned long header_len,
826 struct sk_buff skb1;
828 struct sk_buff skb2;
842 const struct sk_buff *skb) in skb_fclone_busy()
853 static inline struct sk_buff *alloc_skb_fclone(unsigned int size, in alloc_skb_fclone()
859 struct sk_buff *__alloc_skb_head(gfp_t priority, int node);
860 static inline struct sk_buff *alloc_skb_head(gfp_t priority) in alloc_skb_head()
865 struct sk_buff *skb_morph(struct sk_buff *dst, struct sk_buff *src);
866 int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask);
867 struct sk_buff *skb_clone(struct sk_buff *skb, gfp_t priority);
868 struct sk_buff *skb_copy(const struct sk_buff *skb, gfp_t priority);
869 struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom,
871 static inline struct sk_buff *__pskb_copy(struct sk_buff *skb, int headroom, in __pskb_copy()
877 int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, gfp_t gfp_mask);
878 struct sk_buff *skb_realloc_headroom(struct sk_buff *skb,
880 struct sk_buff *skb_copy_expand(const struct sk_buff *skb, int newheadroom,
882 int skb_to_sgvec_nomark(struct sk_buff *skb, struct scatterlist *sg,
884 int skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset,
886 int skb_cow_data(struct sk_buff *skb, int tailbits, struct sk_buff **trailer);
887 int skb_pad(struct sk_buff *skb, int pad);
890 int skb_append_datato_frags(struct sock *sk, struct sk_buff *skb,
892 int len, int odd, struct sk_buff *skb),
895 int skb_append_pagefrags(struct sk_buff *skb, struct page *page,
903 struct sk_buff *root_skb;
904 struct sk_buff *cur_skb;
908 void skb_prepare_seq_read(struct sk_buff *skb, unsigned int from,
914 unsigned int skb_find_text(struct sk_buff *skb, unsigned int from,
950 static inline void skb_clear_hash(struct sk_buff *skb) in skb_clear_hash()
957 static inline void skb_clear_hash_if_not_l4(struct sk_buff *skb) in skb_clear_hash_if_not_l4()
964 __skb_set_hash(struct sk_buff *skb, __u32 hash, bool is_sw, bool is_l4) in __skb_set_hash()
972 skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type) in skb_set_hash()
979 __skb_set_sw_hash(struct sk_buff *skb, __u32 hash, bool is_l4) in __skb_set_sw_hash()
984 void __skb_get_hash(struct sk_buff *skb);
985 u32 skb_get_poff(const struct sk_buff *skb);
986 u32 __skb_get_poff(const struct sk_buff *skb, void *data,
988 __be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
991 static inline __be32 skb_flow_get_ports(const struct sk_buff *skb, in skb_flow_get_ports()
1001 bool __skb_flow_dissect(const struct sk_buff *skb,
1007 static inline bool skb_flow_dissect(const struct sk_buff *skb, in skb_flow_dissect()
1015 static inline bool skb_flow_dissect_flow_keys(const struct sk_buff *skb, in skb_flow_dissect_flow_keys()
1034 static inline __u32 skb_get_hash(struct sk_buff *skb) in skb_get_hash()
1042 __u32 __skb_get_hash_flowi6(struct sk_buff *skb, const struct flowi6 *fl6);
1044 static inline __u32 skb_get_hash_flowi6(struct sk_buff *skb, const struct flowi6 *fl6) in skb_get_hash_flowi6()
1056 __u32 __skb_get_hash_flowi4(struct sk_buff *skb, const struct flowi4 *fl);
1058 static inline __u32 skb_get_hash_flowi4(struct sk_buff *skb, const struct flowi4 *fl4) in skb_get_hash_flowi4()
1070 __u32 skb_get_hash_perturb(const struct sk_buff *skb, u32 perturb);
1072 static inline __u32 skb_get_hash_raw(const struct sk_buff *skb) in skb_get_hash_raw()
1077 static inline void skb_copy_hash(struct sk_buff *to, const struct sk_buff *from) in skb_copy_hash()
1084 static inline void skb_sender_cpu_clear(struct sk_buff *skb) in skb_sender_cpu_clear()
1092 static inline unsigned char *skb_end_pointer(const struct sk_buff *skb) in skb_end_pointer()
1097 static inline unsigned int skb_end_offset(const struct sk_buff *skb) in skb_end_offset()
1102 static inline unsigned char *skb_end_pointer(const struct sk_buff *skb) in skb_end_pointer()
1107 static inline unsigned int skb_end_offset(const struct sk_buff *skb) in skb_end_offset()
1116 static inline struct skb_shared_hwtstamps *skb_hwtstamps(struct sk_buff *skb) in skb_hwtstamps()
1129 return list->next == (const struct sk_buff *) list; in skb_queue_empty()
1140 const struct sk_buff *skb) in skb_queue_is_last()
1142 return skb->next == (const struct sk_buff *) list; in skb_queue_is_last()
1153 const struct sk_buff *skb) in skb_queue_is_first()
1155 return skb->prev == (const struct sk_buff *) list; in skb_queue_is_first()
1166 static inline struct sk_buff *skb_queue_next(const struct sk_buff_head *list, in skb_queue_next()
1167 const struct sk_buff *skb) in skb_queue_next()
1184 static inline struct sk_buff *skb_queue_prev(const struct sk_buff_head *list, in skb_queue_prev()
1185 const struct sk_buff *skb) in skb_queue_prev()
1201 static inline struct sk_buff *skb_get(struct sk_buff *skb) in skb_get()
1220 static inline int skb_cloned(const struct sk_buff *skb) in skb_cloned()
1226 static inline int skb_unclone(struct sk_buff *skb, gfp_t pri) in skb_unclone()
1243 static inline int skb_header_cloned(const struct sk_buff *skb) in skb_header_cloned()
1264 static inline void skb_header_release(struct sk_buff *skb) in skb_header_release()
1278 static inline void __skb_header_release(struct sk_buff *skb) in __skb_header_release()
1292 static inline int skb_shared(const struct sk_buff *skb) in skb_shared()
1310 static inline struct sk_buff *skb_share_check(struct sk_buff *skb, gfp_t pri) in skb_share_check()
1314 struct sk_buff *nskb = skb_clone(skb, pri); in skb_share_check()
1345 static inline struct sk_buff *skb_unshare(struct sk_buff *skb, in skb_unshare()
1350 struct sk_buff *nskb = skb_copy(skb, pri); in skb_unshare()
1375 static inline struct sk_buff *skb_peek(const struct sk_buff_head *list_) in skb_peek()
1377 struct sk_buff *skb = list_->next; in skb_peek()
1379 if (skb == (struct sk_buff *)list_) in skb_peek()
1393 static inline struct sk_buff *skb_peek_next(struct sk_buff *skb, in skb_peek_next()
1396 struct sk_buff *next = skb->next; in skb_peek_next()
1398 if (next == (struct sk_buff *)list_) in skb_peek_next()
1416 static inline struct sk_buff *skb_peek_tail(const struct sk_buff_head *list_) in skb_peek_tail()
1418 struct sk_buff *skb = list_->prev; in skb_peek_tail()
1420 if (skb == (struct sk_buff *)list_) in skb_peek_tail()
1449 list->prev = list->next = (struct sk_buff *)list; in __skb_queue_head_init()
1480 void skb_insert(struct sk_buff *old, struct sk_buff *newsk,
1482 static inline void __skb_insert(struct sk_buff *newsk, in __skb_insert()
1483 struct sk_buff *prev, struct sk_buff *next, in __skb_insert()
1493 struct sk_buff *prev, in __skb_queue_splice()
1494 struct sk_buff *next) in __skb_queue_splice()
1496 struct sk_buff *first = list->next; in __skb_queue_splice()
1497 struct sk_buff *last = list->prev; in __skb_queue_splice()
1515 __skb_queue_splice(list, (struct sk_buff *) head, head->next); in skb_queue_splice()
1531 __skb_queue_splice(list, (struct sk_buff *) head, head->next); in skb_queue_splice_init()
1546 __skb_queue_splice(list, head->prev, (struct sk_buff *) head); in skb_queue_splice_tail()
1563 __skb_queue_splice(list, head->prev, (struct sk_buff *) head); in skb_queue_splice_tail_init()
1581 struct sk_buff *prev, in __skb_queue_after()
1582 struct sk_buff *newsk) in __skb_queue_after()
1587 void skb_append(struct sk_buff *old, struct sk_buff *newsk,
1591 struct sk_buff *next, in __skb_queue_before()
1592 struct sk_buff *newsk) in __skb_queue_before()
1607 void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk);
1609 struct sk_buff *newsk) in __skb_queue_head()
1611 __skb_queue_after(list, (struct sk_buff *)list, newsk); in __skb_queue_head()
1624 void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk);
1626 struct sk_buff *newsk) in __skb_queue_tail()
1628 __skb_queue_before(list, (struct sk_buff *)list, newsk); in __skb_queue_tail()
1635 void skb_unlink(struct sk_buff *skb, struct sk_buff_head *list);
1636 static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) in __skb_unlink()
1638 struct sk_buff *next, *prev; in __skb_unlink()
1656 struct sk_buff *skb_dequeue(struct sk_buff_head *list);
1657 static inline struct sk_buff *__skb_dequeue(struct sk_buff_head *list) in __skb_dequeue()
1659 struct sk_buff *skb = skb_peek(list); in __skb_dequeue()
1673 struct sk_buff *skb_dequeue_tail(struct sk_buff_head *list);
1674 static inline struct sk_buff *__skb_dequeue_tail(struct sk_buff_head *list) in __skb_dequeue_tail()
1676 struct sk_buff *skb = skb_peek_tail(list); in __skb_dequeue_tail()
1683 static inline bool skb_is_nonlinear(const struct sk_buff *skb) in skb_is_nonlinear()
1688 static inline unsigned int skb_headlen(const struct sk_buff *skb) in skb_headlen()
1693 static inline int skb_pagelen(const struct sk_buff *skb) in skb_pagelen()
1715 static inline void __skb_fill_page_desc(struct sk_buff *skb, int i, in __skb_fill_page_desc()
1748 static inline void skb_fill_page_desc(struct sk_buff *skb, int i, in skb_fill_page_desc()
1755 void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off,
1758 void skb_coalesce_rx_frag(struct sk_buff *skb, int i, int size,
1766 static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb) in skb_tail_pointer()
1771 static inline void skb_reset_tail_pointer(struct sk_buff *skb) in skb_reset_tail_pointer()
1776 static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset) in skb_set_tail_pointer()
1783 static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb) in skb_tail_pointer()
1788 static inline void skb_reset_tail_pointer(struct sk_buff *skb) in skb_reset_tail_pointer()
1793 static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset) in skb_set_tail_pointer()
1803 unsigned char *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len);
1804 unsigned char *skb_put(struct sk_buff *skb, unsigned int len);
1805 static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len) in __skb_put()
1814 unsigned char *skb_push(struct sk_buff *skb, unsigned int len);
1815 static inline unsigned char *__skb_push(struct sk_buff *skb, unsigned int len) in __skb_push()
1822 unsigned char *skb_pull(struct sk_buff *skb, unsigned int len);
1823 static inline unsigned char *__skb_pull(struct sk_buff *skb, unsigned int len) in __skb_pull()
1830 static inline unsigned char *skb_pull_inline(struct sk_buff *skb, unsigned int len) in skb_pull_inline()
1835 unsigned char *__pskb_pull_tail(struct sk_buff *skb, int delta);
1837 static inline unsigned char *__pskb_pull(struct sk_buff *skb, unsigned int len) in __pskb_pull()
1846 static inline unsigned char *pskb_pull(struct sk_buff *skb, unsigned int len) in pskb_pull()
1851 static inline int pskb_may_pull(struct sk_buff *skb, unsigned int len) in pskb_may_pull()
1866 static inline unsigned int skb_headroom(const struct sk_buff *skb) in skb_headroom()
1877 static inline int skb_tailroom(const struct sk_buff *skb) in skb_tailroom()
1889 static inline int skb_availroom(const struct sk_buff *skb) in skb_availroom()
1905 static inline void skb_reserve(struct sk_buff *skb, int len) in skb_reserve()
1923 static inline void skb_tailroom_reserve(struct sk_buff *skb, unsigned int mtu, in skb_tailroom_reserve()
1938 static inline void skb_set_inner_protocol(struct sk_buff *skb, in skb_set_inner_protocol()
1945 static inline void skb_set_inner_ipproto(struct sk_buff *skb, in skb_set_inner_ipproto()
1952 static inline void skb_reset_inner_headers(struct sk_buff *skb) in skb_reset_inner_headers()
1959 static inline void skb_reset_mac_len(struct sk_buff *skb) in skb_reset_mac_len()
1964 static inline unsigned char *skb_inner_transport_header(const struct sk_buff in skb_inner_transport_header()
1970 static inline void skb_reset_inner_transport_header(struct sk_buff *skb) in skb_reset_inner_transport_header()
1975 static inline void skb_set_inner_transport_header(struct sk_buff *skb, in skb_set_inner_transport_header()
1982 static inline unsigned char *skb_inner_network_header(const struct sk_buff *skb) in skb_inner_network_header()
1987 static inline void skb_reset_inner_network_header(struct sk_buff *skb) in skb_reset_inner_network_header()
1992 static inline void skb_set_inner_network_header(struct sk_buff *skb, in skb_set_inner_network_header()
1999 static inline unsigned char *skb_inner_mac_header(const struct sk_buff *skb) in skb_inner_mac_header()
2004 static inline void skb_reset_inner_mac_header(struct sk_buff *skb) in skb_reset_inner_mac_header()
2009 static inline void skb_set_inner_mac_header(struct sk_buff *skb, in skb_set_inner_mac_header()
2015 static inline bool skb_transport_header_was_set(const struct sk_buff *skb) in skb_transport_header_was_set()
2020 static inline unsigned char *skb_transport_header(const struct sk_buff *skb) in skb_transport_header()
2025 static inline void skb_reset_transport_header(struct sk_buff *skb) in skb_reset_transport_header()
2030 static inline void skb_set_transport_header(struct sk_buff *skb, in skb_set_transport_header()
2037 static inline unsigned char *skb_network_header(const struct sk_buff *skb) in skb_network_header()
2042 static inline void skb_reset_network_header(struct sk_buff *skb) in skb_reset_network_header()
2047 static inline void skb_set_network_header(struct sk_buff *skb, const int offset) in skb_set_network_header()
2053 static inline unsigned char *skb_mac_header(const struct sk_buff *skb) in skb_mac_header()
2058 static inline int skb_mac_header_was_set(const struct sk_buff *skb) in skb_mac_header_was_set()
2063 static inline void skb_reset_mac_header(struct sk_buff *skb) in skb_reset_mac_header()
2068 static inline void skb_set_mac_header(struct sk_buff *skb, const int offset) in skb_set_mac_header()
2074 static inline void skb_pop_mac_header(struct sk_buff *skb) in skb_pop_mac_header()
2079 static inline void skb_probe_transport_header(struct sk_buff *skb, in skb_probe_transport_header()
2092 static inline void skb_mac_header_rebuild(struct sk_buff *skb) in skb_mac_header_rebuild()
2102 static inline int skb_checksum_start_offset(const struct sk_buff *skb) in skb_checksum_start_offset()
2107 static inline int skb_transport_offset(const struct sk_buff *skb) in skb_transport_offset()
2112 static inline u32 skb_network_header_len(const struct sk_buff *skb) in skb_network_header_len()
2117 static inline u32 skb_inner_network_header_len(const struct sk_buff *skb) in skb_inner_network_header_len()
2122 static inline int skb_network_offset(const struct sk_buff *skb) in skb_network_offset()
2127 static inline int skb_inner_network_offset(const struct sk_buff *skb) in skb_inner_network_offset()
2132 static inline int pskb_network_may_pull(struct sk_buff *skb, unsigned int len) in pskb_network_may_pull()
2185 int ___pskb_trim(struct sk_buff *skb, unsigned int len);
2187 static inline void __skb_trim(struct sk_buff *skb, unsigned int len) in __skb_trim()
2197 void skb_trim(struct sk_buff *skb, unsigned int len);
2199 static inline int __pskb_trim(struct sk_buff *skb, unsigned int len) in __pskb_trim()
2207 static inline int pskb_trim(struct sk_buff *skb, unsigned int len) in pskb_trim()
2221 static inline void pskb_trim_unique(struct sk_buff *skb, unsigned int len) in pskb_trim_unique()
2235 static inline void skb_orphan(struct sk_buff *skb) in skb_orphan()
2255 static inline int skb_orphan_frags(struct sk_buff *skb, gfp_t gfp_mask) in skb_orphan_frags()
2273 struct sk_buff *skb; in __skb_queue_purge()
2280 struct sk_buff *__netdev_alloc_skb(struct net_device *dev, unsigned int length,
2296 static inline struct sk_buff *netdev_alloc_skb(struct net_device *dev, in netdev_alloc_skb()
2303 static inline struct sk_buff *__dev_alloc_skb(unsigned int length, in __dev_alloc_skb()
2310 static inline struct sk_buff *dev_alloc_skb(unsigned int length) in dev_alloc_skb()
2316 static inline struct sk_buff *__netdev_alloc_skb_ip_align(struct net_device *dev, in __netdev_alloc_skb_ip_align()
2319 struct sk_buff *skb = __netdev_alloc_skb(dev, length + NET_IP_ALIGN, gfp); in __netdev_alloc_skb_ip_align()
2326 static inline struct sk_buff *netdev_alloc_skb_ip_align(struct net_device *dev, in netdev_alloc_skb_ip_align()
2338 struct sk_buff *__napi_alloc_skb(struct napi_struct *napi,
2340 static inline struct sk_buff *napi_alloc_skb(struct napi_struct *napi, in napi_alloc_skb()
2400 struct sk_buff *skb) in skb_propagate_pfmemalloc()
2435 static inline void skb_frag_ref(struct sk_buff *skb, int f) in skb_frag_ref()
2458 static inline void skb_frag_unref(struct sk_buff *skb, int f) in skb_frag_unref()
2511 static inline void skb_frag_set_page(struct sk_buff *skb, int f, in skb_frag_set_page()
2539 static inline struct sk_buff *pskb_copy(struct sk_buff *skb, in pskb_copy()
2546 static inline struct sk_buff *pskb_copy_for_clone(struct sk_buff *skb, in pskb_copy_for_clone()
2561 static inline int skb_clone_writable(const struct sk_buff *skb, unsigned int len) in skb_clone_writable()
2567 static inline int __skb_cow(struct sk_buff *skb, unsigned int headroom, in __skb_cow()
2593 static inline int skb_cow(struct sk_buff *skb, unsigned int headroom) in skb_cow()
2608 static inline int skb_cow_head(struct sk_buff *skb, unsigned int headroom) in skb_cow_head()
2623 static inline int skb_padto(struct sk_buff *skb, unsigned int len) in skb_padto()
2641 static inline int skb_put_padto(struct sk_buff *skb, unsigned int len) in skb_put_padto()
2654 static inline int skb_add_data(struct sk_buff *skb, in skb_add_data()
2673 static inline bool skb_can_coalesce(struct sk_buff *skb, int i, in skb_can_coalesce()
2685 static inline int __skb_linearize(struct sk_buff *skb) in __skb_linearize()
2697 static inline int skb_linearize(struct sk_buff *skb) in skb_linearize()
2709 static inline bool skb_has_shared_frag(const struct sk_buff *skb) in skb_has_shared_frag()
2722 static inline int skb_linearize_cow(struct sk_buff *skb) in skb_linearize_cow()
2739 static inline void skb_postpull_rcsum(struct sk_buff *skb, in skb_postpull_rcsum()
2749 unsigned char *skb_pull_rcsum(struct sk_buff *skb, unsigned int len);
2751 static inline void skb_postpush_rcsum(struct sk_buff *skb, in skb_postpush_rcsum()
2777 static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len) in pskb_trim_rcsum()
2788 skb != (struct sk_buff *)(queue); \
2793 skb != (struct sk_buff *)(queue); \
2797 for (; skb != (struct sk_buff *)(queue); \
2802 skb != (struct sk_buff *)(queue); \
2807 skb != (struct sk_buff *)(queue); \
2812 skb != (struct sk_buff *)(queue); \
2817 skb != (struct sk_buff *)(queue); \
2820 static inline bool skb_has_frag_list(const struct sk_buff *skb) in skb_has_frag_list()
2825 static inline void skb_frag_list_init(struct sk_buff *skb) in skb_frag_list_init()
2833 struct sk_buff *__skb_recv_datagram(struct sock *sk, unsigned flags,
2835 struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock,
2839 int skb_copy_datagram_iter(const struct sk_buff *from, int offset,
2841 static inline int skb_copy_datagram_msg(const struct sk_buff *from, int offset, in skb_copy_datagram_msg()
2846 int skb_copy_and_csum_datagram_msg(struct sk_buff *skb, int hlen,
2848 int skb_copy_datagram_from_iter(struct sk_buff *skb, int offset,
2850 int zerocopy_sg_from_iter(struct sk_buff *skb, struct iov_iter *frm);
2851 void skb_free_datagram(struct sock *sk, struct sk_buff *skb);
2852 void skb_free_datagram_locked(struct sock *sk, struct sk_buff *skb);
2853 int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags);
2854 int skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len);
2855 int skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len);
2856 __wsum skb_copy_and_csum_bits(const struct sk_buff *skb, int offset, u8 *to,
2861 int skb_splice_bits(struct sk_buff *skb, struct sock *sk, unsigned int offset,
2867 void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to);
2868 unsigned int skb_zerocopy_headlen(const struct sk_buff *from);
2869 int skb_zerocopy(struct sk_buff *to, struct sk_buff *from,
2871 void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len);
2872 int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen);
2873 void skb_scrub_packet(struct sk_buff *skb, bool xnet);
2874 unsigned int skb_gso_transport_seglen(const struct sk_buff *skb);
2875 struct sk_buff *skb_segment(struct sk_buff *skb, netdev_features_t features);
2876 struct sk_buff *skb_vlan_untag(struct sk_buff *skb);
2877 int skb_ensure_writable(struct sk_buff *skb, int write_len);
2878 int skb_vlan_pop(struct sk_buff *skb);
2879 int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci);
2896 __wsum __skb_checksum(const struct sk_buff *skb, int offset, int len,
2898 __wsum skb_checksum(const struct sk_buff *skb, int offset, int len,
2902 __skb_header_pointer(const struct sk_buff *skb, int offset, in __skb_header_pointer()
2916 skb_header_pointer(const struct sk_buff *skb, int offset, int len, void *buffer) in skb_header_pointer()
2932 static inline bool skb_needs_linearize(struct sk_buff *skb, in skb_needs_linearize()
2940 static inline void skb_copy_from_linear_data(const struct sk_buff *skb, in skb_copy_from_linear_data()
2947 static inline void skb_copy_from_linear_data_offset(const struct sk_buff *skb, in skb_copy_from_linear_data_offset()
2954 static inline void skb_copy_to_linear_data(struct sk_buff *skb, in skb_copy_to_linear_data()
2961 static inline void skb_copy_to_linear_data_offset(struct sk_buff *skb, in skb_copy_to_linear_data_offset()
2971 static inline ktime_t skb_get_ktime(const struct sk_buff *skb) in skb_get_ktime()
2985 static inline void skb_get_timestamp(const struct sk_buff *skb, in skb_get_timestamp()
2991 static inline void skb_get_timestampns(const struct sk_buff *skb, in skb_get_timestampns()
2997 static inline void __net_timestamp(struct sk_buff *skb) in __net_timestamp()
3012 struct sk_buff *skb_clone_sk(struct sk_buff *skb);
3016 void skb_clone_tx_timestamp(struct sk_buff *skb);
3017 bool skb_defer_rx_timestamp(struct sk_buff *skb);
3021 static inline void skb_clone_tx_timestamp(struct sk_buff *skb) in skb_clone_tx_timestamp()
3025 static inline bool skb_defer_rx_timestamp(struct sk_buff *skb) in skb_defer_rx_timestamp()
3044 void skb_complete_tx_timestamp(struct sk_buff *skb,
3047 void __skb_tstamp_tx(struct sk_buff *orig_skb,
3062 void skb_tstamp_tx(struct sk_buff *orig_skb,
3065 static inline void sw_tx_timestamp(struct sk_buff *skb) in sw_tx_timestamp()
3084 static inline void skb_tx_timestamp(struct sk_buff *skb) in skb_tx_timestamp()
3097 void skb_complete_wifi_ack(struct sk_buff *skb, bool acked);
3099 __sum16 __skb_checksum_complete_head(struct sk_buff *skb, int len);
3100 __sum16 __skb_checksum_complete(struct sk_buff *skb);
3102 static inline int skb_csum_unnecessary(const struct sk_buff *skb) in skb_csum_unnecessary()
3126 static inline __sum16 skb_checksum_complete(struct sk_buff *skb) in skb_checksum_complete()
3132 static inline void __skb_decr_checksum_unnecessary(struct sk_buff *skb) in __skb_decr_checksum_unnecessary()
3142 static inline void __skb_incr_checksum_unnecessary(struct sk_buff *skb) in __skb_incr_checksum_unnecessary()
3153 static inline void __skb_mark_checksum_bad(struct sk_buff *skb) in __skb_mark_checksum_bad()
3173 static inline bool __skb_checksum_validate_needed(struct sk_buff *skb, in __skb_checksum_validate_needed()
3197 static inline void skb_checksum_complete_unset(struct sk_buff *skb) in skb_checksum_complete_unset()
3212 static inline __sum16 __skb_checksum_validate_complete(struct sk_buff *skb, in __skb_checksum_validate_complete()
3239 static inline __wsum null_compute_pseudo(struct sk_buff *skb, int proto) in null_compute_pseudo()
3281 static inline bool __skb_checksum_convert_check(struct sk_buff *skb) in __skb_checksum_convert_check()
3287 static inline void __skb_checksum_convert(struct sk_buff *skb, in __skb_checksum_convert()
3301 static inline void skb_remcsum_adjust_partial(struct sk_buff *skb, void *ptr, in skb_remcsum_adjust_partial()
3314 static inline void skb_remcsum_process(struct sk_buff *skb, void *ptr, in skb_remcsum_process()
3360 static inline void nf_reset(struct sk_buff *skb) in nf_reset()
3372 static inline void nf_reset_trace(struct sk_buff *skb) in nf_reset_trace()
3380 static inline void __nf_copy(struct sk_buff *dst, const struct sk_buff *src, in __nf_copy()
3399 static inline void nf_copy(struct sk_buff *dst, const struct sk_buff *src) in nf_copy()
3411 static inline void skb_copy_secmark(struct sk_buff *to, const struct sk_buff *from) in skb_copy_secmark()
3416 static inline void skb_init_secmark(struct sk_buff *skb) in skb_init_secmark()
3421 static inline void skb_copy_secmark(struct sk_buff *to, const struct sk_buff *from) in skb_copy_secmark()
3424 static inline void skb_init_secmark(struct sk_buff *skb) in skb_init_secmark()
3428 static inline bool skb_irq_freeable(const struct sk_buff *skb) in skb_irq_freeable()
3441 static inline void skb_set_queue_mapping(struct sk_buff *skb, u16 queue_mapping) in skb_set_queue_mapping()
3446 static inline u16 skb_get_queue_mapping(const struct sk_buff *skb) in skb_get_queue_mapping()
3451 static inline void skb_copy_queue_mapping(struct sk_buff *to, const struct sk_buff *from) in skb_copy_queue_mapping()
3456 static inline void skb_record_rx_queue(struct sk_buff *skb, u16 rx_queue) in skb_record_rx_queue()
3461 static inline u16 skb_get_rx_queue(const struct sk_buff *skb) in skb_get_rx_queue()
3466 static inline bool skb_rx_queue_recorded(const struct sk_buff *skb) in skb_rx_queue_recorded()
3471 static inline struct sec_path *skb_sec_path(struct sk_buff *skb) in skb_sec_path()
3494 static inline int skb_tnl_header_len(const struct sk_buff *inner_skb) in skb_tnl_header_len()
3500 static inline int gso_pskb_expand_head(struct sk_buff *skb, int extra) in gso_pskb_expand_head()
3523 static inline __sum16 gso_make_checksum(struct sk_buff *skb, __wsum res) in gso_make_checksum()
3536 static inline bool skb_is_gso(const struct sk_buff *skb) in skb_is_gso()
3542 static inline bool skb_is_gso_v6(const struct sk_buff *skb) in skb_is_gso_v6()
3547 void __skb_warn_lro_forwarding(const struct sk_buff *skb);
3549 static inline bool skb_warn_if_lro(const struct sk_buff *skb) in skb_warn_if_lro()
3563 static inline void skb_forward_csum(struct sk_buff *skb) in skb_forward_csum()
3578 static inline void skb_checksum_none_assert(const struct sk_buff *skb) in skb_checksum_none_assert()
3585 bool skb_partial_csum_set(struct sk_buff *skb, u16 start, u16 off);
3587 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
3588 struct sk_buff *skb_checksum_trimmed(struct sk_buff *skb,
3590 __sum16(*skb_chkf)(struct sk_buff *skb));
3601 static inline bool skb_head_is_locked(const struct sk_buff *skb) in skb_head_is_locked()
3616 static inline unsigned int skb_gso_network_seglen(const struct sk_buff *skb) in skb_gso_network_seglen()