Home
last modified time | relevance | path

Searched full:skb (Results 1 – 25 of 2632) sorted by relevance

12345678910>>...106

/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/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.c19 * Ray VanTassle : Fixed --skb->lock in free
88 #include <trace/events/skb.h>
197 * @skb: buffer
207 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
[all …]
H A Dgso.c9 * @skb: buffer to segment
13 struct sk_buff *skb_eth_gso_segment(struct sk_buff *skb, in skb_eth_gso_segment() argument
22 segs = ptype->callbacks.gso_segment(skb, features); in skb_eth_gso_segment()
34 * @skb: buffer to segment
37 struct sk_buff *skb_mac_gso_segment(struct sk_buff *skb, in skb_mac_gso_segment() argument
42 int vlan_depth = skb->mac_len; in skb_mac_gso_segment()
43 __be16 type = skb_network_protocol(skb, &vlan_depth); in skb_mac_gso_segment()
48 __skb_pull(skb, vlan_depth); in skb_mac_gso_segment()
53 segs = ptype->callbacks.gso_segment(skb, features); in skb_mac_gso_segment()
59 __skb_push(skb, skb->data - skb_mac_header(skb)); in skb_mac_gso_segment()
[all …]
/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
574 skb_uarg(SKB) global() argument
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
1783 skb_shinfo(SKB) global() 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/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/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 …]
/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/net/ipv4/
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()
98 tcp4_gso_segment(struct sk_buff * skb,netdev_features_t features) tcp4_gso_segment() argument
133 tcp_gso_segment(struct sk_buff * skb,netdev_features_t features) tcp_gso_segment() argument
286 tcp_gro_receive(struct list_head * head,struct sk_buff * skb,struct tcphdr * th) tcp_gro_receive() argument
370 tcp_gro_complete(struct sk_buff * skb) tcp_gro_complete() argument
390 tcp4_check_fraglist_gro(struct list_head * head,struct sk_buff * skb,struct tcphdr * th) tcp4_check_fraglist_gro() argument
420 tcp4_gro_receive(struct list_head * head,struct sk_buff * skb) tcp4_gro_receive() argument
443 tcp4_gro_complete(struct sk_buff * skb,int thoff) tcp4_gro_complete() argument
[all...]
H A Desp4_offload.c31 struct sk_buff *skb) in esp4_gro_receive() argument
33 int offset = skb_gro_offset(skb); in esp4_gro_receive()
40 if (!pskb_pull(skb, offset)) in esp4_gro_receive()
43 if (xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq) != 0) in esp4_gro_receive()
46 xo = xfrm_offload(skb); in esp4_gro_receive()
48 struct sec_path *sp = secpath_set(skb); in esp4_gro_receive()
56 x = xfrm_input_state_lookup(dev_net(skb->dev), skb->mark, in esp4_gro_receive()
57 (xfrm_address_t *)&ip_hdr(skb)->daddr, in esp4_gro_receive()
69 skb->mark = xfrm_smark_get(skb->mark, x); in esp4_gro_receive()
74 xo = xfrm_offload(skb); in esp4_gro_receive()
[all …]
H A Dudp_offload.c25 struct sk_buff *skb) in dummy_gro_rcv() argument
27 NAPI_GRO_CB(skb)->flush = 1; in dummy_gro_rcv()
33 struct sk_buff *skb);
149 struct sk_buff *skb) in udp_tunnel_gro_rcv() argument
152 if (unlikely(gro_recursion_inc_test(skb))) { in udp_tunnel_gro_rcv()
153 NAPI_GRO_CB(skb)->flush |= 1; in udp_tunnel_gro_rcv()
156 return static_call(udp_tunnel_gro_rcv)(sk, head, skb); in udp_tunnel_gro_rcv()
158 return call_gro_receive_sk(udp_sk(sk)->gro_receive, sk, head, skb); in udp_tunnel_gro_rcv()
165 struct sk_buff *skb) in udp_tunnel_gro_rcv() argument
167 return call_gro_receive_sk(udp_sk(sk)->gro_receive, sk, head, skb); in udp_tunnel_gro_rcv()
172 __skb_udp_tunnel_segment(struct sk_buff * skb,netdev_features_t features,struct sk_buff * (* gso_inner_segment)(struct sk_buff * skb,netdev_features_t features),__be16 new_protocol,bool is_ipv6) __skb_udp_tunnel_segment() argument
174 __skb_udp_tunnel_segment(struct sk_buff * skb,netdev_features_t features,struct sk_buff * (* gso_inner_segment)(struct sk_buff * skb,netdev_features_t features),__be16 new_protocol,bool is_ipv6) __skb_udp_tunnel_segment() argument
309 skb_udp_tunnel_segment(struct sk_buff * skb,netdev_features_t features,bool is_ipv6) skb_udp_tunnel_segment() argument
462 __udp_gso_segment_list(struct sk_buff * skb,netdev_features_t features,bool is_ipv6) __udp_gso_segment_list() argument
638 udp4_ufo_fragment(struct sk_buff * skb,netdev_features_t features) udp4_ufo_fragment() argument
701 udp_gro_receive_segment(struct list_head * head,struct sk_buff * skb) udp_gro_receive_segment() argument
785 udp_gro_receive(struct list_head * head,struct sk_buff * skb,struct udphdr * uh,struct sock * sk) udp_gro_receive() argument
855 udp4_gro_lookup_skb(struct sk_buff * skb,__be16 sport,__be16 dport) udp4_gro_lookup_skb() argument
875 udp4_gro_receive(struct list_head * head,struct sk_buff * skb) udp4_gro_receive() argument
906 udp_gro_complete_segment(struct sk_buff * skb) udp_gro_complete_segment() argument
923 udp_gro_complete(struct sk_buff * skb,int nhoff,udp_lookup_t lookup) udp_gro_complete() argument
961 udp4_gro_complete(struct sk_buff * skb,int nhoff) udp4_gro_complete() argument
[all...]
/linux/net/openvswitch/
H A Dactions.c90 static struct deferred_action *add_deferred_actions(struct sk_buff *skb, in add_deferred_actions() argument
100 da->skb = skb; in add_deferred_actions()
119 static int clone_execute(struct datapath *dp, struct sk_buff *skb,
125 static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,
129 static int push_mpls(struct sk_buff *skb, struct sw_flow_key *key, in push_mpls() argument
134 err = skb_mpls_push(skb, mpls_lse, mpls_ethertype, mac_len, !!mac_len); in push_mpls()
145 static int pop_mpls(struct sk_buff *skb, struct sw_flow_key *key, in pop_mpls() argument
150 err = skb_mpls_pop(skb, ethertype, skb->mac_len, in pop_mpls()
162 static int set_mpls(struct sk_buff *skb, struct sw_flow_key *flow_key, in set_mpls() argument
169 if (!pskb_may_pull(skb, skb_network_offset(skb) + MPLS_HLEN)) in set_mpls()
[all …]
/linux/net/ipv6/
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
72 * skb t in ip6_rcv_finish()
84 struct sk_buff *skb, *next; ip6_sublist_rcv_finish() local
92 ip6_can_use_hint(const struct sk_buff * skb,const struct sk_buff * hint) ip6_can_use_hint() argument
100 ip6_extract_route_hint(const struct net * net,struct sk_buff * skb) ip6_extract_route_hint() argument
112 struct sk_buff *skb, *next, *hint = NULL; ip6_list_rcv_finish() local
148 ip6_rcv_core(struct sk_buff * skb,struct net_device * dev,struct net * net) ip6_rcv_core() argument
304 ipv6_rcv(struct sk_buff * skb,struct net_device * dev,struct packet_type * pt,struct net_device * orig_dev) ipv6_rcv() argument
330 struct sk_buff *skb, *next; ipv6_list_rcv() local
363 ip6_protocol_deliver_rcu(struct net * net,struct sk_buff * skb,int nexthdr,bool have_final) ip6_protocol_deliver_rcu() argument
479 ip6_input_finish(struct net * net,struct sock * sk,struct sk_buff * skb) ip6_input_finish() argument
495 ip6_input(struct sk_buff * skb) ip6_input() argument
509 ip6_mc_input(struct sk_buff * skb) ip6_mc_input() argument
[all...]
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_offload.c24 static int ipv6_gro_pull_exthdrs(struct sk_buff *skb, int off, int proto)
40 opth = skb_gro_header(skb, off + sizeof(*opth), off); in ipv6_gro_pull_exthdrs() argument
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_gro_pull_exthdrs()
74 if (unlikely(!pskb_may_pull(skb, 8))) in ipv6_gso_pull_exthdrs() argument
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 in ipv6_gso_pull_exthdrs()
33 indirect_call_gro_receive_l4(f2,f1,cb,head,skb) global() argument
107 ipv6_gso_segment(struct sk_buff * skb,netdev_features_t features) ipv6_gso_segment() argument
223 ipv6_gro_receive(struct list_head * head,struct sk_buff * skb) ipv6_gro_receive() argument
311 sit_ip6ip6_gro_receive(struct list_head * head,struct sk_buff * skb) sit_ip6ip6_gro_receive() argument
326 ip4ip6_gro_receive(struct list_head * head,struct sk_buff * skb) ip4ip6_gro_receive() argument
340 ipv6_gro_complete(struct sk_buff * skb,int nhoff) ipv6_gro_complete() argument
392 sit_gro_complete(struct sk_buff * skb,int nhoff) sit_gro_complete() argument
399 ip6ip6_gro_complete(struct sk_buff * skb,int nhoff) ip6ip6_gro_complete() argument
406 ip4ip6_gro_complete(struct sk_buff * skb,int nhoff) ip4ip6_gro_complete() argument
414 sit_gso_segment(struct sk_buff * skb,netdev_features_t features) sit_gso_segment() argument
423 ip4ip6_gso_segment(struct sk_buff * skb,netdev_features_t features) ip4ip6_gso_segment() argument
432 ip6ip6_gso_segment(struct sk_buff * skb,netdev_features_t features) ip6ip6_gso_segment() argument
[all...]
H A Desp6_offload.c54 struct sk_buff *skb) in esp6_gro_receive() argument
56 int offset = skb_gro_offset(skb); in esp6_gro_receive()
64 if (NAPI_GRO_CB(skb)->proto == IPPROTO_UDP) in esp6_gro_receive()
67 if (!pskb_pull(skb, offset)) in esp6_gro_receive()
70 if (xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq) != 0) in esp6_gro_receive()
73 xo = xfrm_offload(skb); in esp6_gro_receive()
75 struct sec_path *sp = secpath_set(skb); in esp6_gro_receive()
83 x = xfrm_input_state_lookup(dev_net(skb->dev), skb->mark, in esp6_gro_receive()
84 (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in esp6_gro_receive()
96 skb->mark = xfrm_smark_get(skb->mark, x); in esp6_gro_receive()
[all …]
/linux/include/net/
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 …]
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 …]
/linux/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c27 struct sk_buff *skb, in nf_br_ip_fragment()
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()
28 nf_br_ip_fragment(struct net * net,struct sock * sk,struct sk_buff * skb,struct nf_bridge_frag_data * data,int (* output)(struct net *,struct sock * sk,const struct nf_bridge_frag_data * data,struct sk_buff *)) nf_br_ip_fragment() argument
130 br_skb_cb_save(struct sk_buff * skb,struct br_input_skb_cb * cb,size_t inet_skb_parm_size) br_skb_cb_save() argument
137 br_skb_cb_restore(struct sk_buff * skb,const struct br_input_skb_cb * cb,u16 fragsz) br_skb_cb_restore() argument
145 nf_ct_br_defrag4(struct sk_buff * skb,const struct nf_hook_state * state) nf_ct_br_defrag4() argument
175 nf_ct_br_defrag6(struct sk_buff * skb,const struct nf_hook_state * state) nf_ct_br_defrag6() argument
204 nf_ct_br_ip_check(const struct sk_buff * skb) nf_ct_br_ip_check() argument
223 nf_ct_br_ipv6_check(const struct sk_buff * skb) nf_ct_br_ipv6_check() argument
240 nf_ct_bridge_pre(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) nf_ct_bridge_pre() argument
294 nf_ct_bridge_in(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) nf_ct_bridge_in() argument
324 nf_ct_bridge_frag_save(struct sk_buff * skb,struct nf_bridge_frag_data * data) nf_ct_bridge_frag_save() argument
338 nf_ct_bridge_refrag(struct sk_buff * skb,const struct nf_hook_state * state,int (* output)(struct net *,struct sock * sk,const struct nf_bridge_frag_data * data,struct sk_buff *)) nf_ct_bridge_refrag() argument
365 nf_ct_bridge_frag_restore(struct sk_buff * skb,const struct nf_bridge_frag_data * data) nf_ct_bridge_frag_restore() argument
388 nf_ct_bridge_refrag_post(struct net * net,struct sock * sk,const struct nf_bridge_frag_data * data,struct sk_buff * skb) nf_ct_bridge_refrag_post() argument
399 nf_ct_bridge_post(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) nf_ct_bridge_post() argument
[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/sched/
H A Dsch_frag.c18 int (*xmit)(struct sk_buff *skb);
26 static int sch_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in sch_frag_xmit()
31 if (skb_cow_head(skb, data->l2_len) < 0) { in sch_frag_xmit()
32 kfree_skb(skb); in sch_frag_xmit()
36 __skb_dst_copy(skb, data->dst); in sch_frag_xmit()
37 *qdisc_skb_cb(skb) = data->cb; in sch_frag_xmit()
38 skb->inner_protocol = data->inner_protocol; in sch_frag_xmit()
40 __vlan_hwaccel_put_tag(skb, data->vlan_proto, in sch_frag_xmit()
43 __vlan_hwaccel_clear_tag(skb); in sch_frag_xmit()
46 skb_push(skb, dat in sch_frag_xmit()
23 sch_frag_xmit(struct net * net,struct sock * sk,struct sk_buff * skb) sch_frag_xmit() argument
50 sch_frag_prepare_frag(struct sk_buff * skb,int (* xmit)(struct sk_buff * skb)) sch_frag_prepare_frag() argument
51 sch_frag_prepare_frag(struct sk_buff * skb,int (* xmit)(struct sk_buff * skb)) sch_frag_prepare_frag() argument
84 sch_fragment(struct net * net,struct sk_buff * skb,u16 mru,int (* xmit)(struct sk_buff * skb)) sch_fragment() argument
85 sch_fragment(struct net * net,struct sk_buff * skb,u16 mru,int (* xmit)(struct sk_buff * skb)) sch_fragment() argument
140 sch_frag_xmit_hook(struct sk_buff * skb,int (* xmit)(struct sk_buff * skb)) sch_frag_xmit_hook() argument
[all...]
/linux/net/netfilter/ipvs/
H A Dip_vs_xmit.c19 * - skb->dev is NULL, skb->protocol is not set (both are set in POST_ROUTING)
20 * - skb->pkt_type is not set yet
21 * - the only place where we can see skb->sk != NULL
106 __mtu_check_toobig_v6(const struct sk_buff *skb, u32 mtu) in __mtu_check_toobig_v6() argument
108 if (IP6CB(skb)->frag_max_size) { in __mtu_check_toobig_v6()
112 if (IP6CB(skb)->frag_max_size > mtu) in __mtu_check_toobig_v6()
115 else if (skb->len > mtu && !skb_is_gso(skb)) { in __mtu_check_toobig_v6()
157 static inline bool crosses_local_route_boundary(int skb_af, struct sk_buff *skb, in crosses_local_route_boundary() argument
169 int addr_type = ipv6_addr_type(&ipv6_hdr(skb)->saddr); in crosses_local_route_boundary()
172 (!skb->dev || skb->dev->flags & IFF_LOOPBACK) && in crosses_local_route_boundary()
[all …]
/linux/net/netfilter/
H A Dnf_flow_table_ip.c26 struct sk_buff *skb, unsigned int thoff) in nf_flow_state_check() argument
33 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_state_check()
46 static void nf_flow_nat_ip_tcp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_tcp() argument
51 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_tcp()
52 inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, true); in nf_flow_nat_ip_tcp()
55 static void nf_flow_nat_ip_udp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_udp() argument
60 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_udp()
61 if (udph->check || skb->ip_summed == CHECKSUM_PARTIAL) { in nf_flow_nat_ip_udp()
62 inet_proto_csum_replace4(&udph->check, skb, addr, in nf_flow_nat_ip_udp()
69 static void nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph, in nf_flow_nat_ip_l4proto() argument
[all …]

12345678910>>...106