Lines Matching defs:skb

693 static inline bool skb_pfmemalloc(const struct sk_buff *skb)  in skb_pfmemalloc()
711 static inline struct dst_entry *skb_dst(const struct sk_buff *skb) in skb_dst()
730 static inline void skb_dst_set(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set()
745 static inline void skb_dst_set_noref(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set_noref()
755 static inline bool skb_dst_is_noref(const struct sk_buff *skb) in skb_dst_is_noref()
760 static inline struct rtable *skb_rtable(const struct sk_buff *skb) in skb_rtable()
810 const struct sk_buff *skb) in skb_fclone_busy()
839 static inline struct sk_buff *__pskb_copy(struct sk_buff *skb, int headroom, in __pskb_copy()
916 skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type) in skb_set_hash()
924 static inline __u32 skb_get_hash(struct sk_buff *skb) in skb_get_hash()
932 static inline __u32 skb_get_hash_raw(const struct sk_buff *skb) in skb_get_hash_raw()
937 static inline void skb_clear_hash(struct sk_buff *skb) in skb_clear_hash()
944 static inline void skb_clear_hash_if_not_l4(struct sk_buff *skb) in skb_clear_hash_if_not_l4()
957 static inline void skb_sender_cpu_clear(struct sk_buff *skb) in skb_sender_cpu_clear()
965 static inline unsigned char *skb_end_pointer(const struct sk_buff *skb) in skb_end_pointer()
970 static inline unsigned int skb_end_offset(const struct sk_buff *skb) in skb_end_offset()
975 static inline unsigned char *skb_end_pointer(const struct sk_buff *skb) in skb_end_pointer()
980 static inline unsigned int skb_end_offset(const struct sk_buff *skb) in skb_end_offset()
989 static inline struct skb_shared_hwtstamps *skb_hwtstamps(struct sk_buff *skb) in skb_hwtstamps()
1013 const struct sk_buff *skb) in skb_queue_is_last()
1026 const struct sk_buff *skb) in skb_queue_is_first()
1040 const struct sk_buff *skb) in skb_queue_next()
1058 const struct sk_buff *skb) in skb_queue_prev()
1074 static inline struct sk_buff *skb_get(struct sk_buff *skb) in skb_get()
1093 static inline int skb_cloned(const struct sk_buff *skb) in skb_cloned()
1099 static inline int skb_unclone(struct sk_buff *skb, gfp_t pri) in skb_unclone()
1116 static inline int skb_header_cloned(const struct sk_buff *skb) in skb_header_cloned()
1137 static inline void skb_header_release(struct sk_buff *skb) in skb_header_release()
1151 static inline void __skb_header_release(struct sk_buff *skb) in __skb_header_release()
1165 static inline int skb_shared(const struct sk_buff *skb) in skb_shared()
1183 static inline struct sk_buff *skb_share_check(struct sk_buff *skb, gfp_t pri) in skb_share_check()
1218 static inline struct sk_buff *skb_unshare(struct sk_buff *skb, in skb_unshare()
1250 struct sk_buff *skb = list_->next; in skb_peek() local
1266 static inline struct sk_buff *skb_peek_next(struct sk_buff *skb, in skb_peek_next()
1291 struct sk_buff *skb = list_->prev; in skb_peek_tail() local
1509 static inline void __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) in __skb_unlink()
1532 struct sk_buff *skb = skb_peek(list); in __skb_dequeue() local
1549 struct sk_buff *skb = skb_peek_tail(list); in __skb_dequeue_tail() local
1556 static inline bool skb_is_nonlinear(const struct sk_buff *skb) in skb_is_nonlinear()
1561 static inline unsigned int skb_headlen(const struct sk_buff *skb) in skb_headlen()
1566 static inline int skb_pagelen(const struct sk_buff *skb) in skb_pagelen()
1588 static inline void __skb_fill_page_desc(struct sk_buff *skb, int i, in __skb_fill_page_desc()
1621 static inline void skb_fill_page_desc(struct sk_buff *skb, int i, in skb_fill_page_desc()
1634 #define SKB_PAGE_ASSERT(skb) BUG_ON(skb_shinfo(skb)->nr_frags) argument
1635 #define SKB_FRAG_ASSERT(skb) BUG_ON(skb_has_frag_list(skb)) argument
1636 #define SKB_LINEAR_ASSERT(skb) BUG_ON(skb_is_nonlinear(skb)) argument
1639 static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb) in skb_tail_pointer()
1644 static inline void skb_reset_tail_pointer(struct sk_buff *skb) in skb_reset_tail_pointer()
1649 static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset) in skb_set_tail_pointer()
1656 static inline unsigned char *skb_tail_pointer(const struct sk_buff *skb) in skb_tail_pointer()
1661 static inline void skb_reset_tail_pointer(struct sk_buff *skb) in skb_reset_tail_pointer()
1666 static inline void skb_set_tail_pointer(struct sk_buff *skb, const int offset) in skb_set_tail_pointer()
1678 static inline unsigned char *__skb_put(struct sk_buff *skb, unsigned int len) in __skb_put()
1688 static inline unsigned char *__skb_push(struct sk_buff *skb, unsigned int len) in __skb_push()
1696 static inline unsigned char *__skb_pull(struct sk_buff *skb, unsigned int len) in __skb_pull()
1703 static inline unsigned char *skb_pull_inline(struct sk_buff *skb, unsigned int len) in skb_pull_inline()
1710 static inline unsigned char *__pskb_pull(struct sk_buff *skb, unsigned int len) in __pskb_pull()
1719 static inline unsigned char *pskb_pull(struct sk_buff *skb, unsigned int len) in pskb_pull()
1724 static inline int pskb_may_pull(struct sk_buff *skb, unsigned int len) in pskb_may_pull()
1739 static inline unsigned int skb_headroom(const struct sk_buff *skb) in skb_headroom()
1750 static inline int skb_tailroom(const struct sk_buff *skb) in skb_tailroom()
1762 static inline int skb_availroom(const struct sk_buff *skb) in skb_availroom()
1778 static inline void skb_reserve(struct sk_buff *skb, int len) in skb_reserve()
1787 static inline void skb_set_inner_protocol(struct sk_buff *skb, in skb_set_inner_protocol()
1794 static inline void skb_set_inner_ipproto(struct sk_buff *skb, in skb_set_inner_ipproto()
1801 static inline void skb_reset_inner_headers(struct sk_buff *skb) in skb_reset_inner_headers()
1808 static inline void skb_reset_mac_len(struct sk_buff *skb) in skb_reset_mac_len()
1813 static inline unsigned char *skb_inner_transport_header(const struct sk_buff in skb_inner_transport_header()
1819 static inline void skb_reset_inner_transport_header(struct sk_buff *skb) in skb_reset_inner_transport_header()
1824 static inline void skb_set_inner_transport_header(struct sk_buff *skb, in skb_set_inner_transport_header()
1831 static inline unsigned char *skb_inner_network_header(const struct sk_buff *skb) in skb_inner_network_header()
1836 static inline void skb_reset_inner_network_header(struct sk_buff *skb) in skb_reset_inner_network_header()
1841 static inline void skb_set_inner_network_header(struct sk_buff *skb, in skb_set_inner_network_header()
1848 static inline unsigned char *skb_inner_mac_header(const struct sk_buff *skb) in skb_inner_mac_header()
1853 static inline void skb_reset_inner_mac_header(struct sk_buff *skb) in skb_reset_inner_mac_header()
1858 static inline void skb_set_inner_mac_header(struct sk_buff *skb, in skb_set_inner_mac_header()
1864 static inline bool skb_transport_header_was_set(const struct sk_buff *skb) in skb_transport_header_was_set()
1869 static inline unsigned char *skb_transport_header(const struct sk_buff *skb) in skb_transport_header()
1874 static inline void skb_reset_transport_header(struct sk_buff *skb) in skb_reset_transport_header()
1879 static inline void skb_set_transport_header(struct sk_buff *skb, in skb_set_transport_header()
1886 static inline unsigned char *skb_network_header(const struct sk_buff *skb) in skb_network_header()
1891 static inline void skb_reset_network_header(struct sk_buff *skb) in skb_reset_network_header()
1896 static inline void skb_set_network_header(struct sk_buff *skb, const int offset) in skb_set_network_header()
1902 static inline unsigned char *skb_mac_header(const struct sk_buff *skb) in skb_mac_header()
1907 static inline int skb_mac_header_was_set(const struct sk_buff *skb) in skb_mac_header_was_set()
1912 static inline void skb_reset_mac_header(struct sk_buff *skb) in skb_reset_mac_header()
1917 static inline void skb_set_mac_header(struct sk_buff *skb, const int offset) in skb_set_mac_header()
1923 static inline void skb_pop_mac_header(struct sk_buff *skb) in skb_pop_mac_header()
1928 static inline void skb_probe_transport_header(struct sk_buff *skb, in skb_probe_transport_header()
1941 static inline void skb_mac_header_rebuild(struct sk_buff *skb) in skb_mac_header_rebuild()
1951 static inline int skb_checksum_start_offset(const struct sk_buff *skb) in skb_checksum_start_offset()
1956 static inline int skb_transport_offset(const struct sk_buff *skb) in skb_transport_offset()
1961 static inline u32 skb_network_header_len(const struct sk_buff *skb) in skb_network_header_len()
1966 static inline u32 skb_inner_network_header_len(const struct sk_buff *skb) in skb_inner_network_header_len()
1971 static inline int skb_network_offset(const struct sk_buff *skb) in skb_network_offset()
1976 static inline int skb_inner_network_offset(const struct sk_buff *skb) in skb_inner_network_offset()
1981 static inline int pskb_network_may_pull(struct sk_buff *skb, unsigned int len) in pskb_network_may_pull()
2036 static inline void __skb_trim(struct sk_buff *skb, unsigned int len) in __skb_trim()
2048 static inline int __pskb_trim(struct sk_buff *skb, unsigned int len) in __pskb_trim()
2056 static inline int pskb_trim(struct sk_buff *skb, unsigned int len) in pskb_trim()
2070 static inline void pskb_trim_unique(struct sk_buff *skb, unsigned int len) in pskb_trim_unique()
2084 static inline void skb_orphan(struct sk_buff *skb) in skb_orphan()
2104 static inline int skb_orphan_frags(struct sk_buff *skb, gfp_t gfp_mask) in skb_orphan_frags()
2122 struct sk_buff *skb; in __skb_queue_purge() local
2172 struct sk_buff *skb = __netdev_alloc_skb(dev, length + NET_IP_ALIGN, gfp); in __netdev_alloc_skb_ip_align() local
2248 struct sk_buff *skb) in skb_propagate_pfmemalloc()
2283 static inline void skb_frag_ref(struct sk_buff *skb, int f) in skb_frag_ref()
2306 static inline void skb_frag_unref(struct sk_buff *skb, int f) in skb_frag_unref()
2359 static inline void skb_frag_set_page(struct sk_buff *skb, int f, in skb_frag_set_page()
2387 static inline struct sk_buff *pskb_copy(struct sk_buff *skb, in pskb_copy()
2394 static inline struct sk_buff *pskb_copy_for_clone(struct sk_buff *skb, in pskb_copy_for_clone()
2409 static inline int skb_clone_writable(const struct sk_buff *skb, unsigned int len) in skb_clone_writable()
2415 static inline int __skb_cow(struct sk_buff *skb, unsigned int headroom, in __skb_cow()
2441 static inline int skb_cow(struct sk_buff *skb, unsigned int headroom) in skb_cow()
2456 static inline int skb_cow_head(struct sk_buff *skb, unsigned int headroom) in skb_cow_head()
2471 static inline int skb_padto(struct sk_buff *skb, unsigned int len) in skb_padto()
2489 static inline int skb_put_padto(struct sk_buff *skb, unsigned int len) in skb_put_padto()
2502 static inline int skb_add_data(struct sk_buff *skb, in skb_add_data()
2521 static inline bool skb_can_coalesce(struct sk_buff *skb, int i, in skb_can_coalesce()
2533 static inline int __skb_linearize(struct sk_buff *skb) in __skb_linearize()
2545 static inline int skb_linearize(struct sk_buff *skb) in skb_linearize()
2557 static inline bool skb_has_shared_frag(const struct sk_buff *skb) in skb_has_shared_frag()
2570 static inline int skb_linearize_cow(struct sk_buff *skb) in skb_linearize_cow()
2587 static inline void skb_postpull_rcsum(struct sk_buff *skb, in skb_postpull_rcsum()
2608 static inline int pskb_trim_rcsum(struct sk_buff *skb, unsigned int len) in pskb_trim_rcsum()
2617 #define skb_queue_walk(queue, skb) \ argument
2622 #define skb_queue_walk_safe(queue, skb, tmp) \ argument
2627 #define skb_queue_walk_from(queue, skb) \ argument
2631 #define skb_queue_walk_from_safe(queue, skb, tmp) \ argument
2636 #define skb_queue_reverse_walk(queue, skb) \ argument
2641 #define skb_queue_reverse_walk_safe(queue, skb, tmp) \ argument
2646 #define skb_queue_reverse_walk_from_safe(queue, skb, tmp) \ argument
2651 static inline bool skb_has_frag_list(const struct sk_buff *skb) in skb_has_frag_list()
2656 static inline void skb_frag_list_init(struct sk_buff *skb) in skb_frag_list_init()
2661 static inline void skb_frag_add_head(struct sk_buff *skb, struct sk_buff *frag) in skb_frag_add_head()
2667 #define skb_walk_frags(skb, iter) \ argument
2732 static inline void *__skb_header_pointer(const struct sk_buff *skb, int offset, in __skb_header_pointer()
2745 static inline void *skb_header_pointer(const struct sk_buff *skb, int offset, in skb_header_pointer()
2762 static inline bool skb_needs_linearize(struct sk_buff *skb, in skb_needs_linearize()
2770 static inline void skb_copy_from_linear_data(const struct sk_buff *skb, in skb_copy_from_linear_data()
2777 static inline void skb_copy_from_linear_data_offset(const struct sk_buff *skb, in skb_copy_from_linear_data_offset()
2784 static inline void skb_copy_to_linear_data(struct sk_buff *skb, in skb_copy_to_linear_data()
2791 static inline void skb_copy_to_linear_data_offset(struct sk_buff *skb, in skb_copy_to_linear_data_offset()
2801 static inline ktime_t skb_get_ktime(const struct sk_buff *skb) in skb_get_ktime()
2815 static inline void skb_get_timestamp(const struct sk_buff *skb, in skb_get_timestamp()
2821 static inline void skb_get_timestampns(const struct sk_buff *skb, in skb_get_timestampns()
2827 static inline void __net_timestamp(struct sk_buff *skb) in __net_timestamp()
2851 static inline void skb_clone_tx_timestamp(struct sk_buff *skb) in skb_clone_tx_timestamp()
2855 static inline bool skb_defer_rx_timestamp(struct sk_buff *skb) in skb_defer_rx_timestamp()
2895 static inline void sw_tx_timestamp(struct sk_buff *skb) in sw_tx_timestamp()
2914 static inline void skb_tx_timestamp(struct sk_buff *skb) in skb_tx_timestamp()
2932 static inline int skb_csum_unnecessary(const struct sk_buff *skb) in skb_csum_unnecessary()
2956 static inline __sum16 skb_checksum_complete(struct sk_buff *skb) in skb_checksum_complete()
2962 static inline void __skb_decr_checksum_unnecessary(struct sk_buff *skb) in __skb_decr_checksum_unnecessary()
2972 static inline void __skb_incr_checksum_unnecessary(struct sk_buff *skb) in __skb_incr_checksum_unnecessary()
2983 static inline void __skb_mark_checksum_bad(struct sk_buff *skb) in __skb_mark_checksum_bad()
3003 static inline bool __skb_checksum_validate_needed(struct sk_buff *skb, in __skb_checksum_validate_needed()
3027 static inline void skb_checksum_complete_unset(struct sk_buff *skb) in skb_checksum_complete_unset()
3042 static inline __sum16 __skb_checksum_validate_complete(struct sk_buff *skb, in __skb_checksum_validate_complete()
3069 static inline __wsum null_compute_pseudo(struct sk_buff *skb, int proto) in null_compute_pseudo()
3084 #define __skb_checksum_validate(skb, proto, complete, \ argument
3095 #define skb_checksum_init(skb, proto, compute_pseudo) \ argument
3098 #define skb_checksum_init_zero_check(skb, proto, check, compute_pseudo) \ argument
3101 #define skb_checksum_validate(skb, proto, compute_pseudo) \ argument
3104 #define skb_checksum_validate_zero_check(skb, proto, check, \ argument
3108 #define skb_checksum_simple_validate(skb) \ argument
3111 static inline bool __skb_checksum_convert_check(struct sk_buff *skb) in __skb_checksum_convert_check()
3117 static inline void __skb_checksum_convert(struct sk_buff *skb, in __skb_checksum_convert()
3124 #define skb_checksum_try_convert(skb, proto, check, compute_pseudo) \ argument
3131 static inline void skb_remcsum_adjust_partial(struct sk_buff *skb, void *ptr, in skb_remcsum_adjust_partial()
3144 static inline void skb_remcsum_process(struct sk_buff *skb, void *ptr, in skb_remcsum_process()
3190 static inline void nf_reset(struct sk_buff *skb) in nf_reset()
3202 static inline void nf_reset_trace(struct sk_buff *skb) in nf_reset_trace()
3246 static inline void skb_init_secmark(struct sk_buff *skb) in skb_init_secmark()
3254 static inline void skb_init_secmark(struct sk_buff *skb) in skb_init_secmark()
3258 static inline bool skb_irq_freeable(const struct sk_buff *skb) in skb_irq_freeable()
3271 static inline void skb_set_queue_mapping(struct sk_buff *skb, u16 queue_mapping) in skb_set_queue_mapping()
3276 static inline u16 skb_get_queue_mapping(const struct sk_buff *skb) in skb_get_queue_mapping()
3286 static inline void skb_record_rx_queue(struct sk_buff *skb, u16 rx_queue) in skb_record_rx_queue()
3291 static inline u16 skb_get_rx_queue(const struct sk_buff *skb) in skb_get_rx_queue()
3296 static inline bool skb_rx_queue_recorded(const struct sk_buff *skb) in skb_rx_queue_recorded()
3304 static inline struct sec_path *skb_sec_path(struct sk_buff *skb) in skb_sec_path()
3325 #define SKB_GSO_CB(skb) ((struct skb_gso_cb *)((skb)->cb + SKB_SGO_CB_OFFSET)) argument
3333 static inline int gso_pskb_expand_head(struct sk_buff *skb, int extra) in gso_pskb_expand_head()
3356 static inline __sum16 gso_make_checksum(struct sk_buff *skb, __wsum res) in gso_make_checksum()
3370 static inline bool skb_is_gso(const struct sk_buff *skb) in skb_is_gso()
3376 static inline bool skb_is_gso_v6(const struct sk_buff *skb) in skb_is_gso_v6()
3383 static inline bool skb_warn_if_lro(const struct sk_buff *skb) in skb_warn_if_lro()
3397 static inline void skb_forward_csum(struct sk_buff *skb) in skb_forward_csum()
3412 static inline void skb_checksum_none_assert(const struct sk_buff *skb) in skb_checksum_none_assert()
3436 static inline bool skb_head_is_locked(const struct sk_buff *skb) in skb_head_is_locked()
3451 static inline unsigned int skb_gso_network_seglen(const struct sk_buff *skb) in skb_gso_network_seglen()