Home
last modified time | relevance | path

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

12345678910>>...106

/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()
112 if (skb_zcopy(p) || skb_zcopy(skb)) in skb_gro_receive()
116 NAPI_GRO_CB(skb)->flush)) in skb_gro_receive()
120 if (NAPI_GRO_CB(skb)->proto != IPPROTO_TCP || in skb_gro_receive()
125 segs = NAPI_GRO_CB(skb)->count; in skb_gro_receive()
[all …]
H A Dskbuff.c19 * Ray VanTassle : Fixed --skb->lock in free
89 #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 in skb_panic()
217 skb_over_panic(struct sk_buff * skb,unsigned int sz,void * addr) skb_over_panic() argument
222 skb_under_panic(struct sk_buff * skb,unsigned int sz,void * addr) skb_under_panic() argument
287 struct sk_buff *skb; napi_skb_cache_get() local
316 skbuff_clear(struct sk_buff * skb) skbuff_clear() argument
390 __finalize_skb_around(struct sk_buff * skb,void * data,unsigned int size) __finalize_skb_around() argument
439 struct sk_buff *skb; slab_build_skb() local
456 __build_skb_around(struct sk_buff * skb,void * data,unsigned int frag_size) __build_skb_around() argument
492 struct sk_buff *skb; __build_skb() local
510 struct sk_buff *skb = __build_skb(data, frag_size); build_skb() local
526 build_skb_around(struct sk_buff * skb,void * data,unsigned int frag_size) build_skb_around() argument
554 struct sk_buff *skb; __napi_build_skb() local
578 struct sk_buff *skb = __napi_build_skb(data, frag_size); napi_build_skb() local
607 kmalloc_reserve(unsigned int * size,gfp_t flags,int node,struct sk_buff * skb) kmalloc_reserve() argument
677 struct sk_buff *skb = NULL; __alloc_skb() local
765 struct sk_buff *skb; __netdev_alloc_skb() local
842 struct sk_buff *skb; napi_alloc_skb() local
897 skb_coalesce_rx_frag(struct sk_buff * skb,int i,int size,unsigned int truesize) skb_coalesce_rx_frag() argument
917 skb_drop_fraglist(struct sk_buff * skb) skb_drop_fraglist() argument
922 skb_clone_fraglist(struct sk_buff * skb) skb_clone_fraglist() argument
947 struct sk_buff *skb = *pskb, *nskb; skb_pp_cow_data() local
1043 skb_pp_recycle(struct sk_buff * skb,void * data) skb_pp_recycle() argument
1060 skb_pp_frag_ref(struct sk_buff * skb) skb_pp_frag_ref() argument
1086 skb_free_head(struct sk_buff * skb) skb_free_head() argument
1099 skb_release_data(struct sk_buff * skb,enum skb_drop_reason reason) skb_release_data() argument
1139 kfree_skbmem(struct sk_buff * skb) kfree_skbmem() argument
1169 skb_release_head_state(struct sk_buff * skb) skb_release_head_state() argument
1193 skb_release_all(struct sk_buff * skb,enum skb_drop_reason reason) skb_release_all() argument
1209 __kfree_skb(struct sk_buff * skb) __kfree_skb() argument
1217 __sk_skb_reason_drop(const struct sock * sk,struct sk_buff * skb,enum skb_drop_reason reason) __sk_skb_reason_drop() argument
1246 sk_skb_reason_drop(const struct sock * sk,struct sk_buff * skb,enum skb_drop_reason reason) sk_skb_reason_drop() argument
1261 kfree_skb_add_bulk(struct sk_buff * skb,struct skb_free_array * sa,enum skb_drop_reason reason) kfree_skb_add_bulk() argument
1310 skb_dump(const char * level,const struct sk_buff * skb,bool full_pkt) skb_dump() argument
1421 skb_tx_error(struct sk_buff * skb) skb_tx_error() argument
1439 consume_skb(struct sk_buff * skb) consume_skb() argument
1457 __consume_stateless_skb(struct sk_buff * skb) __consume_stateless_skb() argument
1464 napi_skb_cache_put(struct sk_buff * skb) napi_skb_cache_put() argument
1489 __napi_kfree_skb(struct sk_buff * skb,enum skb_drop_reason reason) __napi_kfree_skb() argument
1495 napi_skb_free_stolen_head(struct sk_buff * skb) napi_skb_free_stolen_head() argument
1519 napi_consume_skb(struct sk_buff * skb,int budget) napi_consume_skb() argument
1607 __skb_clone(struct sk_buff * n,struct sk_buff * skb) __skb_clone() argument
1729 struct sk_buff *skb; msg_zerocopy_alloc() local
1814 skb_zerocopy_notify_extend(struct sk_buff * skb,u32 lo,u16 len) skb_zerocopy_notify_extend() argument
1836 struct sk_buff *tail, *skb = skb_from_uarg(uarg); __msg_zerocopy_callback() local
1884 msg_zerocopy_complete(struct sk_buff * skb,struct ubuf_info * uarg,bool success) msg_zerocopy_complete() argument
1912 skb_zerocopy_iter_stream(struct sock * sk,struct sk_buff * skb,struct msghdr * msg,int len,struct ubuf_info * uarg,struct net_devmem_dmabuf_binding * binding) skb_zerocopy_iter_stream() argument
1952 __skb_zcopy_downgrade_managed(struct sk_buff * skb) __skb_zcopy_downgrade_managed() argument
1997 skb_copy_ubufs(struct sk_buff * skb,gfp_t gfp_mask) skb_copy_ubufs() argument
2097 skb_clone(struct sk_buff * skb,gfp_t gfp_mask) skb_clone() argument
2127 skb_headers_offset_update(struct sk_buff * skb,int off) skb_headers_offset_update() argument
2153 skb_alloc_rx_flag(const struct sk_buff * skb) skb_alloc_rx_flag() argument
2177 skb_copy(const struct sk_buff * skb,gfp_t gfp_mask) skb_copy() argument
2225 __pskb_copy_fclone(struct sk_buff * skb,int headroom,gfp_t gfp_mask,bool fclone) __pskb_copy_fclone() argument
2294 pskb_expand_head(struct sk_buff * skb,int nhead,int ntail,gfp_t gfp_mask) pskb_expand_head() argument
2381 skb_realloc_headroom(struct sk_buff * skb,unsigned int headroom) skb_realloc_headroom() argument
2401 __skb_unclone_keeptruesize(struct sk_buff * skb,gfp_t pri) __skb_unclone_keeptruesize() argument
2445 skb_expand_head(struct sk_buff * skb,unsigned int headroom) skb_expand_head() argument
2502 skb_copy_expand(const struct sk_buff * skb,int newheadroom,int newtailroom,gfp_t gfp_mask) skb_copy_expand() argument
2564 __skb_pad(struct sk_buff * skb,int pad,bool free_on_error) __skb_pad() argument
2612 pskb_put(struct sk_buff * skb,struct sk_buff * tail,int len) pskb_put() argument
2631 skb_put(struct sk_buff * skb,unsigned int len) skb_put() argument
2652 skb_push(struct sk_buff * skb,unsigned int len) skb_push() argument
2672 skb_pull(struct sk_buff * skb,unsigned int len) skb_pull() argument
2689 skb_pull_data(struct sk_buff * skb,size_t len) skb_pull_data() argument
2711 skb_trim(struct sk_buff * skb,unsigned int len) skb_trim() argument
2721 ___pskb_trim(struct sk_buff * skb,unsigned int len) ___pskb_trim() argument
2808 pskb_trim_rcsum_complete(struct sk_buff * skb,unsigned int len) pskb_trim_rcsum_complete() argument
2831 pskb_trim_rcsum_slow(struct sk_buff * skb,unsigned int len) pskb_trim_rcsum_slow() argument
2875 __pskb_pull_tail(struct sk_buff * skb,int delta) __pskb_pull_tail() argument
3019 skb_copy_bits(const struct sk_buff * skb,int offset,void * to,int len) skb_copy_bits() argument
3205 __skb_splice_bits(struct sk_buff * skb,struct pipe_inode_info * pipe,unsigned int * offset,unsigned int * len,struct splice_pipe_desc * spd,struct sock * sk) __skb_splice_bits() argument
3263 skb_splice_bits(struct sk_buff * skb,struct sock * sk,unsigned int offset,struct pipe_inode_info * pipe,unsigned int tlen,unsigned int flags) skb_splice_bits() argument
3311 __skb_send_sock(struct sock * sk,struct sk_buff * skb,int offset,int len,sendmsg_func sendmsg,int flags) __skb_send_sock() argument
3416 skb_send_sock_locked(struct sock * sk,struct sk_buff * skb,int offset,int len) skb_send_sock_locked() argument
3423 skb_send_sock_locked_with_flags(struct sock * sk,struct sk_buff * skb,int offset,int len,int flags) skb_send_sock_locked_with_flags() argument
3431 skb_send_sock(struct sock * sk,struct sk_buff * skb,int offset,int len) skb_send_sock() argument
3448 skb_store_bits(struct sk_buff * skb,int offset,const void * from,int len) skb_store_bits() argument
3529 skb_checksum(const struct sk_buff * skb,int offset,int len,__wsum csum) skb_checksum() argument
3611 skb_copy_and_csum_bits(const struct sk_buff * skb,int offset,u8 * to,int len) skb_copy_and_csum_bits() argument
3700 skb_crc32c(const struct sk_buff * skb,int offset,int len,u32 crc) skb_crc32c() argument
3771 __skb_checksum_complete_head(struct sk_buff * skb,int len) __skb_checksum_complete_head() argument
3797 __skb_checksum_complete(struct sk_buff * skb) __skb_checksum_complete() argument
3935 skb_copy_and_csum_dev(const struct sk_buff * skb,u8 * to) skb_copy_and_csum_dev() argument
4047 struct sk_buff *skb = rb_entry(p, struct sk_buff, rbnode); skb_rbtree_purge() local
4059 struct sk_buff *skb, *next; skb_errqueue_purge() local
4130 skb_unlink(struct sk_buff * skb,struct sk_buff_head * list) skb_unlink() argument
4160 skb_split_inside_header(struct sk_buff * skb,struct sk_buff * skb1,const u32 len,const int pos) skb_split_inside_header() argument
4182 skb_split_no_header(struct sk_buff * skb,struct sk_buff * skb1,const u32 len,int pos) skb_split_no_header() argument
4231 skb_split(struct sk_buff * skb,struct sk_buff * skb1,const u32 len) skb_split() argument
4251 skb_prepare_for_shift(struct sk_buff * skb) skb_prepare_for_shift() argument
4274 skb_shift(struct sk_buff * tgt,struct sk_buff * skb,int shiftlen) skb_shift() argument
4403 skb_prepare_seq_read(struct sk_buff * skb,unsigned int from,unsigned int to,struct skb_seq_state * st) skb_prepare_seq_read() argument
4602 skb_find_text(struct sk_buff * skb,unsigned int from,unsigned int to,struct ts_config * config) skb_find_text() argument
4621 skb_append_pagefrags(struct sk_buff * skb,struct page * page,int offset,size_t size,size_t max_frags) skb_append_pagefrags() argument
4651 skb_pull_rcsum(struct sk_buff * skb,unsigned int len) skb_pull_rcsum() argument
4674 skb_segment_list(struct sk_buff * skb,netdev_features_t features,unsigned int offset) skb_segment_list() argument
5228 __skb_to_sgvec(struct sk_buff * skb,struct scatterlist * sg,int offset,int len,unsigned int recursion_level) __skb_to_sgvec() argument
5311 skb_to_sgvec(struct sk_buff * skb,struct scatterlist * sg,int offset,int len) skb_to_sgvec() argument
5343 skb_to_sgvec_nomark(struct sk_buff * skb,struct scatterlist * sg,int offset,int len) skb_to_sgvec_nomark() argument
5369 skb_cow_data(struct sk_buff * skb,int tailbits,struct sk_buff ** trailer) skb_cow_data() argument
5462 sock_rmem_free(struct sk_buff * skb) sock_rmem_free() argument
5469 skb_set_err_queue(struct sk_buff * skb) skb_set_err_queue() argument
5481 sock_queue_err_skb(struct sock * sk,struct sk_buff * skb) sock_queue_err_skb() argument
5503 is_icmp_err_skb(const struct sk_buff * skb) is_icmp_err_skb() argument
5512 struct sk_buff *skb, *skb_next = NULL; sock_dequeue_err_skb() local
5551 skb_clone_sk(struct sk_buff * skb) skb_clone_sk() argument
5572 __skb_complete_tx_timestamp(struct sk_buff * skb,struct sock * sk,int tstype,bool opt_stats) __skb_complete_tx_timestamp() argument
5628 skb_complete_tx_timestamp(struct sk_buff * skb,struct skb_shared_hwtstamps * hwtstamps) skb_complete_tx_timestamp() argument
5651 skb_tstamp_tx_report_so_timestamping(struct sk_buff * skb,struct skb_shared_hwtstamps * hwtstamps,int tstype) skb_tstamp_tx_report_so_timestamping() argument
5670 skb_tstamp_tx_report_bpf_timestamping(struct sk_buff * skb,struct skb_shared_hwtstamps * hwtstamps,struct sock * sk,int tstype) skb_tstamp_tx_report_bpf_timestamping() argument
5704 struct sk_buff *skb; __skb_tstamp_tx() local
5772 skb_complete_wifi_ack(struct sk_buff * skb,bool acked) skb_complete_wifi_ack() argument
5811 skb_partial_csum_set(struct sk_buff * skb,u16 start,u16 off) skb_partial_csum_set() argument
5829 skb_maybe_pull_tail(struct sk_buff * skb,unsigned int len,unsigned int max) skb_maybe_pull_tail() argument
5852 skb_checksum_setup_ip(struct sk_buff * skb,typeof(IPPROTO_IP) proto,unsigned int off) skb_checksum_setup_ip() argument
5886 skb_checksum_setup_ipv4(struct sk_buff * skb,bool recalculate) skb_checksum_setup_ipv4() argument
5931 OPT_HDR(type,skb,off) global() argument
5934 skb_checksum_setup_ipv6(struct sk_buff * skb,bool recalculate) skb_checksum_setup_ipv6() argument
6039 skb_checksum_setup(struct sk_buff * skb,bool recalculate) skb_checksum_setup() argument
6074 skb_checksum_maybe_trim(struct sk_buff * skb,unsigned int transport_len) skb_checksum_maybe_trim() argument
6114 skb_checksum_trimmed(struct sk_buff * skb,unsigned int transport_len,__sum16 (* skb_chkf)(struct sk_buff * skb)) skb_checksum_trimmed() argument
6116 skb_checksum_trimmed(struct sk_buff * skb,unsigned int transport_len,__sum16 (* skb_chkf)(struct sk_buff * skb)) skb_checksum_trimmed() argument
6147 __skb_warn_lro_forwarding(const struct sk_buff * skb) __skb_warn_lro_forwarding() argument
6154 kfree_skb_partial(struct sk_buff * skb,bool head_stolen) kfree_skb_partial() argument
6278 skb_scrub_packet(struct sk_buff * skb,bool xnet) skb_scrub_packet() argument
6302 skb_reorder_vlan_header(struct sk_buff * skb) skb_reorder_vlan_header() argument
6328 skb_vlan_untag(struct sk_buff * skb) skb_vlan_untag() argument
6369 skb_ensure_writable(struct sk_buff * skb,unsigned int write_len) skb_ensure_writable() argument
6381 skb_ensure_writable_head_tail(struct sk_buff * skb,struct net_device * dev) skb_ensure_writable_head_tail() argument
6409 __skb_vlan_pop(struct sk_buff * skb,u16 * vlan_tci) __skb_vlan_pop() argument
6442 skb_vlan_pop(struct sk_buff * skb) skb_vlan_pop() argument
6475 skb_vlan_push(struct sk_buff * skb,__be16 vlan_proto,u16 vlan_tci) skb_vlan_push() argument
6514 skb_eth_pop(struct sk_buff * skb) skb_eth_pop() argument
6541 skb_eth_push(struct sk_buff * skb,const unsigned char * dst,const unsigned char * src) skb_eth_push() argument
6570 skb_mod_eth_type(struct sk_buff * skb,struct ethhdr * hdr,__be16 ethertype) skb_mod_eth_type() argument
6597 skb_mpls_push(struct sk_buff * skb,__be32 mpls_lse,__be16 mpls_proto,int mac_len,bool ethernet) skb_mpls_push() argument
6650 skb_mpls_pop(struct sk_buff * skb,__be16 next_proto,int mac_len,bool ethernet) skb_mpls_pop() argument
6693 skb_mpls_update_lse(struct sk_buff * skb,__be32 mpls_lse) skb_mpls_update_lse() argument
6725 skb_mpls_dec_ttl(struct sk_buff * skb) skb_mpls_dec_ttl() argument
6766 struct sk_buff *skb; alloc_skb_with_frags() local
6815 pskb_carve_inside_header(struct sk_buff * skb,const u32 off,const int headlen,gfp_t gfp_mask) pskb_carve_inside_header() argument
6936 pskb_carve_inside_nonlinear(struct sk_buff * skb,const u32 off,int pos,gfp_t gfp_mask) pskb_carve_inside_nonlinear() argument
7020 pskb_carve(struct sk_buff * skb,const u32 len,gfp_t gfp) pskb_carve() argument
7033 pskb_extract(struct sk_buff * skb,int off,int to_copy,gfp_t gfp) pskb_extract() argument
7062 skb_condense(struct sk_buff * skb) skb_condense() argument
7156 __skb_ext_set(struct sk_buff * skb,enum skb_ext_id id,struct skb_ext * ext) __skb_ext_set() argument
7185 skb_ext_add(struct sk_buff * skb,enum skb_ext_id id) skb_ext_add() argument
7238 __skb_ext_del(struct sk_buff * skb,enum skb_ext_id id) __skb_ext_del() argument
7283 kfree_skb_napi_cache(struct sk_buff * skb) kfree_skb_napi_cache() argument
7306 skb_attempt_defer_free(struct sk_buff * skb) skb_attempt_defer_free() argument
7353 skb_splice_csum_page(struct sk_buff * skb,struct page * page,size_t offset,size_t len) skb_splice_csum_page() argument
7379 skb_splice_from_iter(struct sk_buff * skb,struct iov_iter * iter,ssize_t maxsize) skb_splice_from_iter() argument
7497 __vlan_get_protocol_offset(const struct sk_buff * skb,__be16 type,int mac_offset) __vlan_get_protocol_offset() 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/net/xfrm/
H A Dxfrm_output.c27 static int xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb);
28 static int xfrm_inner_extract_output(struct xfrm_state *x, struct sk_buff *skb);
30 static int xfrm_skb_check_space(struct sk_buff *skb) in xfrm_skb_check_space() argument
32 struct dst_entry *dst = skb_dst(skb); in xfrm_skb_check_space()
34 - skb_headroom(skb); in xfrm_skb_check_space()
35 int ntail = dst->dev->needed_tailroom - skb_tailroom(skb); in xfrm_skb_check_space()
44 return pskb_expand_head(skb, nhead, ntail, GFP_ATOMIC); in xfrm_skb_check_space()
51 static struct dst_entry *skb_dst_pop(struct sk_buff *skb) in skb_dst_pop() argument
53 struct dst_entry *child = dst_clone(xfrm_dst_child(skb_dst(skb))); in skb_dst_pop()
55 skb_dst_drop(skb); in skb_dst_pop()
64 xfrm4_transport_output(struct xfrm_state * x,struct sk_buff * skb) xfrm4_transport_output() argument
83 mip6_rthdr_offset(struct sk_buff * skb,u8 ** nexthdr,int type) mip6_rthdr_offset() argument
143 xfrm6_hdr_offset(struct xfrm_state * x,struct sk_buff * skb,u8 ** prevhdr) xfrm6_hdr_offset() argument
164 xfrm6_transport_output(struct xfrm_state * x,struct sk_buff * skb) xfrm6_transport_output() argument
197 xfrm6_ro_output(struct xfrm_state * x,struct sk_buff * skb) xfrm6_ro_output() argument
227 xfrm4_beet_encap_add(struct xfrm_state * x,struct sk_buff * skb) xfrm4_beet_encap_add() argument
276 xfrm4_tunnel_encap_add(struct xfrm_state * x,struct sk_buff * skb) xfrm4_tunnel_encap_add() argument
324 xfrm6_tunnel_encap_add(struct xfrm_state * x,struct sk_buff * skb) xfrm6_tunnel_encap_add() argument
361 xfrm6_beet_encap_add(struct xfrm_state * x,struct sk_buff * skb) xfrm6_beet_encap_add() argument
412 xfrm4_prepare_output(struct xfrm_state * x,struct sk_buff * skb) xfrm4_prepare_output() argument
434 xfrm6_prepare_output(struct xfrm_state * x,struct sk_buff * skb) xfrm6_prepare_output() argument
460 xfrm_outer_mode_output(struct xfrm_state * x,struct sk_buff * skb) xfrm_outer_mode_output() argument
492 pktgen_xfrm_outer_mode_output(struct xfrm_state * x,struct sk_buff * skb) pktgen_xfrm_outer_mode_output() argument
499 xfrm_output_one(struct sk_buff * skb,int err) xfrm_output_one() argument
593 xfrm_output_resume(struct sock * sk,struct sk_buff * skb,int err) xfrm_output_resume() argument
623 xfrm_dev_direct_output(struct sock * sk,struct xfrm_state * x,struct sk_buff * skb) xfrm_dev_direct_output() argument
656 xfrm_output2(struct net * net,struct sock * sk,struct sk_buff * skb) xfrm_output2() argument
661 xfrm_output_gso(struct net * net,struct sock * sk,struct sk_buff * skb) xfrm_output_gso() argument
699 xfrm_get_inner_ipproto(struct sk_buff * skb,struct xfrm_state * x) xfrm_get_inner_ipproto() argument
750 xfrm_output(struct sock * sk,struct sk_buff * skb) xfrm_output() argument
841 xfrm4_tunnel_check_size(struct sk_buff * skb) xfrm4_tunnel_check_size() argument
869 xfrm4_extract_output(struct xfrm_state * x,struct sk_buff * skb) xfrm4_extract_output() argument
890 xfrm6_tunnel_check_size(struct sk_buff * skb) xfrm6_tunnel_check_size() argument
923 xfrm6_extract_output(struct xfrm_state * x,struct sk_buff * skb) xfrm6_extract_output() argument
942 xfrm_inner_extract_output(struct xfrm_state * x,struct sk_buff * skb) xfrm_inner_extract_output() argument
954 xfrm_local_error(struct sk_buff * skb,int mtu) xfrm_local_error() argument
[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/devlink/
H A Dnetlink_gen.h24 int devlink_nl_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
27 struct sk_buff *skb, struct genl_info *info);
29 struct sk_buff *skb,
32 struct sk_buff *skb, struct genl_info *info);
34 struct sk_buff *skb,
37 devlink_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
41 struct sk_buff *skb, struct genl_info *info);
44 struct sk_buff *skb,
47 int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info);
48 int devlink_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
[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.c73 #define IS_IP(skb) \ argument
74 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
76 #define IS_IPV6(skb) \ argument
77 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6))
79 #define IS_ARP(skb) \ argument
80 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP))
82 static inline __be16 vlan_proto(const struct sk_buff *skb) in vlan_proto() argument
84 if (skb_vlan_tag_present(skb)) in vlan_proto()
85 return skb->protocol; in vlan_proto()
86 else if (skb->protocol == htons(ETH_P_8021Q)) in vlan_proto()
[all …]
/linux/net/ipv6/
H A Dip6_input.c49 static void tcp_v6_early_demux(struct sk_buff *skb) in tcp_v6_early_demux() argument
51 struct net *net = dev_net_rcu(skb->dev); in tcp_v6_early_demux()
56 if (skb->pkt_type != PACKET_HOST) in tcp_v6_early_demux()
59 if (!pskb_may_pull(skb, skb_transport_offset(skb) + in tcp_v6_early_demux()
63 hdr = ipv6_hdr(skb); in tcp_v6_early_demux()
64 th = tcp_hdr(skb); in tcp_v6_early_demux()
72 inet6_iif(skb), inet6_sdif(skb)); in tcp_v6_early_demux()
74 skb->sk = sk; in tcp_v6_early_demux()
75 skb->destructor = sock_edemux; in tcp_v6_early_demux()
82 sk->sk_rx_dst_ifindex == skb->skb_iif) in tcp_v6_early_demux()
[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/net/openvswitch/
H A Dactions.c91 static struct deferred_action *add_deferred_actions(struct sk_buff *skb, in add_deferred_actions() argument
101 da->skb = skb; in add_deferred_actions()
120 static int clone_execute(struct datapath *dp, struct sk_buff *skb,
126 static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,
130 static int push_mpls(struct sk_buff *skb, struct sw_flow_key *key, in push_mpls() argument
135 err = skb_mpls_push(skb, mpls_lse, mpls_ethertype, mac_len, !!mac_len); in push_mpls()
146 static int pop_mpls(struct sk_buff *skb, struct sw_flow_key *key, in pop_mpls() argument
151 err = skb_mpls_pop(skb, ethertype, skb->mac_len, in pop_mpls()
163 static int set_mpls(struct sk_buff *skb, struct sw_flow_key *flow_key, in set_mpls() argument
170 if (!pskb_may_pull(skb, skb_network_offset(skb) + MPLS_HLEN)) in set_mpls()
[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/net/ipv4/
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 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()
36 /* setup inner skb. */ in gre_gso_segment()
37 skb->encapsulation = 0; in gre_gso_segment()
38 SKB_GSO_CB(skb)->encap_level = 0; in gre_gso_segment()
[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()
[all …]
/linux/net/sched/
H A Dsch_frag.c19 int (*xmit)(struct sk_buff *skb);
27 static int sch_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in sch_frag_xmit()
32 if (skb_cow_head(skb, data->l2_len) < 0) { in sch_frag_xmit()
33 kfree_skb(skb); in sch_frag_xmit()
37 __skb_dst_copy(skb, data->dst); in sch_frag_xmit()
38 *qdisc_skb_cb(skb) = data->cb; in sch_frag_xmit()
39 skb->inner_protocol = data->inner_protocol; in sch_frag_xmit()
41 __vlan_hwaccel_put_tag(skb, data->vlan_proto, in sch_frag_xmit()
44 __vlan_hwaccel_clear_tag(skb); in sch_frag_xmit()
47 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/
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 …]
/linux/net/smc/
H A Dsmc_stats.c45 static int smc_nl_fill_stats_rmb_data(struct sk_buff *skb, in smc_nl_fill_stats_rmb_data() argument
57 attrs = nla_nest_start(skb, type); in smc_nl_fill_stats_rmb_data()
60 if (nla_put_u64_64bit(skb, SMC_NLA_STATS_RMB_REUSE_CNT, in smc_nl_fill_stats_rmb_data()
64 if (nla_put_u64_64bit(skb, SMC_NLA_STATS_RMB_SIZE_SM_PEER_CNT, in smc_nl_fill_stats_rmb_data()
68 if (nla_put_u64_64bit(skb, SMC_NLA_STATS_RMB_SIZE_SM_CNT, in smc_nl_fill_stats_rmb_data()
72 if (nla_put_u64_64bit(skb, SMC_NLA_STATS_RMB_FULL_PEER_CNT, in smc_nl_fill_stats_rmb_data()
76 if (nla_put_u64_64bit(skb, SMC_NLA_STATS_RMB_FULL_CNT, in smc_nl_fill_stats_rmb_data()
80 if (nla_put_u64_64bit(skb, SMC_NLA_STATS_RMB_ALLOC_CNT, in smc_nl_fill_stats_rmb_data()
84 if (nla_put_u64_64bit(skb, SMC_NLA_STATS_RMB_DGRADE_CNT, in smc_nl_fill_stats_rmb_data()
89 nla_nest_end(skb, attrs); in smc_nl_fill_stats_rmb_data()
[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 …]
/linux/drivers/net/wireguard/
H A Dreceive.c26 #define SKB_TYPE_LE32(skb) (((struct message_header *)(skb)->data)->type) argument
28 static size_t validate_header_len(struct sk_buff *skb) in validate_header_len() argument
30 if (unlikely(skb->len < sizeof(struct message_header))) in validate_header_len()
32 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_DATA) && in validate_header_len()
33 skb->len >= MESSAGE_MINIMUM_LENGTH) in validate_header_len()
35 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_HANDSHAKE_INITIATION) && in validate_header_len()
36 skb->len == sizeof(struct message_handshake_initiation)) in validate_header_len()
38 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_HANDSHAKE_RESPONSE) && in validate_header_len()
39 skb->len == sizeof(struct message_handshake_response)) in validate_header_len()
41 if (SKB_TYPE_LE32(skb) == cpu_to_le32(MESSAGE_HANDSHAKE_COOKIE) && in validate_header_len()
[all …]
/linux/drivers/nfc/st21nfca/
H A Ddep.c117 struct sk_buff *skb; in st21nfca_tx_work() local
120 skb = info->dep_info.tx_pending; in st21nfca_tx_work()
125 ST21NFCA_WR_XCHG_DATA, skb->data, skb->len, in st21nfca_tx_work()
128 kfree_skb(skb); in st21nfca_tx_work()
132 struct sk_buff *skb) in st21nfca_im_send_pdu() argument
134 info->dep_info.tx_pending = skb; in st21nfca_im_send_pdu()
142 struct sk_buff *skb; in st21nfca_tm_send_atr_res() local
148 skb = alloc_skb(atr_req->length + 1, GFP_KERNEL); in st21nfca_tm_send_atr_res()
149 if (!skb) in st21nfca_tm_send_atr_res()
152 skb_put(skb, sizeof(struct st21nfca_atr_res)); in st21nfca_tm_send_atr_res()
[all …]
/linux/net/nsh/
H A Dnsh.c15 int nsh_push(struct sk_buff *skb, const struct nshhdr *pushed_nh) in nsh_push() argument
21 if (skb->mac_len) { in nsh_push()
24 next_proto = tun_p_from_eth_p(skb->protocol); in nsh_push()
30 if (skb_cow_head(skb, length) < 0) in nsh_push()
33 skb_push(skb, length); in nsh_push()
34 nh = (struct nshhdr *)(skb->data); in nsh_push()
37 skb_postpush_rcsum(skb, nh, length); in nsh_push()
39 skb->protocol = htons(ETH_P_NSH); in nsh_push()
40 skb_reset_mac_header(skb); in nsh_push()
41 skb_reset_network_header(skb); in nsh_push()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dccm_mbox.c13 * form a batch. Threads come in with CMSG formed in an skb, then
14 * enqueue that skb onto the request queue. If threads skb is first
20 * (response is copied into the same skb as the request, overwriting
62 nfp_ccm_mbox_msg_init(struct sk_buff *skb, unsigned int exp_reply, int max_len) in nfp_ccm_mbox_msg_init() argument
64 struct nfp_ccm_mbox_cmsg_cb *cb = (void *)skb->cb; in nfp_ccm_mbox_msg_init()
73 static int nfp_ccm_mbox_maxlen(const struct sk_buff *skb) in nfp_ccm_mbox_maxlen() argument
75 struct nfp_ccm_mbox_cmsg_cb *cb = (void *)skb->cb; in nfp_ccm_mbox_maxlen()
80 static bool nfp_ccm_mbox_done(struct sk_buff *skb) in nfp_ccm_mbox_done() argument
82 struct nfp_ccm_mbox_cmsg_cb *cb = (void *)skb->cb; in nfp_ccm_mbox_done()
87 static bool nfp_ccm_mbox_in_progress(struct sk_buff *skb) in nfp_ccm_mbox_in_progress() argument
[all …]
/linux/include/net/
H A Dgso.h8 /* Keeps track of mac header offset relative to skb->head.
10 * For non-tunnel skb it points to skb_mac_header() and for
11 * tunnel skb it points to outer mac header.
24 #define SKB_GSO_CB(skb) ((struct skb_gso_cb *)((skb)->cb + SKB_GSO_CB_OFFSET)) argument
32 static inline int gso_pskb_expand_head(struct sk_buff *skb, int extra) in gso_pskb_expand_head() argument
37 headroom = skb_headroom(skb); in gso_pskb_expand_head()
38 ret = pskb_expand_head(skb, extra, 0, GFP_ATOMIC); in gso_pskb_expand_head()
42 new_headroom = skb_headroom(skb); in gso_pskb_expand_head()
43 SKB_GSO_CB(skb)->mac_offset += (new_headroom - headroom); in gso_pskb_expand_head()
47 static inline void gso_reset_checksum(struct sk_buff *skb, __wsum res) in gso_reset_checksum() argument
[all …]

12345678910>>...106