Lines Matching defs:skb
725 static inline bool skb_pfmemalloc(const struct sk_buff *skb) in skb_pfmemalloc()
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()
842 const struct sk_buff *skb) in skb_fclone_busy()
871 static inline struct sk_buff *__pskb_copy(struct sk_buff *skb, int headroom, in __pskb_copy()
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()
991 static inline __be32 skb_flow_get_ports(const struct sk_buff *skb, in skb_flow_get_ports()
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()
1044 static inline __u32 skb_get_hash_flowi6(struct sk_buff *skb, const struct flowi6 *fl6) in skb_get_hash_flowi6()
1058 static inline __u32 skb_get_hash_flowi4(struct sk_buff *skb, const struct flowi4 *fl4) in skb_get_hash_flowi4()
1072 static inline __u32 skb_get_hash_raw(const struct sk_buff *skb) in skb_get_hash_raw()
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()
1140 const struct sk_buff *skb) in skb_queue_is_last()
1153 const struct sk_buff *skb) in skb_queue_is_first()
1167 const struct sk_buff *skb) in skb_queue_next()
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()
1345 static inline struct sk_buff *skb_unshare(struct sk_buff *skb, in skb_unshare()
1377 struct sk_buff *skb = list_->next; in skb_peek() local
1393 static inline struct sk_buff *skb_peek_next(struct sk_buff *skb, in skb_peek_next()
1418 struct sk_buff *skb = list_->prev; in skb_peek_tail() local
1636 static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) in __skb_unlink()
1659 struct sk_buff *skb = skb_peek(list); in __skb_dequeue() local
1676 struct sk_buff *skb = skb_peek_tail(list); in __skb_dequeue_tail() local
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()
1761 #define SKB_PAGE_ASSERT(skb) BUG_ON(skb_shinfo(skb)->nr_frags) argument
1762 #define SKB_FRAG_ASSERT(skb) BUG_ON(skb_has_frag_list(skb)) argument
1763 #define SKB_LINEAR_ASSERT(skb) BUG_ON(skb_is_nonlinear(skb)) argument
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()
1805 static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len) in __skb_put()
1815 static inline unsigned char *__skb_push(struct sk_buff *skb, unsigned int len) in __skb_push()
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()
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()
2187 static inline void __skb_trim(struct sk_buff *skb, unsigned int len) in __skb_trim()
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() local
2319 struct sk_buff *skb = __netdev_alloc_skb(dev, length + NET_IP_ALIGN, gfp); in __netdev_alloc_skb_ip_align() local
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()
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()
2786 #define skb_queue_walk(queue, skb) \ argument
2791 #define skb_queue_walk_safe(queue, skb, tmp) \ argument
2796 #define skb_queue_walk_from(queue, skb) \ argument
2800 #define skb_queue_walk_from_safe(queue, skb, tmp) \ argument
2805 #define skb_queue_reverse_walk(queue, skb) \ argument
2810 #define skb_queue_reverse_walk_safe(queue, skb, tmp) \ argument
2815 #define skb_queue_reverse_walk_from_safe(queue, skb, tmp) \ argument
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()
2830 #define skb_walk_frags(skb, iter) \ argument
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()
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()
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()
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()
3254 #define __skb_checksum_validate(skb, proto, complete, \ argument
3265 #define skb_checksum_init(skb, proto, compute_pseudo) \ argument
3268 #define skb_checksum_init_zero_check(skb, proto, check, compute_pseudo) \ argument
3271 #define skb_checksum_validate(skb, proto, compute_pseudo) \ argument
3274 #define skb_checksum_validate_zero_check(skb, proto, check, \ argument
3278 #define skb_checksum_simple_validate(skb) \ argument
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()
3294 #define skb_checksum_try_convert(skb, proto, check, compute_pseudo) \ argument
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()
3416 static inline void skb_init_secmark(struct sk_buff *skb) in skb_init_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()
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()
3492 #define SKB_GSO_CB(skb) ((struct skb_gso_cb *)((skb)->cb + SKB_SGO_CB_OFFSET)) argument
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()
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()
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()