Home
last modified time | relevance | path

Searched refs:skb (Results 1 – 25 of 2633) sorted by relevance

12345678910>>...106

/linux/include/linux/
H A Dskbuff.h44 * DOC: skb checksums
105 * not in skb->csum. Thus, skb->csum is undefined in this case.
133 * checksum is bad, skb->csum_level would be set to zero (TCP checksum is
145 * skb->csum, it MUST use CHECKSUM_COMPLETE, not CHECKSUM_UNNECESSARY.
155 * referred to by skb->csum_start + skb->csum_offset and any preceding
194 * The skb was already checksummed by the protocol, or a checksum is not
253 /* Maximum value in skb->csum_level */
260 /* For X bytes available in skb
1139 skb_pfmemalloc(const struct sk_buff * skb) skb_pfmemalloc() argument
1157 skb_dst(const struct sk_buff * skb) skb_dst() argument
1168 skb_dst_check_unset(struct sk_buff * skb) skb_dst_check_unset() argument
1188 skb_dstref_steal(struct sk_buff * skb) skb_dstref_steal() argument
1201 skb_dstref_restore(struct sk_buff * skb,unsigned long refdst) skb_dstref_restore() argument
1215 skb_dst_set(struct sk_buff * skb,struct dst_entry * dst) skb_dst_set() argument
1232 skb_dst_set_noref(struct sk_buff * skb,struct dst_entry * dst) skb_dst_set_noref() argument
1244 skb_dst_is_noref(const struct sk_buff * skb) skb_dst_is_noref() argument
1262 skb_napi_id(const struct sk_buff * skb) skb_napi_id() argument
1271 skb_wifi_acked_valid(const struct sk_buff * skb) skb_wifi_acked_valid() argument
1286 skb_unref(struct sk_buff * skb) skb_unref() argument
1298 skb_data_unref(const struct sk_buff * skb,struct skb_shared_info * shinfo) skb_data_unref() argument
1320 kfree_skb_reason(struct sk_buff * skb,enum skb_drop_reason reason) kfree_skb_reason() argument
1329 kfree_skb(struct sk_buff * skb) kfree_skb() argument
1348 consume_skb(struct sk_buff * skb) consume_skb() argument
1412 skb_fclone_busy(const struct sock * sk,const struct sk_buff * skb) skb_fclone_busy() argument
1444 __pskb_copy(struct sk_buff * skb,int headroom,gfp_t gfp_mask) __pskb_copy() argument
1474 skb_pad(struct sk_buff * skb,int pad) skb_pad() argument
1537 skb_clear_hash(struct sk_buff * skb) skb_clear_hash() argument
1544 skb_clear_hash_if_not_l4(struct sk_buff * skb) skb_clear_hash_if_not_l4() argument
1551 __skb_set_hash(struct sk_buff * skb,__u32 hash,bool is_sw,bool is_l4) __skb_set_hash() argument
1559 skb_set_hash(struct sk_buff * skb,__u32 hash,enum pkt_hash_types type) skb_set_hash() argument
1566 __skb_set_sw_hash(struct sk_buff * skb,__u32 hash,bool is_l4) __skb_set_sw_hash() argument
1573 __skb_get_hash_symmetric(const struct sk_buff * skb) __skb_get_hash_symmetric() argument
1599 skb_flow_dissect(const struct sk_buff * skb,struct flow_dissector * flow_dissector,void * target_container,unsigned int flags) skb_flow_dissect() argument
1607 skb_flow_dissect_flow_keys(const struct sk_buff * skb,struct flow_keys * flow,unsigned int flags) skb_flow_dissect_flow_keys() argument
1618 skb_flow_dissect_flow_keys_basic(const struct net * net,const struct sk_buff * skb,struct flow_keys_basic * flow,const void * data,__be16 proto,int nhoff,int hlen,unsigned int flags) skb_flow_dissect_flow_keys_basic() argument
1651 skb_get_hash_net(const struct net * net,struct sk_buff * skb) skb_get_hash_net() argument
1659 skb_get_hash(struct sk_buff * skb) skb_get_hash() argument
1667 skb_get_hash_flowi6(struct sk_buff * skb,const struct flowi6 * fl6) skb_get_hash_flowi6() argument
1682 skb_get_hash_raw(const struct sk_buff * skb) skb_get_hash_raw() argument
1704 skb_is_decrypted(const struct sk_buff * skb) skb_is_decrypted() argument
1722 skb_end_pointer(const struct sk_buff * skb) skb_end_pointer() argument
1727 skb_end_offset(const struct sk_buff * skb) skb_end_offset() argument
1732 skb_set_end_offset(struct sk_buff * skb,unsigned int offset) skb_set_end_offset() argument
1737 skb_end_pointer(const struct sk_buff * skb) skb_end_pointer() argument
1742 skb_end_offset(const struct sk_buff * skb) skb_end_offset() argument
1747 skb_set_end_offset(struct sk_buff * skb,unsigned int offset) skb_set_end_offset() argument
1770 skb_zerocopy_iter_dgram(struct sk_buff * skb,struct msghdr * msg,int len) skb_zerocopy_iter_dgram() argument
1785 skb_hwtstamps(struct sk_buff * skb) skb_hwtstamps() argument
1790 skb_zcopy(struct sk_buff * skb) skb_zcopy() argument
1797 skb_zcopy_pure(const struct sk_buff * skb) skb_zcopy_pure() argument
1802 skb_zcopy_managed(const struct sk_buff * skb) skb_zcopy_managed() argument
1818 skb_zcopy_init(struct sk_buff * skb,struct ubuf_info * uarg) skb_zcopy_init() argument
1824 skb_zcopy_set(struct sk_buff * skb,struct ubuf_info * uarg,bool * have_ref) skb_zcopy_set() argument
1836 skb_zcopy_set_nouarg(struct sk_buff * skb,void * val) skb_zcopy_set_nouarg() argument
1842 skb_zcopy_is_nouarg(struct sk_buff * skb) skb_zcopy_is_nouarg() argument
1847 skb_zcopy_get_nouarg(struct sk_buff * skb) skb_zcopy_get_nouarg() argument
1869 skb_zcopy_clear(struct sk_buff * skb,bool zerocopy_success) skb_zcopy_clear() argument
1883 skb_zcopy_downgrade_managed(struct sk_buff * skb) skb_zcopy_downgrade_managed() argument
1890 skb_frags_readable(const struct sk_buff * skb) skb_frags_readable() argument
1895 skb_mark_not_on_list(struct sk_buff * skb) skb_mark_not_on_list() argument
1900 skb_poison_list(struct sk_buff * skb) skb_poison_list() argument
1908 skb_list_walk_safe(first,skb,next_skb) global() argument
1912 skb_list_del_init(struct sk_buff * skb) skb_list_del_init() argument
1950 skb_queue_is_last(const struct sk_buff_head * list,const struct sk_buff * skb) skb_queue_is_last() argument
1963 skb_queue_is_first(const struct sk_buff_head * list,const struct sk_buff * skb) skb_queue_is_first() argument
1977 skb_queue_next(const struct sk_buff_head * list,const struct sk_buff * skb) skb_queue_next() argument
1995 skb_queue_prev(const struct sk_buff_head * list,const struct sk_buff * skb) skb_queue_prev() argument
2011 skb_get(struct sk_buff * skb) skb_get() argument
2029 skb_cloned(const struct sk_buff * skb) skb_cloned() argument
2035 skb_unclone(struct sk_buff * skb,gfp_t pri) skb_unclone() argument
2052 skb_unclone_keeptruesize(struct sk_buff * skb,gfp_t pri) skb_unclone_keeptruesize() argument
2068 skb_header_cloned(const struct sk_buff * skb) skb_header_cloned() argument
2080 skb_header_unclone(struct sk_buff * skb,gfp_t pri) skb_header_unclone() argument
2096 __skb_header_release(struct sk_buff * skb) __skb_header_release() argument
2110 skb_shared(const struct sk_buff * skb) skb_shared() argument
2128 skb_share_check(struct sk_buff * skb,gfp_t pri) skb_share_check() argument
2163 skb_unshare(struct sk_buff * skb,gfp_t pri) skb_unshare() argument
2195 struct sk_buff *skb = list_->next; skb_peek() local
2222 skb_peek_next(struct sk_buff * skb,const struct sk_buff_head * list_) skb_peek_next() argument
2247 struct sk_buff *skb = READ_ONCE(list_->prev); skb_peek_tail() local
2479 __skb_unlink(struct sk_buff * skb,struct sk_buff_head * list) __skb_unlink() argument
2501 struct sk_buff *skb = skb_peek(list); __skb_dequeue() local
2518 struct sk_buff *skb = skb_peek_tail(list); __skb_dequeue_tail() local
2526 skb_is_nonlinear(const struct sk_buff * skb) skb_is_nonlinear() argument
2531 skb_headlen(const struct sk_buff * skb) skb_headlen() argument
2536 __skb_pagelen(const struct sk_buff * skb) __skb_pagelen() argument
2545 skb_pagelen(const struct sk_buff * skb) skb_pagelen() argument
2588 skb_len_add(struct sk_buff * skb,int delta) skb_len_add() argument
2608 __skb_fill_netmem_desc(struct sk_buff * skb,int i,netmem_ref netmem,int off,int size) __skb_fill_netmem_desc() argument
2631 __skb_fill_page_desc(struct sk_buff * skb,int i,struct page * page,int off,int size) __skb_fill_page_desc() argument
2637 skb_fill_netmem_desc(struct sk_buff * skb,int i,netmem_ref netmem,int off,int size) skb_fill_netmem_desc() argument
2658 skb_fill_page_desc(struct sk_buff * skb,int i,struct page * page,int off,int size) skb_fill_page_desc() argument
2675 skb_fill_page_desc_noacc(struct sk_buff * skb,int i,struct page * page,int off,int size) skb_fill_page_desc_noacc() argument
2688 skb_add_rx_frag(struct sk_buff * skb,int i,struct page * page,int off,int size,unsigned int truesize) skb_add_rx_frag() argument
2699 SKB_LINEAR_ASSERT(skb) global() argument
2702 skb_tail_pointer(const struct sk_buff * skb) skb_tail_pointer() argument
2707 skb_reset_tail_pointer(struct sk_buff * skb) skb_reset_tail_pointer() argument
2712 skb_set_tail_pointer(struct sk_buff * skb,const int offset) skb_set_tail_pointer() argument
2719 skb_tail_pointer(const struct sk_buff * skb) skb_tail_pointer() argument
2724 skb_reset_tail_pointer(struct sk_buff * skb) skb_reset_tail_pointer() argument
2729 skb_set_tail_pointer(struct sk_buff * skb,const int offset) skb_set_tail_pointer() argument
2736 skb_assert_len(struct sk_buff * skb) skb_assert_len() argument
2747 skb_might_realloc(struct sk_buff * skb) skb_might_realloc() argument
2755 __skb_put(struct sk_buff * skb,unsigned int len) __skb_put() argument
2764 __skb_put_zero(struct sk_buff * skb,unsigned int len) __skb_put_zero() argument
2772 __skb_put_data(struct sk_buff * skb,const void * data,unsigned int len) __skb_put_data() argument
2781 __skb_put_u8(struct sk_buff * skb,u8 val) __skb_put_u8() argument
2786 skb_put_zero(struct sk_buff * skb,unsigned int len) skb_put_zero() argument
2795 skb_put_data(struct sk_buff * skb,const void * data,unsigned int len) skb_put_data() argument
2805 skb_put_u8(struct sk_buff * skb,u8 val) skb_put_u8() argument
2811 __skb_push(struct sk_buff * skb,unsigned int len) __skb_push() argument
2822 __skb_pull(struct sk_buff * skb,unsigned int len) __skb_pull() argument
2838 skb_pull_inline(struct sk_buff * skb,unsigned int len) skb_pull_inline() argument
2848 pskb_may_pull_reason(struct sk_buff * skb,unsigned int len) pskb_may_pull_reason() argument
2865 pskb_may_pull(struct sk_buff * skb,unsigned int len) pskb_may_pull() argument
2870 pskb_pull(struct sk_buff * skb,unsigned int len) pskb_pull() argument
2887 skb_headroom(const struct sk_buff * skb) skb_headroom() argument
2898 skb_tailroom(const struct sk_buff * skb) skb_tailroom() argument
2910 skb_availroom(const struct sk_buff * skb) skb_availroom() argument
2926 skb_reserve(struct sk_buff * skb,int len) skb_reserve() argument
2944 skb_tailroom_reserve(struct sk_buff * skb,unsigned int mtu,unsigned int needed_tailroom) skb_tailroom_reserve() argument
2959 skb_set_inner_protocol(struct sk_buff * skb,__be16 protocol) skb_set_inner_protocol() argument
2966 skb_set_inner_ipproto(struct sk_buff * skb,__u8 ipproto) skb_set_inner_ipproto() argument
2973 skb_reset_inner_headers(struct sk_buff * skb) skb_reset_inner_headers() argument
2980 skb_mac_header_was_set(const struct sk_buff * skb) skb_mac_header_was_set() argument
2985 skb_reset_mac_len(struct sk_buff * skb) skb_reset_mac_len() argument
2995 skb_inner_transport_header(const struct sk_buff * skb) skb_inner_transport_header() argument
3001 skb_inner_transport_offset(const struct sk_buff * skb) skb_inner_transport_offset() argument
3006 skb_reset_inner_transport_header(struct sk_buff * skb) skb_reset_inner_transport_header() argument
3014 skb_set_inner_transport_header(struct sk_buff * skb,const int offset) skb_set_inner_transport_header() argument
3021 skb_inner_network_header(const struct sk_buff * skb) skb_inner_network_header() argument
3026 skb_reset_inner_network_header(struct sk_buff * skb) skb_reset_inner_network_header() argument
3034 skb_set_inner_network_header(struct sk_buff * skb,const int offset) skb_set_inner_network_header() argument
3041 skb_inner_network_header_was_set(const struct sk_buff * skb) skb_inner_network_header_was_set() argument
3046 skb_inner_mac_header(const struct sk_buff * skb) skb_inner_mac_header() argument
3051 skb_reset_inner_mac_header(struct sk_buff * skb) skb_reset_inner_mac_header() argument
3059 skb_set_inner_mac_header(struct sk_buff * skb,const int offset) skb_set_inner_mac_header() argument
3065 skb_transport_header_was_set(const struct sk_buff * skb) skb_transport_header_was_set() argument
3070 skb_transport_header(const struct sk_buff * skb) skb_transport_header() argument
3076 skb_reset_transport_header(struct sk_buff * skb) skb_reset_transport_header() argument
3093 skb_reset_transport_header_careful(struct sk_buff * skb) skb_reset_transport_header_careful() argument
3107 skb_set_transport_header(struct sk_buff * skb,const int offset) skb_set_transport_header() argument
3114 skb_network_header(const struct sk_buff * skb) skb_network_header() argument
3119 skb_reset_network_header(struct sk_buff * skb) skb_reset_network_header() argument
3127 skb_set_network_header(struct sk_buff * skb,const int offset) skb_set_network_header() argument
3133 skb_mac_header(const struct sk_buff * skb) skb_mac_header() argument
3139 skb_mac_offset(const struct sk_buff * skb) skb_mac_offset() argument
3144 skb_mac_header_len(const struct sk_buff * skb) skb_mac_header_len() argument
3150 skb_unset_mac_header(struct sk_buff * skb) skb_unset_mac_header() argument
3155 skb_reset_mac_header(struct sk_buff * skb) skb_reset_mac_header() argument
3163 skb_set_mac_header(struct sk_buff * skb,const int offset) skb_set_mac_header() argument
3169 skb_pop_mac_header(struct sk_buff * skb) skb_pop_mac_header() argument
3174 skb_probe_transport_header(struct sk_buff * skb) skb_probe_transport_header() argument
3186 skb_mac_header_rebuild(struct sk_buff * skb) skb_mac_header_rebuild() argument
3200 skb_mac_header_rebuild_full(struct sk_buff * skb,u32 full_mac_len) skb_mac_header_rebuild_full() argument
3211 skb_checksum_start_offset(const struct sk_buff * skb) skb_checksum_start_offset() argument
3216 skb_checksum_start(const struct sk_buff * skb) skb_checksum_start() argument
3221 skb_transport_offset(const struct sk_buff * skb) skb_transport_offset() argument
3226 skb_network_header_len(const struct sk_buff * skb) skb_network_header_len() argument
3232 skb_inner_network_header_len(const struct sk_buff * skb) skb_inner_network_header_len() argument
3237 skb_network_offset(const struct sk_buff * skb) skb_network_offset() argument
3242 skb_inner_network_offset(const struct sk_buff * skb) skb_inner_network_offset() argument
3248 pskb_network_may_pull_reason(struct sk_buff * skb,unsigned int len) pskb_network_may_pull_reason() argument
3253 pskb_network_may_pull(struct sk_buff * skb,unsigned int len) pskb_network_may_pull() argument
3308 __skb_set_length(struct sk_buff * skb,unsigned int len) __skb_set_length() argument
3316 __skb_trim(struct sk_buff * skb,unsigned int len) __skb_trim() argument
3323 __pskb_trim(struct sk_buff * skb,unsigned int len) __pskb_trim() argument
3331 pskb_trim(struct sk_buff * skb,unsigned int len) pskb_trim() argument
3346 pskb_trim_unique(struct sk_buff * skb,unsigned int len) pskb_trim_unique() argument
3352 __skb_grow(struct sk_buff * skb,unsigned int len) __skb_grow() argument
3374 skb_orphan(struct sk_buff * skb) skb_orphan() argument
3394 skb_orphan_frags(struct sk_buff * skb,gfp_t gfp_mask) skb_orphan_frags() argument
3404 skb_orphan_frags_rx(struct sk_buff * skb,gfp_t gfp_mask) skb_orphan_frags_rx() argument
3423 struct sk_buff *skb; __skb_queue_purge_reason() local
3505 struct sk_buff *skb = __netdev_alloc_skb(dev, length + NET_IP_ALIGN, gfp); __netdev_alloc_skb_ip_align() local
3617 skb_propagate_pfmemalloc(const struct page * page,struct sk_buff * skb) skb_propagate_pfmemalloc() argument
3810 pskb_copy(struct sk_buff * skb,gfp_t gfp_mask) pskb_copy() argument
3817 pskb_copy_for_clone(struct sk_buff * skb,gfp_t gfp_mask) pskb_copy_for_clone() argument
3832 skb_clone_writable(const struct sk_buff * skb,unsigned int len) skb_clone_writable() argument
3838 skb_try_make_writable(struct sk_buff * skb,unsigned int write_len) skb_try_make_writable() argument
3845 __skb_cow(struct sk_buff * skb,unsigned int headroom,int cloned) __skb_cow() argument
3871 skb_cow(struct sk_buff * skb,unsigned int headroom) skb_cow() argument
3886 skb_cow_head(struct sk_buff * skb,unsigned int headroom) skb_cow_head() argument
3901 skb_padto(struct sk_buff * skb,unsigned int len) skb_padto() argument
3920 __skb_put_padto(struct sk_buff * skb,unsigned int len,bool free_on_error) __skb_put_padto() argument
3945 skb_put_padto(struct sk_buff * skb,unsigned int len) skb_put_padto() argument
3953 skb_can_coalesce_netmem(struct sk_buff * skb,int i,netmem_ref netmem,int off) skb_can_coalesce_netmem() argument
3967 skb_can_coalesce(struct sk_buff * skb,int i,const struct page * page,int off) skb_can_coalesce() argument
3973 __skb_linearize(struct sk_buff * skb) __skb_linearize() argument
3985 skb_linearize(struct sk_buff * skb) skb_linearize() argument
3997 skb_has_shared_frag(const struct sk_buff * skb) skb_has_shared_frag() argument
4010 skb_linearize_cow(struct sk_buff * skb) skb_linearize_cow() argument
4017 __skb_postpull_rcsum(struct sk_buff * skb,const void * start,unsigned int len,unsigned int off) __skb_postpull_rcsum() argument
4038 skb_postpull_rcsum(struct sk_buff * skb,const void * start,unsigned int len) skb_postpull_rcsum() argument
4050 __skb_postpush_rcsum(struct sk_buff * skb,const void * start,unsigned int len,unsigned int off) __skb_postpush_rcsum() argument
4067 skb_postpush_rcsum(struct sk_buff * skb,const void * start,unsigned int len) skb_postpush_rcsum() argument
4086 skb_push_rcsum(struct sk_buff * skb,unsigned int len) skb_push_rcsum() argument
4104 pskb_trim_rcsum(struct sk_buff * skb,unsigned int len) pskb_trim_rcsum() argument
4112 __skb_trim_rcsum(struct sk_buff * skb,unsigned int len) __skb_trim_rcsum() argument
4120 __skb_grow_rcsum(struct sk_buff * skb,unsigned int len) __skb_grow_rcsum() argument
4130 skb_rb_next(skb) global() argument
4131 skb_rb_prev(skb) global() argument
4133 skb_queue_walk(queue,skb) global() argument
4138 skb_queue_walk_safe(queue,skb,tmp) global() argument
4143 skb_queue_walk_from(queue,skb) global() argument
4147 skb_rbtree_walk(skb,root) global() argument
4151 skb_rbtree_walk_from(skb) global() argument
4155 skb_rbtree_walk_from_safe(skb,tmp) global() argument
4159 skb_queue_walk_from_safe(queue,skb,tmp) global() argument
4164 skb_queue_reverse_walk(queue,skb) global() argument
4169 skb_queue_reverse_walk_safe(queue,skb,tmp) global() argument
4174 skb_queue_reverse_walk_from_safe(queue,skb,tmp) global() argument
4179 skb_has_frag_list(const struct sk_buff * skb) skb_has_frag_list() argument
4184 skb_frag_list_init(struct sk_buff * skb) skb_frag_list_init() argument
4189 skb_walk_frags(skb,iter) global() argument
4286 __skb_header_pointer(const struct sk_buff * skb,int offset,int len,const void * data,int hlen,void * buffer) __skb_header_pointer() argument
4299 skb_header_pointer(const struct sk_buff * skb,int offset,int len,void * buffer) skb_header_pointer() argument
4309 skb_header_pointer_careful(const struct sk_buff * skb,int offset,int len,void * buffer) skb_header_pointer_careful() argument
4318 skb_pointer_if_linear(const struct sk_buff * skb,int offset,int len) skb_pointer_if_linear() argument
4335 skb_needs_linearize(struct sk_buff * skb,netdev_features_t features) skb_needs_linearize() argument
4343 skb_copy_from_linear_data(const struct sk_buff * skb,void * to,const unsigned int len) skb_copy_from_linear_data() argument
4350 skb_copy_from_linear_data_offset(const struct sk_buff * skb,const int offset,void * to,const unsigned int len) skb_copy_from_linear_data_offset() argument
4357 skb_copy_to_linear_data(struct sk_buff * skb,const void * from,const unsigned int len) skb_copy_to_linear_data() argument
4364 skb_copy_to_linear_data_offset(struct sk_buff * skb,const int offset,const void * from,const unsigned int len) skb_copy_to_linear_data_offset() argument
4374 skb_get_ktime(const struct sk_buff * skb) skb_get_ktime() argument
4388 skb_get_timestamp(const struct sk_buff * skb,struct __kernel_old_timeval * stamp) skb_get_timestamp() argument
4394 skb_get_new_timestamp(const struct sk_buff * skb,struct __kernel_sock_timeval * stamp) skb_get_new_timestamp() argument
4403 skb_get_timestampns(const struct sk_buff * skb,struct __kernel_old_timespec * stamp) skb_get_timestampns() argument
4412 skb_get_new_timestampns(const struct sk_buff * skb,struct __kernel_timespec * stamp) skb_get_new_timestampns() argument
4421 __net_timestamp(struct sk_buff * skb) __net_timestamp() argument
4432 skb_set_delivery_time(struct sk_buff * skb,ktime_t kt,u8 tstamp_type) skb_set_delivery_time() argument
4443 skb_set_delivery_type_by_clockid(struct sk_buff * skb,ktime_t kt,clockid_t clockid) skb_set_delivery_type_by_clockid() argument
4470 skb_clear_delivery_time(struct sk_buff * skb) skb_clear_delivery_time() argument
4481 skb_clear_tstamp(struct sk_buff * skb) skb_clear_tstamp() argument
4489 skb_tstamp(const struct sk_buff * skb) skb_tstamp() argument
4497 skb_tstamp_cond(const struct sk_buff * skb,bool cond) skb_tstamp_cond() argument
4508 skb_metadata_len(const struct sk_buff * skb) skb_metadata_len() argument
4513 skb_metadata_end(const struct sk_buff * skb) skb_metadata_end() argument
4570 skb_metadata_set(struct sk_buff * skb,u8 meta_len) skb_metadata_set() argument
4575 skb_metadata_clear(struct sk_buff * skb) skb_metadata_clear() argument
4595 skb_data_move(struct sk_buff * skb,const int len,const unsigned int n) skb_data_move() argument
4631 skb_postpull_data_move(struct sk_buff * skb,const unsigned int len,const unsigned int n) skb_postpull_data_move() argument
4647 skb_postpush_data_move(struct sk_buff * skb,const unsigned int len,const unsigned int n) skb_postpush_data_move() argument
4664 skb_clone_tx_timestamp(struct sk_buff * skb) skb_clone_tx_timestamp() argument
4668 skb_defer_rx_timestamp(struct sk_buff * skb) skb_defer_rx_timestamp() argument
4720 skb_tx_timestamp(struct sk_buff * skb) skb_tx_timestamp() argument
4739 skb_csum_unnecessary(const struct sk_buff * skb) skb_csum_unnecessary() argument
4763 skb_checksum_complete(struct sk_buff * skb) skb_checksum_complete() argument
4769 __skb_decr_checksum_unnecessary(struct sk_buff * skb) __skb_decr_checksum_unnecessary() argument
4779 __skb_incr_checksum_unnecessary(struct sk_buff * skb) __skb_incr_checksum_unnecessary() argument
4790 __skb_reset_checksum_unnecessary(struct sk_buff * skb) __skb_reset_checksum_unnecessary() argument
4803 __skb_checksum_validate_needed(struct sk_buff * skb,bool zero_okay,__sum16 check) __skb_checksum_validate_needed() argument
4827 skb_checksum_complete_unset(struct sk_buff * skb) skb_checksum_complete_unset() argument
4842 __skb_checksum_validate_complete(struct sk_buff * skb,bool complete,__wsum psum) __skb_checksum_validate_complete() argument
4866 null_compute_pseudo(struct sk_buff * skb,int proto) null_compute_pseudo() argument
4881 __skb_checksum_validate(skb,proto,complete,zero_okay,check,compute_pseudo) global() argument
4892 skb_checksum_init(skb,proto,compute_pseudo) global() argument
4895 skb_checksum_init_zero_check(skb,proto,check,compute_pseudo) global() argument
4898 skb_checksum_validate(skb,proto,compute_pseudo) global() argument
4901 skb_checksum_validate_zero_check(skb,proto,check,compute_pseudo) global() argument
4905 skb_checksum_simple_validate(skb) global() argument
4908 __skb_checksum_convert_check(struct sk_buff * skb) __skb_checksum_convert_check() argument
4913 __skb_checksum_convert(struct sk_buff * skb,__wsum pseudo) __skb_checksum_convert() argument
4919 skb_checksum_try_convert(skb,proto,compute_pseudo) global() argument
4925 skb_remcsum_adjust_partial(struct sk_buff * skb,void * ptr,u16 start,u16 offset) skb_remcsum_adjust_partial() argument
4938 skb_remcsum_process(struct sk_buff * skb,void * ptr,int start,int offset,bool nopartial) skb_remcsum_process() argument
4959 skb_nfct(const struct sk_buff * skb) skb_nfct() argument
4968 skb_get_nfct(const struct sk_buff * skb) skb_get_nfct() argument
4977 skb_set_nfct(struct sk_buff * skb,unsigned long nfct) skb_set_nfct() argument
5035 skb_ext_put(struct sk_buff * skb) skb_ext_put() argument
5065 skb_ext_exist(const struct sk_buff * skb,enum skb_ext_id id) skb_ext_exist() argument
5070 skb_ext_del(struct sk_buff * skb,enum skb_ext_id id) skb_ext_del() argument
5076 skb_ext_find(const struct sk_buff * skb,enum skb_ext_id id) skb_ext_find() argument
5087 skb_ext_reset(struct sk_buff * skb) skb_ext_reset() argument
5095 skb_has_extensions(struct sk_buff * skb) skb_has_extensions() argument
5100 skb_ext_put(struct sk_buff * skb) skb_ext_put() argument
5101 skb_ext_reset(struct sk_buff * skb) skb_ext_reset() argument
5102 skb_ext_del(struct sk_buff * skb,int unused) skb_ext_del() argument
5105 skb_has_extensions(struct sk_buff * skb) skb_has_extensions() argument
5108 nf_reset_ct(struct sk_buff * skb) nf_reset_ct() argument
5116 nf_reset_trace(struct sk_buff * skb) nf_reset_trace() argument
5123 ipvs_reset(struct sk_buff * skb) ipvs_reset() argument
5159 skb_init_secmark(struct sk_buff * skb) skb_init_secmark() argument
5167 skb_init_secmark(struct sk_buff * skb) skb_init_secmark() argument
5171 secpath_exists(const struct sk_buff * skb) secpath_exists() argument
5180 skb_irq_freeable(const struct sk_buff * skb) skb_irq_freeable() argument
5189 skb_set_queue_mapping(struct sk_buff * skb,u16 queue_mapping) skb_set_queue_mapping() argument
5194 skb_get_queue_mapping(const struct sk_buff * skb) skb_get_queue_mapping() argument
5204 skb_record_rx_queue(struct sk_buff * skb,u16 rx_queue) skb_record_rx_queue() argument
5209 skb_get_rx_queue(const struct sk_buff * skb) skb_get_rx_queue() argument
5214 skb_rx_queue_recorded(const struct sk_buff * skb) skb_rx_queue_recorded() argument
5219 skb_set_dst_pending_confirm(struct sk_buff * skb,u32 val) skb_set_dst_pending_confirm() argument
5224 skb_get_dst_pending_confirm(const struct sk_buff * skb) skb_get_dst_pending_confirm() argument
5229 skb_sec_path(const struct sk_buff * skb) skb_sec_path() argument
5238 skb_is_gso(const struct sk_buff * skb) skb_is_gso() argument
5244 skb_is_gso_v6(const struct sk_buff * skb) skb_is_gso_v6() argument
5250 skb_is_gso_sctp(const struct sk_buff * skb) skb_is_gso_sctp() argument
5256 skb_is_gso_tcp(const struct sk_buff * skb) skb_is_gso_tcp() argument
5261 skb_gso_reset(struct sk_buff * skb) skb_gso_reset() argument
5286 skb_warn_if_lro(const struct sk_buff * skb) skb_warn_if_lro() argument
5300 skb_forward_csum(struct sk_buff * skb) skb_forward_csum() argument
5315 skb_checksum_none_assert(const struct sk_buff * skb) skb_checksum_none_assert() argument
5336 skb_head_is_locked(const struct sk_buff * skb) skb_head_is_locked() argument
5350 lco_csum(struct sk_buff * skb) lco_csum() argument
5366 skb_is_redirected(const struct sk_buff * skb) skb_is_redirected() argument
5371 skb_set_redirected(struct sk_buff * skb,bool from_ingress) skb_set_redirected() argument
5381 skb_reset_redirect(struct sk_buff * skb) skb_reset_redirect() argument
5386 skb_set_redirected_noclear(struct sk_buff * skb,bool from_ingress) skb_set_redirected_noclear() argument
5395 skb_csum_is_sctp(struct sk_buff * skb) skb_csum_is_sctp() argument
5404 skb_reset_csum_not_inet(struct sk_buff * skb) skb_reset_csum_not_inet() argument
5412 skb_set_kcov_handle(struct sk_buff * skb,const u64 kcov_handle) skb_set_kcov_handle() argument
5420 skb_get_kcov_handle(struct sk_buff * skb) skb_get_kcov_handle() argument
5429 skb_mark_for_recycle(struct sk_buff * skb) skb_mark_for_recycle() argument
[all...]
/linux/net/xfrm/
H A Dxfrm_output.c28 static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb);
29 static int xfrm_inner_extract_output(struct xfrm_state *x, struct sk_buff *skb);
31 static int xfrm_skb_check_space(struct sk_buff *skb) in xfrm_skb_check_space() argument
33 struct dst_entry *dst = skb_dst(skb); in xfrm_skb_check_space()
35 - skb_headroom(skb); in xfrm_skb_check_space()
36 int ntail = dst->dev->needed_tailroom - skb_tailroom(skb); in xfrm_skb_check_space()
45 return pskb_expand_head(skb, nhead, ntail, GFP_ATOMIC); in xfrm_skb_check_space()
52 static struct dst_entry *skb_dst_pop(struct sk_buff *skb) in skb_dst_pop() argument
54 struct dst_entry *child = dst_clone(xfrm_dst_child(skb_dst(skb))); in skb_dst_pop()
56 skb_dst_drop(skb); in skb_dst_pop()
[all …]
H A Dxfrm_input.c41 int (*finish)(struct net *net, struct sock *sk, struct sk_buff *skb);
106 static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol, in xfrm_rcv_cb() argument
117 ret = afinfo->callback(skb, protocol, err); in xfrm_rcv_cb()
123 struct sec_path *secpath_set(struct sk_buff *skb) in secpath_set() argument
125 struct sec_path *sp, *tmp = skb_ext_find(skb, SKB_EXT_SEC_PATH); in secpath_set()
127 sp = skb_ext_add(skb, SKB_EXT_SEC_PATH); in secpath_set()
146 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument
163 if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr))) in xfrm_parse_spi()
165 *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2))); in xfrm_parse_spi()
172 if (!pskb_may_pull(skb, hlen)) in xfrm_parse_spi()
[all …]
/linux/net/bridge/
H A Dbr_netfilter_hooks.c72 #define IS_IP(skb) \ argument
73 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
75 #define IS_IPV6(skb) \ argument
76 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6))
78 #define IS_ARP(skb) \ argument
79 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP))
81 static inline __be16 vlan_proto(const struct sk_buff *skb) in vlan_proto() argument
83 if (skb_vlan_tag_present(skb)) in vlan_proto()
84 return skb->protocol; in vlan_proto()
85 else if (skb->protocol == htons(ETH_P_8021Q)) in vlan_proto()
[all …]
H A Dbr_forward.c22 const struct sk_buff *skb) in should_deliver() argument
27 return ((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) && in should_deliver()
29 br_allowed_egress(vg, skb) && nbp_switchdev_allowed_egress(p, skb) && in should_deliver()
30 !br_skb_isolated(p, skb); in should_deliver()
33 int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in br_dev_queue_push_xmit() argument
35 skb_push(skb, ETH_HLEN); in br_dev_queue_push_xmit()
36 if (!is_skb_forwardable(skb->dev, skb)) in br_dev_queue_push_xmit()
39 br_drop_fake_rtable(skb); in br_dev_queue_push_xmit()
41 if (skb->ip_summed == CHECKSUM_PARTIAL && in br_dev_queue_push_xmit()
42 eth_type_vlan(skb->protocol)) { in br_dev_queue_push_xmit()
[all …]
H A Dbr_netfilter_ipv6.c43 int br_validate_ipv6(struct net *net, struct sk_buff *skb) in br_validate_ipv6() argument
46 struct inet6_dev *idev = __in6_dev_get(skb->dev); in br_validate_ipv6()
50 if (!pskb_may_pull(skb, ip6h_len)) in br_validate_ipv6()
53 if (skb->len < ip6h_len) in br_validate_ipv6()
56 hdr = ipv6_hdr(skb); in br_validate_ipv6()
61 pkt_len = ipv6_payload_len(skb, hdr); in br_validate_ipv6()
62 if (hdr->nexthdr == NEXTHDR_HOP && nf_ip6_check_hbh_len(skb, &pkt_len)) in br_validate_ipv6()
65 if (pkt_len + ip6h_len > skb->len) { in br_validate_ipv6()
70 if (pskb_trim_rcsum(skb, pkt_len + ip6h_len)) { in br_validate_ipv6()
76 memset(IP6CB(skb), 0, sizeof(struct inet6_skb_parm)); in br_validate_ipv6()
[all …]
/linux/net/core/
H A Dgro.c92 int skb_gro_receive(struct sk_buff *p, struct sk_buff *skb) in skb_gro_receive() argument
94 struct skb_shared_info *pinfo, *skbinfo = skb_shinfo(skb); in skb_gro_receive()
95 unsigned int offset = skb_gro_offset(skb); in skb_gro_receive()
96 unsigned int headlen = skb_headlen(skb); in skb_gro_receive()
97 unsigned int len = skb_gro_len(skb); in skb_gro_receive()
109 if (p->pp_recycle != skb->pp_recycle) in skb_gro_receive()
113 NAPI_GRO_CB(skb)->flush)) in skb_gro_receive()
117 if (NAPI_GRO_CB(skb)->proto != IPPROTO_TCP || in skb_gro_receive()
122 segs = NAPI_GRO_CB(skb)->count; in skb_gro_receive()
149 new_truesize = SKB_TRUESIZE(skb_end_offset(skb)); in skb_gro_receive()
[all …]
H A Dskbuff.c207 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr, in skb_panic() argument
211 msg, addr, skb->len, sz, skb->head, skb->data, in skb_panic()
212 (unsigned long)skb->tail, (unsigned long)skb->end, in skb_panic()
213 skb->dev ? skb->dev->name : "<NULL>"); in skb_panic()
217 static void skb_over_panic(struct sk_buff *skb, unsigned int sz, void *addr) in skb_over_panic() argument
219 skb_panic(skb, sz, addr, __func__); in skb_over_panic()
222 static void skb_under_panic(struct sk_buff *skb, unsigned int sz, void *addr) in skb_under_panic() argument
224 skb_panic(skb, sz, addr, __func__); in skb_under_panic()
287 struct sk_buff *skb; in napi_skb_cache_get() local
302 skb = nc->skb_cache[--nc->skb_count]; in napi_skb_cache_get()
[all …]
/linux/net/ipv6/
H A Dexthdrs.c65 static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff, in ip6_tlvopt_unknown() argument
79 switch ((skb_network_header(skb)[optoff] & 0xC0) >> 6) { in ip6_tlvopt_unknown()
90 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) in ip6_tlvopt_unknown()
94 icmpv6_param_prob_reason(skb, ICMPV6_UNK_OPTION, optoff, in ip6_tlvopt_unknown()
100 kfree_skb_reason(skb, SKB_DROP_REASON_UNHANDLED_PROTO); in ip6_tlvopt_unknown()
104 static bool ipv6_hop_ra(struct sk_buff *skb, int optoff);
105 static bool ipv6_hop_ioam(struct sk_buff *skb, int optoff);
106 static bool ipv6_hop_jumbo(struct sk_buff *skb, int optoff);
107 static bool ipv6_hop_calipso(struct sk_buff *skb, int optoff);
109 static bool ipv6_dest_hao(struct sk_buff *skb, int optoff);
[all …]
H A Dip6_input.c49 struct sk_buff *skb) in ip6_rcv_finish_core() argument
52 !skb_dst(skb) && !skb->sk) { in ip6_rcv_finish_core()
53 switch (ipv6_hdr(skb)->nexthdr) { in ip6_rcv_finish_core()
56 tcp_v6_early_demux(skb); in ip6_rcv_finish_core()
60 udp_v6_early_demux(skb); in ip6_rcv_finish_core()
65 if (!skb_valid_dst(skb)) in ip6_rcv_finish_core()
66 ip6_route_input(skb); in ip6_rcv_finish_core()
69 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish() argument
74 skb = l3mdev_ip6_rcv(skb); in ip6_rcv_finish()
75 if (!skb) in ip6_rcv_finish()
[all …]
H A Dip6_offload.c24 static int ipv6_gro_pull_exthdrs(struct sk_buff *skb, int off, int proto) in ipv6_gro_pull_exthdrs() argument
40 opth = skb_gro_header(skb, off + sizeof(*opth), off); in ipv6_gro_pull_exthdrs()
46 opth = skb_gro_header(skb, off + len, off); in ipv6_gro_pull_exthdrs()
54 skb_gro_pull(skb, off - skb_gro_receive_network_offset(skb)); in ipv6_gro_pull_exthdrs()
58 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto) in ipv6_gso_pull_exthdrs() argument
74 if (unlikely(!pskb_may_pull(skb, 8))) in ipv6_gso_pull_exthdrs()
77 opth = (void *)skb->data; in ipv6_gso_pull_exthdrs()
80 if (unlikely(!pskb_may_pull(skb, len))) in ipv6_gso_pull_exthdrs()
83 opth = (void *)skb->data; in ipv6_gso_pull_exthdrs()
85 __skb_pull(skb, len); in ipv6_gso_pull_exthdrs()
[all …]
/linux/include/net/
H A Dgro.h100 #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb) argument
103 static inline int gro_recursion_inc_test(struct sk_buff *skb) in gro_recursion_inc_test() argument
105 return ++NAPI_GRO_CB(skb)->recursion_counter == GRO_RECURSION_LIMIT; in gro_recursion_inc_test()
111 struct sk_buff *skb) in call_gro_receive() argument
113 if (unlikely(gro_recursion_inc_test(skb))) { in call_gro_receive()
114 NAPI_GRO_CB(skb)->flush |= 1; in call_gro_receive()
118 return cb(head, skb); in call_gro_receive()
126 struct sk_buff *skb) in call_gro_receive_sk() argument
128 if (unlikely(gro_recursion_inc_test(skb))) { in call_gro_receive_sk()
129 NAPI_GRO_CB(skb)->flush |= 1; in call_gro_receive_sk()
[all …]
H A Dllc_c_ev.h123 static __inline__ struct llc_conn_state_ev *llc_conn_ev(struct sk_buff *skb) in llc_conn_ev() argument
125 return (struct llc_conn_state_ev *)skb->cb; in llc_conn_ev()
128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb);
129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb);
131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb);
132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb);
133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb);
134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb);
135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb);
136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb);
[all …]
H A Dllc_c_ac.h97 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb);
99 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb);
100 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb);
101 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb);
102 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb);
103 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb);
104 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb);
105 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb);
107 struct sk_buff *skb);
109 struct sk_buff *skb);
[all …]
/linux/net/devlink/
H A Dnetlink_gen.h23 int devlink_nl_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
26 struct sk_buff *skb, struct genl_info *info);
28 struct sk_buff *skb, struct genl_info *info);
30 struct sk_buff *skb,
33 devlink_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
37 struct sk_buff *skb, struct genl_info *info);
39 int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info);
40 int devlink_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
41 int devlink_nl_port_get_doit(struct sk_buff *skb, struct genl_info *info);
42 int devlink_nl_port_get_dumpit(struct sk_buff *skb,
[all …]
/linux/drivers/net/can/dev/
H A Dskb.c48 int can_put_echo_skb(struct sk_buff *skb, struct net_device *dev, in can_put_echo_skb() argument
62 (skb->protocol != htons(ETH_P_CAN) && in can_put_echo_skb()
63 skb->protocol != htons(ETH_P_CANFD) && in can_put_echo_skb()
64 skb->protocol != htons(ETH_P_CANXL))) { in can_put_echo_skb()
65 kfree_skb(skb); in can_put_echo_skb()
70 skb = can_create_echo_skb(skb); in can_put_echo_skb()
71 if (!skb) in can_put_echo_skb()
75 skb->ip_summed = CHECKSUM_UNNECESSARY; in can_put_echo_skb()
76 skb->dev = dev; in can_put_echo_skb()
79 csx = can_skb_ext_find(skb); in can_put_echo_skb()
[all …]
/linux/net/ipv4/
H A Dip_input.c150 bool ip_call_ra_chain(struct sk_buff *skb) in ip_call_ra_chain() argument
153 u8 protocol = ip_hdr(skb)->protocol; in ip_call_ra_chain()
155 struct net_device *dev = skb->dev; in ip_call_ra_chain()
167 if (ip_is_fragment(ip_hdr(skb))) { in ip_call_ra_chain()
168 if (ip_defrag(net, skb, IP_DEFRAG_CALL_RA_CHAIN)) in ip_call_ra_chain()
172 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip_call_ra_chain()
181 raw_rcv(last, skb); in ip_call_ra_chain()
189 void ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int protocol) in ip_protocol_deliver_rcu() argument
195 raw = raw_local_deliver(skb, protocol); in ip_protocol_deliver_rcu()
200 if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) { in ip_protocol_deliver_rcu()
[all …]
H A Dtcp_offload.c16 static void tcp_gso_tstamp(struct sk_buff *skb, struct sk_buff *gso_skb, in tcp_gso_tstamp() argument
22 while (skb) { in tcp_gso_tstamp()
24 skb_shinfo(skb)->tx_flags |= flags; in tcp_gso_tstamp()
25 skb_shinfo(skb)->tskey = ts_seq; in tcp_gso_tstamp()
29 skb = skb->next; in tcp_gso_tstamp()
88 static struct sk_buff *__tcp4_gso_segment_list(struct sk_buff *skb, in __tcp4_gso_segment_list() argument
91 skb = skb_segment_list(skb, features, skb_mac_header_len(skb)); in __tcp4_gso_segment_list()
92 if (IS_ERR(skb)) in __tcp4_gso_segment_list()
93 return skb; in __tcp4_gso_segment_list()
95 return __tcpv4_gso_segment_list_csum(skb); in __tcp4_gso_segment_list()
[all …]
H A Dgre_offload.c16 static struct sk_buff *gre_gso_segment(struct sk_buff *skb, in gre_gso_segment() argument
19 int tnl_hlen = skb_inner_mac_header(skb) - skb_transport_header(skb); in gre_gso_segment()
22 u16 mac_offset = skb->mac_header; in gre_gso_segment()
23 __be16 protocol = skb->protocol; in gre_gso_segment()
24 u16 mac_len = skb->mac_len; in gre_gso_segment()
27 if (!skb->encapsulation) in gre_gso_segment()
33 if (unlikely(!pskb_may_pull(skb, tnl_hlen))) in gre_gso_segment()
37 skb->encapsulation = 0; in gre_gso_segment()
38 SKB_GSO_CB(skb)->encap_level = 0; in gre_gso_segment()
39 __skb_pull(skb, tnl_hlen); in gre_gso_segment()
[all …]
/linux/drivers/bluetooth/
H A Dbtbcm.c80 struct sk_buff *skb; in btbcm_check_bdaddr() local
82 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btbcm_check_bdaddr()
84 if (IS_ERR(skb)) { in btbcm_check_bdaddr()
85 int err = PTR_ERR(skb); in btbcm_check_bdaddr()
91 if (skb->len != sizeof(*bda)) { in btbcm_check_bdaddr()
93 kfree_skb(skb); in btbcm_check_bdaddr()
97 bda = (struct hci_rp_read_bd_addr *)skb->data; in btbcm_check_bdaddr()
142 kfree_skb(skb); in btbcm_check_bdaddr()
150 struct sk_buff *skb; in btbcm_set_bdaddr() local
153 skb = __hci_cmd_sync(hdev, 0xfc01, 6, bdaddr, HCI_INIT_TIMEOUT); in btbcm_set_bdaddr()
[all …]
/linux/drivers/net/wireless/ath/ath10k/
H A Dwmi-ops.h15 void (*rx)(struct ath10k *ar, struct sk_buff *skb);
19 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb,
21 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb,
23 int (*pull_mgmt_tx_compl)(struct ath10k *ar, struct sk_buff *skb,
26 struct ath10k *ar, struct sk_buff *skb,
28 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb,
30 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb,
32 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb,
34 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb,
36 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb,
[all …]
/linux/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_handlers.c22 static void rmnet_set_skb_proto(struct sk_buff *skb) in rmnet_set_skb_proto() argument
24 switch (skb->data[0] & 0xF0) { in rmnet_set_skb_proto()
26 skb->protocol = htons(ETH_P_IP); in rmnet_set_skb_proto()
29 skb->protocol = htons(ETH_P_IPV6); in rmnet_set_skb_proto()
32 skb->protocol = htons(ETH_P_MAP); in rmnet_set_skb_proto()
40 rmnet_deliver_skb(struct sk_buff *skb) in rmnet_deliver_skb() argument
42 struct rmnet_priv *priv = netdev_priv(skb->dev); in rmnet_deliver_skb()
44 skb_reset_transport_header(skb); in rmnet_deliver_skb()
45 skb_reset_network_header(skb); in rmnet_deliver_skb()
46 rmnet_vnd_rx_fixup(skb, skb->dev); in rmnet_deliver_skb()
[all …]
/linux/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c27 struct sk_buff *skb, in nf_br_ip_fragment() argument
33 int frag_max_size = BR_INPUT_SKB_CB(skb)->frag_max_size; in nf_br_ip_fragment()
34 u8 tstamp_type = skb->tstamp_type; in nf_br_ip_fragment()
36 ktime_t tstamp = skb->tstamp; in nf_br_ip_fragment()
42 if (skb->ip_summed == CHECKSUM_PARTIAL && in nf_br_ip_fragment()
43 (err = skb_checksum_help(skb))) in nf_br_ip_fragment()
46 iph = ip_hdr(skb); in nf_br_ip_fragment()
54 ll_rs = LL_RESERVED_SPACE(skb->dev); in nf_br_ip_fragment()
55 mtu = skb->dev->mtu; in nf_br_ip_fragment()
57 if (skb_has_frag_list(skb)) { in nf_br_ip_fragment()
[all …]
/linux/drivers/net/ovpn/
H A Dio.c43 static bool ovpn_is_keepalive(struct sk_buff *skb) in ovpn_is_keepalive() argument
45 if (*skb->data != ovpn_keepalive_message[0]) in ovpn_is_keepalive()
48 if (skb->len != OVPN_KEEPALIVE_SIZE) in ovpn_is_keepalive()
51 if (!pskb_may_pull(skb, OVPN_KEEPALIVE_SIZE)) in ovpn_is_keepalive()
54 return !memcmp(skb->data, ovpn_keepalive_message, OVPN_KEEPALIVE_SIZE); in ovpn_is_keepalive()
60 static void ovpn_netdev_write(struct ovpn_peer *peer, struct sk_buff *skb) in ovpn_netdev_write() argument
70 skb_gso_reset(skb); in ovpn_netdev_write()
75 skb->ip_summed = CHECKSUM_NONE; in ovpn_netdev_write()
78 skb_clear_hash(skb); in ovpn_netdev_write()
83 skb->dev = peer->ovpn->dev; in ovpn_netdev_write()
[all …]
/linux/net/ieee802154/6lowpan/
H A Drx.c21 static int lowpan_give_skb_to_device(struct sk_buff *skb) in lowpan_give_skb_to_device() argument
23 skb->protocol = htons(ETH_P_IPV6); in lowpan_give_skb_to_device()
24 skb->dev->stats.rx_packets++; in lowpan_give_skb_to_device()
25 skb->dev->stats.rx_bytes += skb->len; in lowpan_give_skb_to_device()
27 return netif_rx(skb); in lowpan_give_skb_to_device()
30 static int lowpan_rx_handlers_result(struct sk_buff *skb, lowpan_rx_result res) in lowpan_rx_handlers_result() argument
40 kfree_skb(skb); in lowpan_rx_handlers_result()
46 return lowpan_give_skb_to_device(skb); in lowpan_rx_handlers_result()
64 static lowpan_rx_result lowpan_rx_h_frag(struct sk_buff *skb) in lowpan_rx_h_frag() argument
68 if (!(lowpan_is_frag1(*skb_network_header(skb)) || in lowpan_rx_h_frag()
[all …]

12345678910>>...106