Lines Matching refs:sk_buff
238 SKB_DATA_ALIGN(sizeof(struct sk_buff)) + \
293 struct sk_buff *next;
294 struct sk_buff *prev;
300 struct sk_buff;
504 int skb_zerocopy_iter_dgram(struct sk_buff *skb, struct msghdr *msg, int len);
505 int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb,
520 struct sk_buff *frag_list;
713 struct sk_buff { struct
717 struct sk_buff *next; argument
718 struct sk_buff *prev;
753 void (*destructor)(struct sk_buff *skb); argument
777 #define CLONED_OFFSET() offsetof(struct sk_buff, __cloned_offset) argument
804 #define PKT_TYPE_OFFSET() offsetof(struct sk_buff, __pkt_type_offset) argument
830 #define PKT_VLAN_PRESENT_OFFSET() offsetof(struct sk_buff, __pkt_vlan_present_offset) argument
938 static inline bool skb_pfmemalloc(const struct sk_buff *skb) in skb_pfmemalloc() argument
956 static inline struct dst_entry *skb_dst(const struct sk_buff *skb) in skb_dst()
975 static inline void skb_dst_set(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set()
990 static inline void skb_dst_set_noref(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set_noref()
1000 static inline bool skb_dst_is_noref(const struct sk_buff *skb) in skb_dst_is_noref()
1009 static inline struct rtable *skb_rtable(const struct sk_buff *skb) in skb_rtable()
1027 static inline unsigned int skb_napi_id(const struct sk_buff *skb) in skb_napi_id()
1042 static inline bool skb_unref(struct sk_buff *skb) in skb_unref()
1054 void skb_release_head_state(struct sk_buff *skb);
1055 void kfree_skb(struct sk_buff *skb);
1056 void kfree_skb_list(struct sk_buff *segs);
1057 void skb_dump(const char *level, const struct sk_buff *skb, bool full_pkt);
1058 void skb_tx_error(struct sk_buff *skb);
1061 void consume_skb(struct sk_buff *skb);
1063 static inline void consume_skb(struct sk_buff *skb) in consume_skb()
1069 void __consume_stateless_skb(struct sk_buff *skb);
1070 void __kfree_skb(struct sk_buff *skb);
1073 void kfree_skb_partial(struct sk_buff *skb, bool head_stolen);
1074 bool skb_try_coalesce(struct sk_buff *to, struct sk_buff *from,
1077 struct sk_buff *__alloc_skb(unsigned int size, gfp_t priority, int flags,
1079 struct sk_buff *__build_skb(void *data, unsigned int frag_size);
1080 struct sk_buff *build_skb(void *data, unsigned int frag_size);
1081 struct sk_buff *build_skb_around(struct sk_buff *skb,
1091 static inline struct sk_buff *alloc_skb(unsigned int size, in alloc_skb()
1097 struct sk_buff *alloc_skb_with_frags(unsigned long header_len,
1102 struct sk_buff *alloc_skb_for_msg(struct sk_buff *first);
1106 struct sk_buff skb1;
1108 struct sk_buff skb2;
1123 const struct sk_buff *skb) in skb_fclone_busy()
1141 static inline struct sk_buff *alloc_skb_fclone(unsigned int size, in alloc_skb_fclone()
1147 struct sk_buff *skb_morph(struct sk_buff *dst, struct sk_buff *src);
1148 void skb_headers_offset_update(struct sk_buff *skb, int off);
1149 int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask);
1150 struct sk_buff *skb_clone(struct sk_buff *skb, gfp_t priority);
1151 void skb_copy_header(struct sk_buff *new, const struct sk_buff *old);
1152 struct sk_buff *skb_copy(const struct sk_buff *skb, gfp_t priority);
1153 struct sk_buff *__pskb_copy_fclone(struct sk_buff *skb, int headroom,
1155 static inline struct sk_buff *__pskb_copy(struct sk_buff *skb, int headroom, in __pskb_copy()
1161 int pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, gfp_t gfp_mask);
1162 struct sk_buff *skb_realloc_headroom(struct sk_buff *skb,
1164 struct sk_buff *skb_copy_expand(const struct sk_buff *skb, int newheadroom,
1166 int __must_check skb_to_sgvec_nomark(struct sk_buff *skb, struct scatterlist *sg,
1168 int __must_check skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg,
1170 int skb_cow_data(struct sk_buff *skb, int tailbits, struct sk_buff **trailer);
1171 int __skb_pad(struct sk_buff *skb, int pad, bool free_on_error);
1184 static inline int skb_pad(struct sk_buff *skb, int pad) in skb_pad()
1190 int skb_append_pagefrags(struct sk_buff *skb, struct page *page,
1198 struct sk_buff *root_skb;
1199 struct sk_buff *cur_skb;
1203 void skb_prepare_seq_read(struct sk_buff *skb, unsigned int from,
1209 unsigned int skb_find_text(struct sk_buff *skb, unsigned int from,
1245 static inline void skb_clear_hash(struct sk_buff *skb) in skb_clear_hash()
1252 static inline void skb_clear_hash_if_not_l4(struct sk_buff *skb) in skb_clear_hash_if_not_l4()
1259 __skb_set_hash(struct sk_buff *skb, __u32 hash, bool is_sw, bool is_l4) in __skb_set_hash()
1267 skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type) in skb_set_hash()
1274 __skb_set_sw_hash(struct sk_buff *skb, __u32 hash, bool is_l4) in __skb_set_sw_hash()
1279 void __skb_get_hash(struct sk_buff *skb);
1280 u32 __skb_get_hash_symmetric(const struct sk_buff *skb);
1281 u32 skb_get_poff(const struct sk_buff *skb);
1282 u32 __skb_get_poff(const struct sk_buff *skb, void *data,
1284 __be32 __skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto,
1287 static inline __be32 skb_flow_get_ports(const struct sk_buff *skb, in skb_flow_get_ports()
1302 const struct sk_buff *skb,
1308 static inline bool skb_flow_dissect(const struct sk_buff *skb, in skb_flow_dissect()
1316 static inline bool skb_flow_dissect_flow_keys(const struct sk_buff *skb, in skb_flow_dissect_flow_keys()
1327 const struct sk_buff *skb, in skb_flow_dissect_flow_keys_basic()
1337 void skb_flow_dissect_meta(const struct sk_buff *skb,
1346 skb_flow_dissect_ct(const struct sk_buff *skb,
1352 skb_flow_dissect_tunnel_info(const struct sk_buff *skb,
1356 void skb_flow_dissect_hash(const struct sk_buff *skb,
1360 static inline __u32 skb_get_hash(struct sk_buff *skb) in skb_get_hash()
1368 static inline __u32 skb_get_hash_flowi6(struct sk_buff *skb, const struct flowi6 *fl6) in skb_get_hash_flowi6()
1380 __u32 skb_get_hash_perturb(const struct sk_buff *skb,
1383 static inline __u32 skb_get_hash_raw(const struct sk_buff *skb) in skb_get_hash_raw()
1388 static inline void skb_copy_hash(struct sk_buff *to, const struct sk_buff *from) in skb_copy_hash()
1395 static inline void skb_copy_decrypted(struct sk_buff *to, in skb_copy_decrypted()
1396 const struct sk_buff *from) in skb_copy_decrypted()
1404 static inline unsigned char *skb_end_pointer(const struct sk_buff *skb) in skb_end_pointer()
1409 static inline unsigned int skb_end_offset(const struct sk_buff *skb) in skb_end_offset()
1414 static inline unsigned char *skb_end_pointer(const struct sk_buff *skb) in skb_end_pointer()
1419 static inline unsigned int skb_end_offset(const struct sk_buff *skb) in skb_end_offset()
1428 static inline struct skb_shared_hwtstamps *skb_hwtstamps(struct sk_buff *skb) in skb_hwtstamps()
1433 static inline struct ubuf_info *skb_zcopy(struct sk_buff *skb) in skb_zcopy()
1440 static inline void skb_zcopy_set(struct sk_buff *skb, struct ubuf_info *uarg, in skb_zcopy_set()
1453 static inline void skb_zcopy_set_nouarg(struct sk_buff *skb, void *val) in skb_zcopy_set_nouarg()
1459 static inline bool skb_zcopy_is_nouarg(struct sk_buff *skb) in skb_zcopy_is_nouarg()
1464 static inline void *skb_zcopy_get_nouarg(struct sk_buff *skb) in skb_zcopy_get_nouarg()
1470 static inline void skb_zcopy_clear(struct sk_buff *skb, bool zerocopy) in skb_zcopy_clear()
1489 static inline void skb_zcopy_abort(struct sk_buff *skb) in skb_zcopy_abort()
1499 static inline void skb_mark_not_on_list(struct sk_buff *skb) in skb_mark_not_on_list()
1509 static inline void skb_list_del_init(struct sk_buff *skb) in skb_list_del_init()
1523 return list->next == (const struct sk_buff *) list; in skb_queue_empty()
1535 return READ_ONCE(list->next) == (const struct sk_buff *) list; in skb_queue_empty_lockless()
1547 const struct sk_buff *skb) in skb_queue_is_last()
1549 return skb->next == (const struct sk_buff *) list; in skb_queue_is_last()
1560 const struct sk_buff *skb) in skb_queue_is_first()
1562 return skb->prev == (const struct sk_buff *) list; in skb_queue_is_first()
1573 static inline struct sk_buff *skb_queue_next(const struct sk_buff_head *list, in skb_queue_next()
1574 const struct sk_buff *skb) in skb_queue_next()
1591 static inline struct sk_buff *skb_queue_prev(const struct sk_buff_head *list, in skb_queue_prev()
1592 const struct sk_buff *skb) in skb_queue_prev()
1608 static inline struct sk_buff *skb_get(struct sk_buff *skb) in skb_get()
1626 static inline int skb_cloned(const struct sk_buff *skb) in skb_cloned()
1632 static inline int skb_unclone(struct sk_buff *skb, gfp_t pri) in skb_unclone()
1649 static inline int skb_header_cloned(const struct sk_buff *skb) in skb_header_cloned()
1661 static inline int skb_header_unclone(struct sk_buff *skb, gfp_t pri) in skb_header_unclone()
1675 static inline void __skb_header_release(struct sk_buff *skb) in __skb_header_release()
1689 static inline int skb_shared(const struct sk_buff *skb) in skb_shared()
1707 static inline struct sk_buff *skb_share_check(struct sk_buff *skb, gfp_t pri) in skb_share_check()
1711 struct sk_buff *nskb = skb_clone(skb, pri); in skb_share_check()
1742 static inline struct sk_buff *skb_unshare(struct sk_buff *skb, in skb_unshare()
1747 struct sk_buff *nskb = skb_copy(skb, pri); in skb_unshare()
1772 static inline struct sk_buff *skb_peek(const struct sk_buff_head *list_) in skb_peek()
1774 struct sk_buff *skb = list_->next; in skb_peek()
1776 if (skb == (struct sk_buff *)list_) in skb_peek()
1787 static inline struct sk_buff *__skb_peek(const struct sk_buff_head *list_) in __skb_peek()
1801 static inline struct sk_buff *skb_peek_next(struct sk_buff *skb, in skb_peek_next()
1804 struct sk_buff *next = skb->next; in skb_peek_next()
1806 if (next == (struct sk_buff *)list_) in skb_peek_next()
1824 static inline struct sk_buff *skb_peek_tail(const struct sk_buff_head *list_) in skb_peek_tail()
1826 struct sk_buff *skb = READ_ONCE(list_->prev); in skb_peek_tail()
1828 if (skb == (struct sk_buff *)list_) in skb_peek_tail()
1869 list->prev = list->next = (struct sk_buff *)list; in __skb_queue_head_init()
1900 static inline void __skb_insert(struct sk_buff *newsk, in __skb_insert()
1901 struct sk_buff *prev, struct sk_buff *next, in __skb_insert()
1915 struct sk_buff *prev, in __skb_queue_splice()
1916 struct sk_buff *next) in __skb_queue_splice()
1918 struct sk_buff *first = list->next; in __skb_queue_splice()
1919 struct sk_buff *last = list->prev; in __skb_queue_splice()
1937 __skb_queue_splice(list, (struct sk_buff *) head, head->next); in skb_queue_splice()
1953 __skb_queue_splice(list, (struct sk_buff *) head, head->next); in skb_queue_splice_init()
1968 __skb_queue_splice(list, head->prev, (struct sk_buff *) head); in skb_queue_splice_tail()
1985 __skb_queue_splice(list, head->prev, (struct sk_buff *) head); in skb_queue_splice_tail_init()
2003 struct sk_buff *prev, in __skb_queue_after()
2004 struct sk_buff *newsk) in __skb_queue_after()
2009 void skb_append(struct sk_buff *old, struct sk_buff *newsk,
2013 struct sk_buff *next, in __skb_queue_before()
2014 struct sk_buff *newsk) in __skb_queue_before()
2030 struct sk_buff *newsk) in __skb_queue_head()
2032 __skb_queue_after(list, (struct sk_buff *)list, newsk); in __skb_queue_head()
2034 void skb_queue_head(struct sk_buff_head *list, struct sk_buff *newsk);
2047 struct sk_buff *newsk) in __skb_queue_tail()
2049 __skb_queue_before(list, (struct sk_buff *)list, newsk); in __skb_queue_tail()
2051 void skb_queue_tail(struct sk_buff_head *list, struct sk_buff *newsk);
2057 void skb_unlink(struct sk_buff *skb, struct sk_buff_head *list);
2058 static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) in __skb_unlink()
2060 struct sk_buff *next, *prev; in __skb_unlink()
2078 static inline struct sk_buff *__skb_dequeue(struct sk_buff_head *list) in __skb_dequeue()
2080 struct sk_buff *skb = skb_peek(list); in __skb_dequeue()
2085 struct sk_buff *skb_dequeue(struct sk_buff_head *list);
2095 static inline struct sk_buff *__skb_dequeue_tail(struct sk_buff_head *list) in __skb_dequeue_tail()
2097 struct sk_buff *skb = skb_peek_tail(list); in __skb_dequeue_tail()
2102 struct sk_buff *skb_dequeue_tail(struct sk_buff_head *list);
2105 static inline bool skb_is_nonlinear(const struct sk_buff *skb) in skb_is_nonlinear()
2110 static inline unsigned int skb_headlen(const struct sk_buff *skb) in skb_headlen()
2115 static inline unsigned int __skb_pagelen(const struct sk_buff *skb) in __skb_pagelen()
2124 static inline unsigned int skb_pagelen(const struct sk_buff *skb) in skb_pagelen()
2142 static inline void __skb_fill_page_desc(struct sk_buff *skb, int i, in __skb_fill_page_desc()
2175 static inline void skb_fill_page_desc(struct sk_buff *skb, int i, in skb_fill_page_desc()
2182 void skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off,
2185 void skb_coalesce_rx_frag(struct sk_buff *skb, int i, int size,
2191 static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb) in skb_tail_pointer()
2196 static inline void skb_reset_tail_pointer(struct sk_buff *skb) in skb_reset_tail_pointer()
2201 static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset) in skb_set_tail_pointer()
2208 static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb) in skb_tail_pointer()
2213 static inline void skb_reset_tail_pointer(struct sk_buff *skb) in skb_reset_tail_pointer()
2218 static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset) in skb_set_tail_pointer()
2228 void *pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len);
2229 void *skb_put(struct sk_buff *skb, unsigned int len);
2230 static inline void *__skb_put(struct sk_buff *skb, unsigned int len) in __skb_put()
2239 static inline void *__skb_put_zero(struct sk_buff *skb, unsigned int len) in __skb_put_zero()
2247 static inline void *__skb_put_data(struct sk_buff *skb, const void *data, in __skb_put_data()
2256 static inline void __skb_put_u8(struct sk_buff *skb, u8 val) in __skb_put_u8()
2261 static inline void *skb_put_zero(struct sk_buff *skb, unsigned int len) in skb_put_zero()
2270 static inline void *skb_put_data(struct sk_buff *skb, const void *data, in skb_put_data()
2280 static inline void skb_put_u8(struct sk_buff *skb, u8 val) in skb_put_u8()
2285 void *skb_push(struct sk_buff *skb, unsigned int len);
2286 static inline void *__skb_push(struct sk_buff *skb, unsigned int len) in __skb_push()
2293 void *skb_pull(struct sk_buff *skb, unsigned int len);
2294 static inline void *__skb_pull(struct sk_buff *skb, unsigned int len) in __skb_pull()
2301 static inline void *skb_pull_inline(struct sk_buff *skb, unsigned int len) in skb_pull_inline()
2306 void *__pskb_pull_tail(struct sk_buff *skb, int delta);
2308 static inline void *__pskb_pull(struct sk_buff *skb, unsigned int len) in __pskb_pull()
2317 static inline void *pskb_pull(struct sk_buff *skb, unsigned int len) in pskb_pull()
2322 static inline bool pskb_may_pull(struct sk_buff *skb, unsigned int len) in pskb_may_pull()
2331 void skb_condense(struct sk_buff *skb);
2339 static inline unsigned int skb_headroom(const struct sk_buff *skb) in skb_headroom()
2350 static inline int skb_tailroom(const struct sk_buff *skb) in skb_tailroom()
2362 static inline int skb_availroom(const struct sk_buff *skb) in skb_availroom()
2378 static inline void skb_reserve(struct sk_buff *skb, int len) in skb_reserve()
2396 static inline void skb_tailroom_reserve(struct sk_buff *skb, unsigned int mtu, in skb_tailroom_reserve()
2411 static inline void skb_set_inner_protocol(struct sk_buff *skb, in skb_set_inner_protocol()
2418 static inline void skb_set_inner_ipproto(struct sk_buff *skb, in skb_set_inner_ipproto()
2425 static inline void skb_reset_inner_headers(struct sk_buff *skb) in skb_reset_inner_headers()
2432 static inline void skb_reset_mac_len(struct sk_buff *skb) in skb_reset_mac_len()
2437 static inline unsigned char *skb_inner_transport_header(const struct sk_buff in skb_inner_transport_header()
2443 static inline int skb_inner_transport_offset(const struct sk_buff *skb) in skb_inner_transport_offset()
2448 static inline void skb_reset_inner_transport_header(struct sk_buff *skb) in skb_reset_inner_transport_header()
2453 static inline void skb_set_inner_transport_header(struct sk_buff *skb, in skb_set_inner_transport_header()
2460 static inline unsigned char *skb_inner_network_header(const struct sk_buff *skb) in skb_inner_network_header()
2465 static inline void skb_reset_inner_network_header(struct sk_buff *skb) in skb_reset_inner_network_header()
2470 static inline void skb_set_inner_network_header(struct sk_buff *skb, in skb_set_inner_network_header()
2477 static inline unsigned char *skb_inner_mac_header(const struct sk_buff *skb) in skb_inner_mac_header()
2482 static inline void skb_reset_inner_mac_header(struct sk_buff *skb) in skb_reset_inner_mac_header()
2487 static inline void skb_set_inner_mac_header(struct sk_buff *skb, in skb_set_inner_mac_header()
2493 static inline bool skb_transport_header_was_set(const struct sk_buff *skb) in skb_transport_header_was_set()
2498 static inline unsigned char *skb_transport_header(const struct sk_buff *skb) in skb_transport_header()
2503 static inline void skb_reset_transport_header(struct sk_buff *skb) in skb_reset_transport_header()
2508 static inline void skb_set_transport_header(struct sk_buff *skb, in skb_set_transport_header()
2515 static inline unsigned char *skb_network_header(const struct sk_buff *skb) in skb_network_header()
2520 static inline void skb_reset_network_header(struct sk_buff *skb) in skb_reset_network_header()
2525 static inline void skb_set_network_header(struct sk_buff *skb, const int offset) in skb_set_network_header()
2531 static inline unsigned char *skb_mac_header(const struct sk_buff *skb) in skb_mac_header()
2536 static inline int skb_mac_offset(const struct sk_buff *skb) in skb_mac_offset()
2541 static inline u32 skb_mac_header_len(const struct sk_buff *skb) in skb_mac_header_len()
2546 static inline int skb_mac_header_was_set(const struct sk_buff *skb) in skb_mac_header_was_set()
2551 static inline void skb_unset_mac_header(struct sk_buff *skb) in skb_unset_mac_header()
2556 static inline void skb_reset_mac_header(struct sk_buff *skb) in skb_reset_mac_header()
2561 static inline void skb_set_mac_header(struct sk_buff *skb, const int offset) in skb_set_mac_header()
2567 static inline void skb_pop_mac_header(struct sk_buff *skb) in skb_pop_mac_header()
2572 static inline void skb_probe_transport_header(struct sk_buff *skb) in skb_probe_transport_header()
2584 static inline void skb_mac_header_rebuild(struct sk_buff *skb) in skb_mac_header_rebuild()
2594 static inline int skb_checksum_start_offset(const struct sk_buff *skb) in skb_checksum_start_offset()
2599 static inline unsigned char *skb_checksum_start(const struct sk_buff *skb) in skb_checksum_start()
2604 static inline int skb_transport_offset(const struct sk_buff *skb) in skb_transport_offset()
2609 static inline u32 skb_network_header_len(const struct sk_buff *skb) in skb_network_header_len()
2614 static inline u32 skb_inner_network_header_len(const struct sk_buff *skb) in skb_inner_network_header_len()
2619 static inline int skb_network_offset(const struct sk_buff *skb) in skb_network_offset()
2624 static inline int skb_inner_network_offset(const struct sk_buff *skb) in skb_inner_network_offset()
2629 static inline int pskb_network_may_pull(struct sk_buff *skb, unsigned int len) in pskb_network_may_pull()
2682 int ___pskb_trim(struct sk_buff *skb, unsigned int len);
2684 static inline void __skb_set_length(struct sk_buff *skb, unsigned int len) in __skb_set_length()
2692 static inline void __skb_trim(struct sk_buff *skb, unsigned int len) in __skb_trim()
2697 void skb_trim(struct sk_buff *skb, unsigned int len);
2699 static inline int __pskb_trim(struct sk_buff *skb, unsigned int len) in __pskb_trim()
2707 static inline int pskb_trim(struct sk_buff *skb, unsigned int len) in pskb_trim()
2721 static inline void pskb_trim_unique(struct sk_buff *skb, unsigned int len) in pskb_trim_unique()
2727 static inline int __skb_grow(struct sk_buff *skb, unsigned int len) in __skb_grow()
2749 static inline void skb_orphan(struct sk_buff *skb) in skb_orphan()
2769 static inline int skb_orphan_frags(struct sk_buff *skb, gfp_t gfp_mask) in skb_orphan_frags()
2780 static inline int skb_orphan_frags_rx(struct sk_buff *skb, gfp_t gfp_mask) in skb_orphan_frags_rx()
2797 struct sk_buff *skb; in __skb_queue_purge()
2807 struct sk_buff *__netdev_alloc_skb(struct net_device *dev, unsigned int length,
2823 static inline struct sk_buff *netdev_alloc_skb(struct net_device *dev, in netdev_alloc_skb()
2830 static inline struct sk_buff *__dev_alloc_skb(unsigned int length, in __dev_alloc_skb()
2837 static inline struct sk_buff *dev_alloc_skb(unsigned int length) in dev_alloc_skb()
2843 static inline struct sk_buff *__netdev_alloc_skb_ip_align(struct net_device *dev, in __netdev_alloc_skb_ip_align()
2846 struct sk_buff *skb = __netdev_alloc_skb(dev, length + NET_IP_ALIGN, gfp); in __netdev_alloc_skb_ip_align()
2853 static inline struct sk_buff *netdev_alloc_skb_ip_align(struct net_device *dev, in netdev_alloc_skb_ip_align()
2865 struct sk_buff *__napi_alloc_skb(struct napi_struct *napi,
2867 static inline struct sk_buff *napi_alloc_skb(struct napi_struct *napi, in napi_alloc_skb()
2872 void napi_consume_skb(struct sk_buff *skb, int budget);
2875 void __kfree_skb_defer(struct sk_buff *skb);
2931 struct sk_buff *skb) in skb_propagate_pfmemalloc()
3006 static inline void skb_frag_ref(struct sk_buff *skb, int f) in skb_frag_ref()
3029 static inline void skb_frag_unref(struct sk_buff *skb, int f) in skb_frag_unref()
3093 static inline void skb_frag_set_page(struct sk_buff *skb, int f, in skb_frag_set_page()
3121 static inline struct sk_buff *pskb_copy(struct sk_buff *skb, in pskb_copy()
3128 static inline struct sk_buff *pskb_copy_for_clone(struct sk_buff *skb, in pskb_copy_for_clone()
3143 static inline int skb_clone_writable(const struct sk_buff *skb, unsigned int len) in skb_clone_writable()
3149 static inline int skb_try_make_writable(struct sk_buff *skb, in skb_try_make_writable()
3156 static inline int __skb_cow(struct sk_buff *skb, unsigned int headroom, in __skb_cow()
3182 static inline int skb_cow(struct sk_buff *skb, unsigned int headroom) in skb_cow()
3197 static inline int skb_cow_head(struct sk_buff *skb, unsigned int headroom) in skb_cow_head()
3212 static inline int skb_padto(struct sk_buff *skb, unsigned int len) in skb_padto()
3231 static inline int __must_check __skb_put_padto(struct sk_buff *skb, in __skb_put_padto()
3256 static inline int __must_check skb_put_padto(struct sk_buff *skb, unsigned int len) in skb_put_padto()
3261 static inline int skb_add_data(struct sk_buff *skb, in skb_add_data()
3280 static inline bool skb_can_coalesce(struct sk_buff *skb, int i, in skb_can_coalesce()
3294 static inline int __skb_linearize(struct sk_buff *skb) in __skb_linearize()
3306 static inline int skb_linearize(struct sk_buff *skb) in skb_linearize()
3318 static inline bool skb_has_shared_frag(const struct sk_buff *skb) in skb_has_shared_frag()
3331 static inline int skb_linearize_cow(struct sk_buff *skb) in skb_linearize_cow()
3338 __skb_postpull_rcsum(struct sk_buff *skb, const void *start, unsigned int len, in __skb_postpull_rcsum()
3359 static inline void skb_postpull_rcsum(struct sk_buff *skb, in skb_postpull_rcsum()
3366 __skb_postpush_rcsum(struct sk_buff *skb, const void *start, unsigned int len, in __skb_postpush_rcsum()
3383 static inline void skb_postpush_rcsum(struct sk_buff *skb, in skb_postpush_rcsum()
3389 void *skb_pull_rcsum(struct sk_buff *skb, unsigned int len);
3402 static inline void *skb_push_rcsum(struct sk_buff *skb, unsigned int len) in skb_push_rcsum()
3409 int pskb_trim_rcsum_slow(struct sk_buff *skb, unsigned int len);
3420 static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len) in pskb_trim_rcsum()
3427 static inline int __skb_trim_rcsum(struct sk_buff *skb, unsigned int len) in __skb_trim_rcsum()
3435 static inline int __skb_grow_rcsum(struct sk_buff *skb, unsigned int len) in __skb_grow_rcsum()
3442 #define rb_to_skb(rb) rb_entry_safe(rb, struct sk_buff, rbnode)
3450 skb != (struct sk_buff *)(queue); \
3455 skb != (struct sk_buff *)(queue); \
3459 for (; skb != (struct sk_buff *)(queue); \
3476 skb != (struct sk_buff *)(queue); \
3481 skb != (struct sk_buff *)(queue); \
3486 skb != (struct sk_buff *)(queue); \
3491 skb != (struct sk_buff *)(queue); \
3494 static inline bool skb_has_frag_list(const struct sk_buff *skb) in skb_has_frag_list()
3499 static inline void skb_frag_list_init(struct sk_buff *skb) in skb_frag_list_init()
3510 const struct sk_buff *skb);
3511 struct sk_buff *__skb_try_recv_from_queue(struct sock *sk,
3515 struct sk_buff **last);
3516 struct sk_buff *__skb_try_recv_datagram(struct sock *sk,
3519 struct sk_buff **last);
3520 struct sk_buff *__skb_recv_datagram(struct sock *sk,
3523 struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock,
3527 int skb_copy_datagram_iter(const struct sk_buff *from, int offset,
3529 static inline int skb_copy_datagram_msg(const struct sk_buff *from, int offset, in skb_copy_datagram_msg()
3534 int skb_copy_and_csum_datagram_msg(struct sk_buff *skb, int hlen,
3536 int skb_copy_and_hash_datagram_iter(const struct sk_buff *skb, int offset,
3539 int skb_copy_datagram_from_iter(struct sk_buff *skb, int offset,
3541 int zerocopy_sg_from_iter(struct sk_buff *skb, struct iov_iter *frm);
3542 void skb_free_datagram(struct sock *sk, struct sk_buff *skb);
3543 void __skb_free_datagram_locked(struct sock *sk, struct sk_buff *skb, int len);
3545 struct sk_buff *skb) in skb_free_datagram_locked()
3549 int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags);
3550 int skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len);
3551 int skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len);
3552 __wsum skb_copy_and_csum_bits(const struct sk_buff *skb, int offset, u8 *to,
3554 int skb_splice_bits(struct sk_buff *skb, struct sock *sk, unsigned int offset,
3557 int skb_send_sock_locked(struct sock *sk, struct sk_buff *skb, int offset,
3559 void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to);
3560 unsigned int skb_zerocopy_headlen(const struct sk_buff *from);
3561 int skb_zerocopy(struct sk_buff *to, struct sk_buff *from,
3563 void skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len);
3564 int skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen);
3565 void skb_scrub_packet(struct sk_buff *skb, bool xnet);
3566 bool skb_gso_validate_network_len(const struct sk_buff *skb, unsigned int mtu);
3567 bool skb_gso_validate_mac_len(const struct sk_buff *skb, unsigned int len);
3568 struct sk_buff *skb_segment(struct sk_buff *skb, netdev_features_t features);
3569 struct sk_buff *skb_segment_list(struct sk_buff *skb, netdev_features_t features,
3571 struct sk_buff *skb_vlan_untag(struct sk_buff *skb);
3572 int skb_ensure_writable(struct sk_buff *skb, int write_len);
3573 int __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci);
3574 int skb_vlan_pop(struct sk_buff *skb);
3575 int skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci);
3576 int skb_eth_pop(struct sk_buff *skb);
3577 int skb_eth_push(struct sk_buff *skb, const unsigned char *dst,
3579 int skb_mpls_push(struct sk_buff *skb, __be32 mpls_lse, __be16 mpls_proto,
3581 int skb_mpls_pop(struct sk_buff *skb, __be16 next_proto, int mac_len,
3583 int skb_mpls_update_lse(struct sk_buff *skb, __be32 mpls_lse);
3584 int skb_mpls_dec_ttl(struct sk_buff *skb);
3585 struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,
3605 __wsum __skb_checksum(const struct sk_buff *skb, int offset, int len,
3607 __wsum skb_checksum(const struct sk_buff *skb, int offset, int len,
3611 __skb_header_pointer(const struct sk_buff *skb, int offset, in __skb_header_pointer()
3625 skb_header_pointer(const struct sk_buff *skb, int offset, int len, void *buffer) in skb_header_pointer()
3641 static inline bool skb_needs_linearize(struct sk_buff *skb, in skb_needs_linearize()
3649 static inline void skb_copy_from_linear_data(const struct sk_buff *skb, in skb_copy_from_linear_data()
3656 static inline void skb_copy_from_linear_data_offset(const struct sk_buff *skb, in skb_copy_from_linear_data_offset()
3663 static inline void skb_copy_to_linear_data(struct sk_buff *skb, in skb_copy_to_linear_data()
3670 static inline void skb_copy_to_linear_data_offset(struct sk_buff *skb, in skb_copy_to_linear_data_offset()
3680 static inline ktime_t skb_get_ktime(const struct sk_buff *skb) in skb_get_ktime()
3694 static inline void skb_get_timestamp(const struct sk_buff *skb, in skb_get_timestamp()
3700 static inline void skb_get_new_timestamp(const struct sk_buff *skb, in skb_get_new_timestamp()
3709 static inline void skb_get_timestampns(const struct sk_buff *skb, in skb_get_timestampns()
3718 static inline void skb_get_new_timestampns(const struct sk_buff *skb, in skb_get_new_timestampns()
3727 static inline void __net_timestamp(struct sk_buff *skb) in __net_timestamp()
3742 static inline u8 skb_metadata_len(const struct sk_buff *skb) in skb_metadata_len()
3747 static inline void *skb_metadata_end(const struct sk_buff *skb) in skb_metadata_end()
3752 static inline bool __skb_metadata_differs(const struct sk_buff *skb_a, in __skb_metadata_differs()
3753 const struct sk_buff *skb_b, in __skb_metadata_differs()
3788 static inline bool skb_metadata_differs(const struct sk_buff *skb_a, in skb_metadata_differs()
3789 const struct sk_buff *skb_b) in skb_metadata_differs()
3801 static inline void skb_metadata_set(struct sk_buff *skb, u8 meta_len) in skb_metadata_set()
3806 static inline void skb_metadata_clear(struct sk_buff *skb) in skb_metadata_clear()
3811 struct sk_buff *skb_clone_sk(struct sk_buff *skb);
3815 void skb_clone_tx_timestamp(struct sk_buff *skb);
3816 bool skb_defer_rx_timestamp(struct sk_buff *skb);
3820 static inline void skb_clone_tx_timestamp(struct sk_buff *skb) in skb_clone_tx_timestamp()
3824 static inline bool skb_defer_rx_timestamp(struct sk_buff *skb) in skb_defer_rx_timestamp()
3843 void skb_complete_tx_timestamp(struct sk_buff *skb,
3846 void __skb_tstamp_tx(struct sk_buff *orig_skb,
3861 void skb_tstamp_tx(struct sk_buff *orig_skb,
3876 static inline void skb_tx_timestamp(struct sk_buff *skb) in skb_tx_timestamp()
3890 void skb_complete_wifi_ack(struct sk_buff *skb, bool acked);
3892 __sum16 __skb_checksum_complete_head(struct sk_buff *skb, int len);
3893 __sum16 __skb_checksum_complete(struct sk_buff *skb);
3895 static inline int skb_csum_unnecessary(const struct sk_buff *skb) in skb_csum_unnecessary()
3919 static inline __sum16 skb_checksum_complete(struct sk_buff *skb) in skb_checksum_complete()
3925 static inline void __skb_decr_checksum_unnecessary(struct sk_buff *skb) in __skb_decr_checksum_unnecessary()
3935 static inline void __skb_incr_checksum_unnecessary(struct sk_buff *skb) in __skb_incr_checksum_unnecessary()
3946 static inline void __skb_reset_checksum_unnecessary(struct sk_buff *skb) in __skb_reset_checksum_unnecessary()
3959 static inline bool __skb_checksum_validate_needed(struct sk_buff *skb, in __skb_checksum_validate_needed()
3983 static inline void skb_checksum_complete_unset(struct sk_buff *skb) in skb_checksum_complete_unset()
3998 static inline __sum16 __skb_checksum_validate_complete(struct sk_buff *skb, in __skb_checksum_validate_complete()
4022 static inline __wsum null_compute_pseudo(struct sk_buff *skb, int proto) in null_compute_pseudo()
4064 static inline bool __skb_checksum_convert_check(struct sk_buff *skb) in __skb_checksum_convert_check()
4069 static inline void __skb_checksum_convert(struct sk_buff *skb, __wsum pseudo) in __skb_checksum_convert()
4081 static inline void skb_remcsum_adjust_partial(struct sk_buff *skb, void *ptr, in skb_remcsum_adjust_partial()
4094 static inline void skb_remcsum_process(struct sk_buff *skb, void *ptr, in skb_remcsum_process()
4115 static inline struct nf_conntrack *skb_nfct(const struct sk_buff *skb) in skb_nfct()
4124 static inline unsigned long skb_get_nfct(const struct sk_buff *skb) in skb_get_nfct()
4133 static inline void skb_set_nfct(struct sk_buff *skb, unsigned long nfct) in skb_set_nfct()
4175 void *__skb_ext_set(struct sk_buff *skb, enum skb_ext_id id,
4177 void *skb_ext_add(struct sk_buff *skb, enum skb_ext_id id);
4178 void __skb_ext_del(struct sk_buff *skb, enum skb_ext_id id);
4181 static inline void skb_ext_put(struct sk_buff *skb) in skb_ext_put()
4187 static inline void __skb_ext_copy(struct sk_buff *dst, in __skb_ext_copy()
4188 const struct sk_buff *src) in __skb_ext_copy()
4200 static inline void skb_ext_copy(struct sk_buff *dst, const struct sk_buff *src) in skb_ext_copy()
4211 static inline bool skb_ext_exist(const struct sk_buff *skb, enum skb_ext_id id) in skb_ext_exist()
4216 static inline void skb_ext_del(struct sk_buff *skb, enum skb_ext_id id) in skb_ext_del()
4222 static inline void *skb_ext_find(const struct sk_buff *skb, enum skb_ext_id id) in skb_ext_find()
4233 static inline void skb_ext_reset(struct sk_buff *skb) in skb_ext_reset()
4241 static inline bool skb_has_extensions(struct sk_buff *skb) in skb_has_extensions()
4246 static inline void skb_ext_put(struct sk_buff *skb) {} in skb_ext_put()
4247 static inline void skb_ext_reset(struct sk_buff *skb) {} in skb_ext_reset()
4248 static inline void skb_ext_del(struct sk_buff *skb, int unused) {} in skb_ext_del()
4249 static inline void __skb_ext_copy(struct sk_buff *d, const struct sk_buff *s) {} in __skb_ext_copy()
4250 static inline void skb_ext_copy(struct sk_buff *dst, const struct sk_buff *s) {} in skb_ext_copy()
4251 static inline bool skb_has_extensions(struct sk_buff *skb) { return false; } in skb_has_extensions()
4254 static inline void nf_reset_ct(struct sk_buff *skb) in nf_reset_ct()
4262 static inline void nf_reset_trace(struct sk_buff *skb) in nf_reset_trace()
4269 static inline void ipvs_reset(struct sk_buff *skb) in ipvs_reset()
4277 static inline void __nf_copy(struct sk_buff *dst, const struct sk_buff *src, in __nf_copy()
4290 static inline void nf_copy(struct sk_buff *dst, const struct sk_buff *src) in nf_copy()
4299 static inline void skb_copy_secmark(struct sk_buff *to, const struct sk_buff *from) in skb_copy_secmark()
4304 static inline void skb_init_secmark(struct sk_buff *skb) in skb_init_secmark()
4309 static inline void skb_copy_secmark(struct sk_buff *to, const struct sk_buff *from) in skb_copy_secmark()
4312 static inline void skb_init_secmark(struct sk_buff *skb) in skb_init_secmark()
4316 static inline int secpath_exists(const struct sk_buff *skb) in secpath_exists()
4325 static inline bool skb_irq_freeable(const struct sk_buff *skb) in skb_irq_freeable()
4334 static inline void skb_set_queue_mapping(struct sk_buff *skb, u16 queue_mapping) in skb_set_queue_mapping()
4339 static inline u16 skb_get_queue_mapping(const struct sk_buff *skb) in skb_get_queue_mapping()
4344 static inline void skb_copy_queue_mapping(struct sk_buff *to, const struct sk_buff *from) in skb_copy_queue_mapping()
4349 static inline void skb_record_rx_queue(struct sk_buff *skb, u16 rx_queue) in skb_record_rx_queue()
4354 static inline u16 skb_get_rx_queue(const struct sk_buff *skb) in skb_get_rx_queue()
4359 static inline bool skb_rx_queue_recorded(const struct sk_buff *skb) in skb_rx_queue_recorded()
4364 static inline void skb_set_dst_pending_confirm(struct sk_buff *skb, u32 val) in skb_set_dst_pending_confirm()
4369 static inline bool skb_get_dst_pending_confirm(const struct sk_buff *skb) in skb_get_dst_pending_confirm()
4374 static inline struct sec_path *skb_sec_path(const struct sk_buff *skb) in skb_sec_path()
4401 static inline int skb_tnl_header_len(const struct sk_buff *inner_skb) in skb_tnl_header_len()
4407 static inline int gso_pskb_expand_head(struct sk_buff *skb, int extra) in gso_pskb_expand_head()
4422 static inline void gso_reset_checksum(struct sk_buff *skb, __wsum res) in gso_reset_checksum()
4440 static inline __sum16 gso_make_checksum(struct sk_buff *skb, __wsum res) in gso_make_checksum()
4452 static inline bool skb_is_gso(const struct sk_buff *skb) in skb_is_gso()
4458 static inline bool skb_is_gso_v6(const struct sk_buff *skb) in skb_is_gso_v6()
4464 static inline bool skb_is_gso_sctp(const struct sk_buff *skb) in skb_is_gso_sctp()
4470 static inline bool skb_is_gso_tcp(const struct sk_buff *skb) in skb_is_gso_tcp()
4475 static inline void skb_gso_reset(struct sk_buff *skb) in skb_gso_reset()
4498 void __skb_warn_lro_forwarding(const struct sk_buff *skb);
4500 static inline bool skb_warn_if_lro(const struct sk_buff *skb) in skb_warn_if_lro()
4514 static inline void skb_forward_csum(struct sk_buff *skb) in skb_forward_csum()
4529 static inline void skb_checksum_none_assert(const struct sk_buff *skb) in skb_checksum_none_assert()
4536 bool skb_partial_csum_set(struct sk_buff *skb, u16 start, u16 off);
4538 int skb_checksum_setup(struct sk_buff *skb, bool recalculate);
4539 struct sk_buff *skb_checksum_trimmed(struct sk_buff *skb,
4541 __sum16(*skb_chkf)(struct sk_buff *skb));
4552 static inline bool skb_head_is_locked(const struct sk_buff *skb) in skb_head_is_locked()
4566 static inline __wsum lco_csum(struct sk_buff *skb) in lco_csum()
4582 static inline bool skb_is_redirected(const struct sk_buff *skb) in skb_is_redirected()
4591 static inline void skb_set_redirected(struct sk_buff *skb, bool from_ingress) in skb_set_redirected()
4601 static inline void skb_reset_redirect(struct sk_buff *skb) in skb_reset_redirect()