Home
last modified time | relevance | path

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

12345678910>>...110

/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);
103 static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol, in xfrm_rcv_cb() argument
114 ret = afinfo->callback(skb, protocol, err); in xfrm_rcv_cb()
120 struct sec_path *secpath_set(struct sk_buff *skb) in secpath_set() argument
122 struct sec_path *sp, *tmp = skb_ext_find(skb, SKB_EXT_SEC_PATH); in secpath_set()
124 sp = skb_ext_add(skb, SKB_EXT_SEC_PATH); in secpath_set()
143 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument
160 if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr))) in xfrm_parse_spi()
162 *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2))); in xfrm_parse_spi()
169 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()
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()
124 segs = NAPI_GRO_CB(skb)->count; in skb_gro_receive()
151 new_truesize = SKB_TRUESIZE(skb_end_offset(skb)); in skb_gro_receive()
91 skb_gro_receive(struct sk_buff * p,struct sk_buff * skb) skb_gro_receive() argument
226 skb_gro_receive_list(struct sk_buff * p,struct sk_buff * skb) skb_gro_receive_list() argument
253 gro_complete(struct gro_node * gro,struct sk_buff * skb) gro_complete() argument
292 struct sk_buff *skb, *p; __gro_flush_chain() local
324 gro_list_prepare_tc_ext(const struct sk_buff * skb,const struct sk_buff * p,unsigned long diffs) gro_list_prepare_tc_ext() argument
343 gro_list_prepare(const struct list_head * head,const struct sk_buff * skb) gro_list_prepare() argument
385 skb_gro_reset_offset(struct sk_buff * skb,u32 nhoff) skb_gro_reset_offset() argument
412 gro_pull_from_frag0(struct sk_buff * skb,int grow) gro_pull_from_frag0() argument
433 gro_try_pull_from_frag0(struct sk_buff * skb) gro_try_pull_from_frag0() argument
461 dev_gro_receive(struct gro_node * gro,struct sk_buff * skb) dev_gro_receive() argument
596 gro_skb_finish(struct gro_node * gro,struct sk_buff * skb,gro_result_t ret) gro_skb_finish() argument
622 gro_receive_skb(struct gro_node * gro,struct sk_buff * skb) gro_receive_skb() argument
638 napi_reuse_skb(struct napi_struct * napi,struct sk_buff * skb) napi_reuse_skb() argument
670 struct sk_buff *skb = napi->skb; napi_get_frags() local
684 napi_frags_finish(struct napi_struct * napi,struct sk_buff * skb,gro_result_t ret) napi_frags_finish() argument
717 struct sk_buff *skb = napi->skb; napi_frags_skb() local
758 struct sk_buff *skb = napi_frags_skb(napi); napi_gro_frags() local
772 __skb_gro_checksum_complete(struct sk_buff * skb) __skb_gro_checksum_complete() argument
811 struct sk_buff *skb, *n; gro_cleanup() local
[all...]
H A Dskbuff.c19 * Ray VanTassle : Fixed --skb->lock in free
86 #include <trace/events/skb.h>
195 * @skb: buffer
205 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr, in skb_panic()
209 msg, addr, skb->len, sz, skb->head, skb->data, in skb_panic()
210 (unsigned long)skb->tail, (unsigned long)skb->end, in skb_panic()
211 skb in skb_panic()
204 skb_panic(struct sk_buff * skb,unsigned int sz,void * addr,const char msg[]) skb_panic() argument
214 skb_over_panic(struct sk_buff * skb,unsigned int sz,void * addr) skb_over_panic() argument
219 skb_under_panic(struct sk_buff * skb,unsigned int sz,void * addr) skb_under_panic() argument
279 struct sk_buff *skb; napi_skb_cache_get() local
362 __finalize_skb_around(struct sk_buff * skb,void * data,unsigned int size) __finalize_skb_around() argument
411 struct sk_buff *skb; slab_build_skb() local
428 __build_skb_around(struct sk_buff * skb,void * data,unsigned int frag_size) __build_skb_around() argument
464 struct sk_buff *skb; __build_skb() local
482 struct sk_buff *skb = __build_skb(data, frag_size); build_skb() local
498 build_skb_around(struct sk_buff * skb,void * data,unsigned int frag_size) build_skb_around() argument
526 struct sk_buff *skb; __napi_build_skb() local
550 struct sk_buff *skb = __napi_build_skb(data, frag_size); napi_build_skb() local
644 struct sk_buff *skb; __alloc_skb() local
721 struct sk_buff *skb; __netdev_alloc_skb() local
798 struct sk_buff *skb; napi_alloc_skb() local
852 skb_add_rx_frag_netmem(struct sk_buff * skb,int i,netmem_ref netmem,int off,int size,unsigned int truesize) skb_add_rx_frag_netmem() argument
864 skb_coalesce_rx_frag(struct sk_buff * skb,int i,int size,unsigned int truesize) skb_coalesce_rx_frag() argument
884 skb_drop_fraglist(struct sk_buff * skb) skb_drop_fraglist() argument
889 skb_clone_fraglist(struct sk_buff * skb) skb_clone_fraglist() argument
902 struct sk_buff *skb = *pskb, *nskb; skb_pp_cow_data() local
1004 skb_pp_recycle(struct sk_buff * skb,void * data) skb_pp_recycle() argument
1021 skb_pp_frag_ref(struct sk_buff * skb) skb_pp_frag_ref() argument
1050 skb_free_head(struct sk_buff * skb) skb_free_head() argument
1063 skb_release_data(struct sk_buff * skb,enum skb_drop_reason reason) skb_release_data() argument
1103 kfree_skbmem(struct sk_buff * skb) kfree_skbmem() argument
1133 skb_release_head_state(struct sk_buff * skb) skb_release_head_state() argument
1147 skb_release_all(struct sk_buff * skb,enum skb_drop_reason reason) skb_release_all() argument
1163 __kfree_skb(struct sk_buff * skb) __kfree_skb() argument
1171 __sk_skb_reason_drop(struct sock * sk,struct sk_buff * skb,enum skb_drop_reason reason) __sk_skb_reason_drop() argument
1200 sk_skb_reason_drop(struct sock * sk,struct sk_buff * skb,enum skb_drop_reason reason) sk_skb_reason_drop() argument
1214 kfree_skb_add_bulk(struct sk_buff * skb,struct skb_free_array * sa,enum skb_drop_reason reason) kfree_skb_add_bulk() argument
1263 skb_dump(const char * level,const struct sk_buff * skb,bool full_pkt) skb_dump() argument
1373 skb_tx_error(struct sk_buff * skb) skb_tx_error() argument
1391 consume_skb(struct sk_buff * skb) consume_skb() argument
1409 __consume_stateless_skb(struct sk_buff * skb) __consume_stateless_skb() argument
1416 napi_skb_cache_put(struct sk_buff * skb) napi_skb_cache_put() argument
1439 __napi_kfree_skb(struct sk_buff * skb,enum skb_drop_reason reason) __napi_kfree_skb() argument
1445 napi_skb_free_stolen_head(struct sk_buff * skb) napi_skb_free_stolen_head() argument
1457 napi_consume_skb(struct sk_buff * skb,int budget) napi_consume_skb() argument
1540 __skb_clone(struct sk_buff * n,struct sk_buff * skb) __skb_clone() argument
1662 struct sk_buff *skb; msg_zerocopy_alloc() local
1747 skb_zerocopy_notify_extend(struct sk_buff * skb,u32 lo,u16 len) skb_zerocopy_notify_extend() argument
1769 struct sk_buff *tail, *skb = skb_from_uarg(uarg); __msg_zerocopy_callback() local
1817 msg_zerocopy_complete(struct sk_buff * skb,struct ubuf_info * uarg,bool success) msg_zerocopy_complete() argument
1845 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
1885 __skb_zcopy_downgrade_managed(struct sk_buff * skb) __skb_zcopy_downgrade_managed() argument
1930 skb_copy_ubufs(struct sk_buff * skb,gfp_t gfp_mask) skb_copy_ubufs() argument
2030 skb_clone(struct sk_buff * skb,gfp_t gfp_mask) skb_clone() argument
2060 skb_headers_offset_update(struct sk_buff * skb,int off) skb_headers_offset_update() argument
2086 skb_alloc_rx_flag(const struct sk_buff * skb) skb_alloc_rx_flag() argument
2110 skb_copy(const struct sk_buff * skb,gfp_t gfp_mask) skb_copy() argument
2158 __pskb_copy_fclone(struct sk_buff * skb,int headroom,gfp_t gfp_mask,bool fclone) __pskb_copy_fclone() argument
2222 pskb_expand_head(struct sk_buff * skb,int nhead,int ntail,gfp_t gfp_mask) pskb_expand_head() argument
2311 skb_realloc_headroom(struct sk_buff * skb,unsigned int headroom) skb_realloc_headroom() argument
2331 __skb_unclone_keeptruesize(struct sk_buff * skb,gfp_t pri) __skb_unclone_keeptruesize() argument
2389 skb_expand_head(struct sk_buff * skb,unsigned int headroom) skb_expand_head() argument
2446 skb_copy_expand(const struct sk_buff * skb,int newheadroom,int newtailroom,gfp_t gfp_mask) skb_copy_expand() argument
2508 __skb_pad(struct sk_buff * skb,int pad,bool free_on_error) __skb_pad() argument
2556 pskb_put(struct sk_buff * skb,struct sk_buff * tail,int len) pskb_put() argument
2575 skb_put(struct sk_buff * skb,unsigned int len) skb_put() argument
2596 skb_push(struct sk_buff * skb,unsigned int len) skb_push() argument
2616 skb_pull(struct sk_buff * skb,unsigned int len) skb_pull() argument
2633 skb_pull_data(struct sk_buff * skb,size_t len) skb_pull_data() argument
2655 skb_trim(struct sk_buff * skb,unsigned int len) skb_trim() argument
2665 ___pskb_trim(struct sk_buff * skb,unsigned int len) ___pskb_trim() argument
2752 pskb_trim_rcsum_slow(struct sk_buff * skb,unsigned int len) pskb_trim_rcsum_slow() argument
2796 __pskb_pull_tail(struct sk_buff * skb,int delta) __pskb_pull_tail() argument
2940 skb_copy_bits(const struct sk_buff * skb,int offset,void * to,int len) skb_copy_bits() argument
3124 __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
3182 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
3230 __skb_send_sock(struct sock * sk,struct sk_buff * skb,int offset,int len,sendmsg_func sendmsg,int flags) __skb_send_sock() argument
3335 skb_send_sock_locked(struct sock * sk,struct sk_buff * skb,int offset,int len) skb_send_sock_locked() argument
3342 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
3350 skb_send_sock(struct sock * sk,struct sk_buff * skb,int offset,int len) skb_send_sock() argument
3367 skb_store_bits(struct sk_buff * skb,int offset,const void * from,int len) skb_store_bits() argument
3448 skb_checksum(const struct sk_buff * skb,int offset,int len,__wsum csum) skb_checksum() argument
3530 skb_copy_and_csum_bits(const struct sk_buff * skb,int offset,u8 * to,int len) skb_copy_and_csum_bits() argument
3619 skb_crc32c(const struct sk_buff * skb,int offset,int len,u32 crc) skb_crc32c() argument
3690 __skb_checksum_complete_head(struct sk_buff * skb,int len) __skb_checksum_complete_head() argument
3716 __skb_checksum_complete(struct sk_buff * skb) __skb_checksum_complete() argument
3854 skb_copy_and_csum_dev(const struct sk_buff * skb,u8 * to) skb_copy_and_csum_dev() argument
3966 struct sk_buff *skb = rb_entry(p, struct sk_buff, rbnode); skb_rbtree_purge() local
3978 struct sk_buff *skb, *next; skb_errqueue_purge() local
4049 skb_unlink(struct sk_buff * skb,struct sk_buff_head * list) skb_unlink() argument
4079 skb_split_inside_header(struct sk_buff * skb,struct sk_buff * skb1,const u32 len,const int pos) skb_split_inside_header() argument
4101 skb_split_no_header(struct sk_buff * skb,struct sk_buff * skb1,const u32 len,int pos) skb_split_no_header() argument
4150 skb_split(struct sk_buff * skb,struct sk_buff * skb1,const u32 len) skb_split() argument
4170 skb_prepare_for_shift(struct sk_buff * skb) skb_prepare_for_shift() argument
4193 skb_shift(struct sk_buff * tgt,struct sk_buff * skb,int shiftlen) skb_shift() argument
4320 skb_prepare_seq_read(struct sk_buff * skb,unsigned int from,unsigned int to,struct skb_seq_state * st) skb_prepare_seq_read() argument
4519 skb_find_text(struct sk_buff * skb,unsigned int from,unsigned int to,struct ts_config * config) skb_find_text() argument
4538 skb_append_pagefrags(struct sk_buff * skb,struct page * page,int offset,size_t size,size_t max_frags) skb_append_pagefrags() argument
4568 skb_pull_rcsum(struct sk_buff * skb,unsigned int len) skb_pull_rcsum() argument
4591 skb_segment_list(struct sk_buff * skb,netdev_features_t features,unsigned int offset) skb_segment_list() argument
5133 __skb_to_sgvec(struct sk_buff * skb,struct scatterlist * sg,int offset,int len,unsigned int recursion_level) __skb_to_sgvec() argument
5216 skb_to_sgvec(struct sk_buff * skb,struct scatterlist * sg,int offset,int len) skb_to_sgvec() argument
5248 skb_to_sgvec_nomark(struct sk_buff * skb,struct scatterlist * sg,int offset,int len) skb_to_sgvec_nomark() argument
5274 skb_cow_data(struct sk_buff * skb,int tailbits,struct sk_buff ** trailer) skb_cow_data() argument
5367 sock_rmem_free(struct sk_buff * skb) sock_rmem_free() argument
5374 skb_set_err_queue(struct sk_buff * skb) skb_set_err_queue() argument
5386 sock_queue_err_skb(struct sock * sk,struct sk_buff * skb) sock_queue_err_skb() argument
5408 is_icmp_err_skb(const struct sk_buff * skb) is_icmp_err_skb() argument
5417 struct sk_buff *skb, *skb_next = NULL; sock_dequeue_err_skb() local
5456 skb_clone_sk(struct sk_buff * skb) skb_clone_sk() argument
5477 __skb_complete_tx_timestamp(struct sk_buff * skb,struct sock * sk,int tstype,bool opt_stats) __skb_complete_tx_timestamp() argument
5520 skb_complete_tx_timestamp(struct sk_buff * skb,struct skb_shared_hwtstamps * hwtstamps) skb_complete_tx_timestamp() argument
5543 skb_tstamp_tx_report_so_timestamping(struct sk_buff * skb,struct skb_shared_hwtstamps * hwtstamps,int tstype) skb_tstamp_tx_report_so_timestamping() argument
5562 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
5596 struct sk_buff *skb; __skb_tstamp_tx() local
5664 skb_complete_wifi_ack(struct sk_buff * skb,bool acked) skb_complete_wifi_ack() argument
5703 skb_partial_csum_set(struct sk_buff * skb,u16 start,u16 off) skb_partial_csum_set() argument
5721 skb_maybe_pull_tail(struct sk_buff * skb,unsigned int len,unsigned int max) skb_maybe_pull_tail() argument
5744 skb_checksum_setup_ip(struct sk_buff * skb,typeof(IPPROTO_IP) proto,unsigned int off) skb_checksum_setup_ip() argument
5778 skb_checksum_setup_ipv4(struct sk_buff * skb,bool recalculate) skb_checksum_setup_ipv4() argument
5823 OPT_HDR(type,skb,off) global() argument
5826 skb_checksum_setup_ipv6(struct sk_buff * skb,bool recalculate) skb_checksum_setup_ipv6() argument
5931 skb_checksum_setup(struct sk_buff * skb,bool recalculate) skb_checksum_setup() argument
5966 skb_checksum_maybe_trim(struct sk_buff * skb,unsigned int transport_len) skb_checksum_maybe_trim() argument
6006 skb_checksum_trimmed(struct sk_buff * skb,unsigned int transport_len,__sum16 (* skb_chkf)(struct sk_buff * skb)) skb_checksum_trimmed() argument
6008 skb_checksum_trimmed(struct sk_buff * skb,unsigned int transport_len,__sum16 (* skb_chkf)(struct sk_buff * skb)) skb_checksum_trimmed() argument
6039 __skb_warn_lro_forwarding(const struct sk_buff * skb) __skb_warn_lro_forwarding() argument
6046 kfree_skb_partial(struct sk_buff * skb,bool head_stolen) kfree_skb_partial() argument
6168 skb_scrub_packet(struct sk_buff * skb,bool xnet) skb_scrub_packet() argument
6192 skb_reorder_vlan_header(struct sk_buff * skb) skb_reorder_vlan_header() argument
6218 skb_vlan_untag(struct sk_buff * skb) skb_vlan_untag() argument
6259 skb_ensure_writable(struct sk_buff * skb,unsigned int write_len) skb_ensure_writable() argument
6271 skb_ensure_writable_head_tail(struct sk_buff * skb,struct net_device * dev) skb_ensure_writable_head_tail() argument
6299 __skb_vlan_pop(struct sk_buff * skb,u16 * vlan_tci) __skb_vlan_pop() argument
6332 skb_vlan_pop(struct sk_buff * skb) skb_vlan_pop() argument
6365 skb_vlan_push(struct sk_buff * skb,__be16 vlan_proto,u16 vlan_tci) skb_vlan_push() argument
6404 skb_eth_pop(struct sk_buff * skb) skb_eth_pop() argument
6431 skb_eth_push(struct sk_buff * skb,const unsigned char * dst,const unsigned char * src) skb_eth_push() argument
6460 skb_mod_eth_type(struct sk_buff * skb,struct ethhdr * hdr,__be16 ethertype) skb_mod_eth_type() argument
6487 skb_mpls_push(struct sk_buff * skb,__be32 mpls_lse,__be16 mpls_proto,int mac_len,bool ethernet) skb_mpls_push() argument
6540 skb_mpls_pop(struct sk_buff * skb,__be16 next_proto,int mac_len,bool ethernet) skb_mpls_pop() argument
6583 skb_mpls_update_lse(struct sk_buff * skb,__be32 mpls_lse) skb_mpls_update_lse() argument
6615 skb_mpls_dec_ttl(struct sk_buff * skb) skb_mpls_dec_ttl() argument
6656 struct sk_buff *skb; alloc_skb_with_frags() local
6705 pskb_carve_inside_header(struct sk_buff * skb,const u32 off,const int headlen,gfp_t gfp_mask) pskb_carve_inside_header() argument
6819 pskb_carve_inside_nonlinear(struct sk_buff * skb,const u32 off,int pos,gfp_t gfp_mask) pskb_carve_inside_nonlinear() argument
6896 pskb_carve(struct sk_buff * skb,const u32 len,gfp_t gfp) pskb_carve() argument
6909 pskb_extract(struct sk_buff * skb,int off,int to_copy,gfp_t gfp) pskb_extract() argument
6938 skb_condense(struct sk_buff * skb) skb_condense() argument
7032 __skb_ext_set(struct sk_buff * skb,enum skb_ext_id id,struct skb_ext * ext) __skb_ext_set() argument
7060 skb_ext_add(struct sk_buff * skb,enum skb_ext_id id) skb_ext_add() argument
7113 __skb_ext_del(struct sk_buff * skb,enum skb_ext_id id) __skb_ext_del() argument
7158 kfree_skb_napi_cache(struct sk_buff * skb) kfree_skb_napi_cache() argument
7179 skb_attempt_defer_free(struct sk_buff * skb) skb_attempt_defer_free() argument
7219 skb_splice_csum_page(struct sk_buff * skb,struct page * page,size_t offset,size_t len) skb_splice_csum_page() argument
7245 skb_splice_from_iter(struct sk_buff * skb,struct iov_iter * iter,ssize_t maxsize) skb_splice_from_iter() 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->head, what is the minimal
272 /* return minimum truesize of one skb containing X bytes of data */
310 * skb is out in neigh layer.
[all …]
H A Dif_vlan.h60 static inline struct vlan_ethhdr *vlan_eth_hdr(const struct sk_buff *skb) in vlan_eth_hdr() argument
62 return (struct vlan_ethhdr *)skb_mac_header(skb); in vlan_eth_hdr()
68 static inline struct vlan_ethhdr *skb_vlan_eth_hdr(const struct sk_buff *skb) in skb_vlan_eth_hdr() argument
70 return (struct vlan_ethhdr *)skb->data; in skb_vlan_eth_hdr()
147 * @priority: skb priority
148 * @vlan_qos: vlan priority: (skb->priority << 13) & 0xE000
227 extern bool vlan_do_receive(struct sk_buff **skb);
284 static inline bool vlan_do_receive(struct sk_buff **skb) in vlan_do_receive() argument
344 * @skb: skbuff to tag
349 * Inserts the VLAN tag into @skb as part of the payload at offset mac_len
[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 …]
/linux/net/devlink/
H A Dnetlink_gen.h22 int devlink_nl_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
25 struct sk_buff *skb, struct genl_info *info);
27 struct sk_buff *skb, struct genl_info *info);
29 struct sk_buff *skb,
32 devlink_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
36 struct sk_buff *skb, struct genl_info *info);
38 int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info);
39 int devlink_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
40 int devlink_nl_port_get_doit(struct sk_buff *skb, struct genl_info *info);
41 int devlink_nl_port_get_dumpit(struct sk_buff *skb,
[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/include/net/
H A Dgro.h20 /* Virtual address of skb_shinfo(skb)->frags[0].page + offset. */
36 /* This indicates where we are processing relative to skb->data. */
39 /* This is non-zero if the packet cannot be merged with the new skb. */
71 /* Free the skb? */
100 #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb)
103 static inline int gro_recursion_inc_test(struct sk_buff *skb) argument
105 return ++NAPI_GRO_CB(skb)->recursion_counter == GRO_RECURSION_LIMIT;
111 struct sk_buff *skb)
113 if (unlikely(gro_recursion_inc_test(skb))) { in call_gro_receive()
106 gro_recursion_inc_test(struct sk_buff * skb) gro_recursion_inc_test() argument
114 call_gro_receive(gro_receive_t cb,struct list_head * head,struct sk_buff * skb) call_gro_receive() argument
129 call_gro_receive_sk(gro_receive_sk_t cb,struct sock * sk,struct list_head * head,struct sk_buff * skb) call_gro_receive_sk() argument
139 skb_gro_offset(const struct sk_buff * skb) skb_gro_offset() argument
144 skb_gro_len(const struct sk_buff * skb) skb_gro_len() argument
149 skb_gro_pull(struct sk_buff * skb,unsigned int len) skb_gro_pull() argument
154 skb_gro_header_fast(const struct sk_buff * skb,unsigned int offset) skb_gro_header_fast() argument
160 skb_gro_may_pull(const struct sk_buff * skb,unsigned int hlen) skb_gro_may_pull() argument
166 skb_gro_header_slow(struct sk_buff * skb,unsigned int hlen,unsigned int offset) skb_gro_header_slow() argument
175 skb_gro_header(struct sk_buff * skb,unsigned int hlen,unsigned int offset) skb_gro_header() argument
186 skb_gro_receive_network_offset(const struct sk_buff * skb) skb_gro_receive_network_offset() argument
191 skb_gro_network_header(const struct sk_buff * skb) skb_gro_network_header() argument
199 inet_gro_compute_pseudo(const struct sk_buff * skb,int proto) inet_gro_compute_pseudo() argument
208 skb_gro_postpull_rcsum(struct sk_buff * skb,const void * start,unsigned int len) skb_gro_postpull_rcsum() argument
223 skb_at_gro_remcsum_start(struct sk_buff * skb) skb_at_gro_remcsum_start() argument
228 __skb_gro_checksum_validate_needed(struct sk_buff * skb,bool zero_okay,__sum16 check) __skb_gro_checksum_validate_needed() argument
240 __skb_gro_checksum_validate_complete(struct sk_buff * skb,__wsum psum) __skb_gro_checksum_validate_complete() argument
252 skb_gro_incr_csum_unnecessary(struct sk_buff * skb) skb_gro_incr_csum_unnecessary() argument
266 __skb_gro_checksum_validate(skb,proto,zero_okay,check,compute_pseudo) global() argument
278 skb_gro_checksum_validate(skb,proto,compute_pseudo) global() argument
281 skb_gro_checksum_validate_zero_check(skb,proto,check,compute_pseudo) global() argument
285 skb_gro_checksum_simple_validate(skb) global() argument
288 __skb_gro_checksum_convert_check(struct sk_buff * skb) __skb_gro_checksum_convert_check() argument
294 __skb_gro_checksum_convert(struct sk_buff * skb,__wsum pseudo) __skb_gro_checksum_convert() argument
301 skb_gro_checksum_try_convert(skb,proto,compute_pseudo) global() argument
319 skb_gro_remcsum_process(struct sk_buff * skb,void * ptr,unsigned int off,size_t hdrlen,int start,int offset,struct gro_remcsum * grc,bool nopartial) skb_gro_remcsum_process() argument
351 skb_gro_remcsum_cleanup(struct sk_buff * skb,struct gro_remcsum * grc) skb_gro_remcsum_cleanup() argument
368 skb_gro_flush_final(struct sk_buff * skb,struct sk_buff * pp,int flush) skb_gro_flush_final() argument
373 skb_gro_flush_final_remcsum(struct sk_buff * skb,struct sk_buff * pp,int flush,struct gro_remcsum * grc) skb_gro_flush_final_remcsum() argument
385 skb_gro_flush_final(struct sk_buff * skb,struct sk_buff * pp,int flush) skb_gro_flush_final() argument
389 skb_gro_flush_final_remcsum(struct sk_buff * skb,struct sk_buff * pp,int flush,struct gro_remcsum * grc) skb_gro_flush_final_remcsum() argument
415 indirect_call_gro_receive_inet(cb,f2,f1,head,skb) global() argument
426 udp_gro_udphdr(struct sk_buff * skb) udp_gro_udphdr() argument
438 ip6_gro_compute_pseudo(const struct sk_buff * skb,int proto) ip6_gro_compute_pseudo() argument
546 gro_normal_one(struct gro_node * gro,struct sk_buff * skb,int segs) gro_normal_one() argument
564 inet_get_iif_sdif(const struct sk_buff * skb,int * iif,int * sdif) inet_get_iif_sdif() argument
585 inet6_get_iif_sdif(const struct sk_buff * skb,int * iif,int * sdif) inet6_get_iif_sdif() argument
[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 …]
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/drivers/net/can/dev/
H A Dskb.c41 /* Put the skb on the stack to be looped backed locally lateron
47 int can_put_echo_skb(struct sk_buff *skb, struct net_device *dev, in can_put_echo_skb() argument
60 (skb->protocol != htons(ETH_P_CAN) && in can_put_echo_skb()
61 skb->protocol != htons(ETH_P_CANFD) && in can_put_echo_skb()
62 skb->protocol != htons(ETH_P_CANXL))) { in can_put_echo_skb()
63 kfree_skb(skb); in can_put_echo_skb()
68 skb = can_create_echo_skb(skb); in can_put_echo_skb()
69 if (!skb) in can_put_echo_skb()
73 skb->ip_summed = CHECKSUM_UNNECESSARY; in can_put_echo_skb()
74 skb->dev = dev; in can_put_echo_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
132 tcp_gso_segment(struct sk_buff * skb,netdev_features_t features) tcp_gso_segment() argument
285 tcp_gro_pull_header(struct sk_buff * skb) tcp_gro_pull_header() argument
312 tcp_gro_receive(struct list_head * head,struct sk_buff * skb,struct tcphdr * th) tcp_gro_receive() argument
396 tcp_gro_complete(struct sk_buff * skb) tcp_gro_complete() argument
416 tcp4_check_fraglist_gro(struct list_head * head,struct sk_buff * skb,struct tcphdr * th) tcp4_check_fraglist_gro() argument
447 tcp4_gro_receive(struct list_head * head,struct sk_buff * skb) tcp4_gro_receive() argument
470 tcp4_gro_complete(struct sk_buff * skb,int thoff) tcp4_gro_complete() argument
[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()
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
637 udp4_ufo_fragment(struct sk_buff * skb,netdev_features_t features) udp4_ufo_fragment() argument
700 udp_gro_receive_segment(struct list_head * head,struct sk_buff * skb) udp_gro_receive_segment() argument
784 udp_gro_receive(struct list_head * head,struct sk_buff * skb,struct udphdr * uh,struct sock * sk) udp_gro_receive() argument
854 udp4_gro_lookup_skb(struct sk_buff * skb,__be16 sport,__be16 dport) udp4_gro_lookup_skb() argument
874 udp4_gro_receive(struct list_head * head,struct sk_buff * skb) udp4_gro_receive() argument
907 udp_gro_complete_segment(struct sk_buff * skb) udp_gro_complete_segment() argument
924 udp_gro_complete(struct sk_buff * skb,int nhoff,udp_lookup_t lookup) udp_gro_complete() argument
962 udp4_gro_complete(struct sk_buff * skb,int nhoff) udp4_gro_complete() argument
[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 to its handler for processing in ip6_rcv_finish()
74 skb = l3mdev_ip6_rcv(skb); in ip6_rcv_finish()
[all …]
H A Dip6_offload.c33 #define indirect_call_gro_receive_l4(f2, f1, cb, head, skb) \ argument
35 unlikely(gro_recursion_inc_test(skb)) ? \
36 NAPI_GRO_CB(skb)->flush |= 1, NULL : \
37 INDIRECT_CALL_L4(cb, f2, f1, head, skb); \
40 static int ipv6_gro_pull_exthdrs(struct sk_buff *skb, int off, int proto) in ipv6_gro_pull_exthdrs() argument
56 opth = skb_gro_header(skb, off + sizeof(*opth), off); in ipv6_gro_pull_exthdrs()
62 opth = skb_gro_header(skb, off + len, off); in ipv6_gro_pull_exthdrs()
70 skb_gro_pull(skb, off - skb_gro_receive_network_offset(skb)); in ipv6_gro_pull_exthdrs()
74 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto) in ipv6_gso_pull_exthdrs() argument
90 if (unlikely(!pskb_may_pull(skb, 8))) in ipv6_gso_pull_exthdrs()
[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 …]
/linux/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c28 struct sk_buff *skb, in nf_br_ip_fragment() argument
34 int frag_max_size = BR_INPUT_SKB_CB(skb)->frag_max_size; in nf_br_ip_fragment()
35 u8 tstamp_type = skb->tstamp_type; in nf_br_ip_fragment()
37 ktime_t tstamp = skb->tstamp; in nf_br_ip_fragment()
43 if (skb->ip_summed == CHECKSUM_PARTIAL && in nf_br_ip_fragment()
44 (err = skb_checksum_help(skb))) in nf_br_ip_fragment()
47 iph = ip_hdr(skb); in nf_br_ip_fragment()
55 ll_rs = LL_RESERVED_SPACE(skb->dev); in nf_br_ip_fragment()
56 mtu = skb->dev->mtu; in nf_br_ip_fragment()
58 if (skb_has_frag_list(skb)) { in nf_br_ip_fragment()
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/net/netfilter/
H A Dnf_flow_table_ip.c23 struct sk_buff *skb, unsigned int thoff) in nf_flow_state_check() argument
30 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_state_check()
43 static void nf_flow_nat_ip_tcp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_tcp() argument
48 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_tcp()
49 inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, true); in nf_flow_nat_ip_tcp()
52 static void nf_flow_nat_ip_udp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_udp() argument
57 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_udp()
58 if (udph->check || skb->ip_summed == CHECKSUM_PARTIAL) { in nf_flow_nat_ip_udp()
59 inet_proto_csum_replace4(&udph->check, skb, addr, in nf_flow_nat_ip_udp()
66 static void nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph, in nf_flow_nat_ip_l4proto() argument
[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/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 …]

12345678910>>...110