Home
last modified time | relevance | path

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

12345678910>>...125

/openbmc/linux/include/linux/
H A Dskbuff.h878 void (*destructor)(struct sk_buff *skb);
1093 static inline bool skb_pfmemalloc(const struct sk_buff *skb) in skb_pfmemalloc() argument
1095 return unlikely(skb->pfmemalloc); in skb_pfmemalloc()
1111 static inline struct dst_entry *skb_dst(const struct sk_buff *skb) in skb_dst() argument
1116 WARN_ON((skb->_skb_refdst & SKB_DST_NOREF) && in skb_dst()
1119 return (struct dst_entry *)(skb->_skb_refdst & SKB_DST_PTRMASK); in skb_dst()
1130 static inline void skb_dst_set(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set() argument
1132 skb->slow_gro |= !!dst; in skb_dst_set()
1133 skb->_skb_refdst = (unsigned long)dst; in skb_dst_set()
1146 static inline void skb_dst_set_noref(struct sk_buff *skb, struct dst_entry *dst) in skb_dst_set_noref() argument
[all …]
/openbmc/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.c40 int (*finish)(struct net *net, struct sock *sk, struct sk_buff *skb);
102 static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol, in xfrm_rcv_cb() argument
113 ret = afinfo->callback(skb, protocol, err); in xfrm_rcv_cb()
119 struct sec_path *secpath_set(struct sk_buff *skb) in secpath_set() argument
121 struct sec_path *sp, *tmp = skb_ext_find(skb, SKB_EXT_SEC_PATH); in secpath_set()
123 sp = skb_ext_add(skb, SKB_EXT_SEC_PATH); in secpath_set()
142 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument
159 if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr))) in xfrm_parse_spi()
161 *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2))); in xfrm_parse_spi()
168 if (!pskb_may_pull(skb, hlen)) in xfrm_parse_spi()
[all …]
/openbmc/linux/net/core/
H A Dgro.c96 int skb_gro_receive(struct sk_buff *p, struct sk_buff *skb) in skb_gro_receive() argument
98 struct skb_shared_info *pinfo, *skbinfo = skb_shinfo(skb); in skb_gro_receive()
99 unsigned int offset = skb_gro_offset(skb); in skb_gro_receive()
100 unsigned int headlen = skb_headlen(skb); in skb_gro_receive()
101 unsigned int len = skb_gro_len(skb); in skb_gro_receive()
113 if (p->pp_recycle != skb->pp_recycle) in skb_gro_receive()
117 NAPI_GRO_CB(skb)->flush)) in skb_gro_receive()
121 if (NAPI_GRO_CB(skb)->proto != IPPROTO_TCP || in skb_gro_receive()
128 segs = NAPI_GRO_CB(skb)->count; in skb_gro_receive()
155 new_truesize = SKB_TRUESIZE(skb_end_offset(skb)); in skb_gro_receive()
232 napi_gro_complete(struct napi_struct * napi,struct sk_buff * skb) napi_gro_complete() argument
272 struct sk_buff *skb, *p; __napi_gro_flush_chain() local
303 gro_list_prepare_tc_ext(const struct sk_buff * skb,const struct sk_buff * p,unsigned long diffs) gro_list_prepare_tc_ext() argument
322 gro_list_prepare(const struct list_head * head,const struct sk_buff * skb) gro_list_prepare() argument
366 skb_gro_reset_offset(struct sk_buff * skb,u32 nhoff) skb_gro_reset_offset() argument
386 gro_pull_from_frag0(struct sk_buff * skb,int grow) gro_pull_from_frag0() argument
407 gro_try_pull_from_frag0(struct sk_buff * skb) gro_try_pull_from_frag0() argument
434 dev_gro_receive(struct napi_struct * napi,struct sk_buff * skb) dev_gro_receive() argument
571 napi_skb_finish(struct napi_struct * napi,struct sk_buff * skb,gro_result_t ret) napi_skb_finish() argument
597 napi_gro_receive(struct napi_struct * napi,struct sk_buff * skb) napi_gro_receive() argument
613 napi_reuse_skb(struct napi_struct * napi,struct sk_buff * skb) napi_reuse_skb() argument
644 struct sk_buff *skb = napi->skb; napi_get_frags() local
658 napi_frags_finish(struct napi_struct * napi,struct sk_buff * skb,gro_result_t ret) napi_frags_finish() argument
691 struct sk_buff *skb = napi->skb; napi_frags_skb() local
729 struct sk_buff *skb = napi_frags_skb(napi); napi_gro_frags() local
743 __skb_gro_checksum_complete(struct sk_buff * skb) __skb_gro_checksum_complete() argument
[all...]
H A Dskbuff.c19 * Ray VanTassle : Fixed --skb->lock in free
80 #include <trace/events/skb.h>
175 * @skb: buffer
185 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr, in skb_panic() argument
189 msg, addr, skb->len, sz, skb->head, skb->data, in skb_panic()
190 (unsigned long)skb->tail, (unsigned long)skb->end, in skb_panic()
191 skb in skb_panic()
195 skb_over_panic(struct sk_buff * skb,unsigned int sz,void * addr) skb_over_panic() argument
200 skb_under_panic(struct sk_buff * skb,unsigned int sz,void * addr) skb_under_panic() argument
284 struct sk_buff *skb; napi_get_frags_check() local
327 struct sk_buff *skb; napi_skb_cache_get() local
344 __finalize_skb_around(struct sk_buff * skb,void * data,unsigned int size) __finalize_skb_around() argument
369 __slab_build_skb(struct sk_buff * skb,void * data,unsigned int * size) __slab_build_skb() argument
394 struct sk_buff *skb; slab_build_skb() local
410 __build_skb_around(struct sk_buff * skb,void * data,unsigned int frag_size) __build_skb_around() argument
446 struct sk_buff *skb; __build_skb() local
463 struct sk_buff *skb = __build_skb(data, frag_size); build_skb() local
479 build_skb_around(struct sk_buff * skb,void * data,unsigned int frag_size) build_skb_around() argument
507 struct sk_buff *skb; __napi_build_skb() local
531 struct sk_buff *skb = __napi_build_skb(data, frag_size); napi_build_skb() local
625 struct sk_buff *skb; __alloc_skb() local
702 struct sk_buff *skb; __netdev_alloc_skb() local
776 struct sk_buff *skb; __napi_alloc_skb() local
847 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
857 skb_coalesce_rx_frag(struct sk_buff * skb,int i,int size,unsigned int truesize) skb_coalesce_rx_frag() argument
875 skb_drop_fraglist(struct sk_buff * skb) skb_drop_fraglist() argument
880 skb_clone_fraglist(struct sk_buff * skb) skb_clone_fraglist() argument
933 skb_pp_recycle(struct sk_buff * skb,void * data,bool napi_safe) skb_pp_recycle() argument
948 skb_free_head(struct sk_buff * skb,bool napi_safe) skb_free_head() argument
961 skb_release_data(struct sk_buff * skb,enum skb_drop_reason reason,bool napi_safe) skb_release_data() argument
1004 kfree_skbmem(struct sk_buff * skb) kfree_skbmem() argument
1034 skb_release_head_state(struct sk_buff * skb) skb_release_head_state() argument
1048 skb_release_all(struct sk_buff * skb,enum skb_drop_reason reason,bool napi_safe) skb_release_all() argument
1065 __kfree_skb(struct sk_buff * skb) __kfree_skb() argument
1073 __kfree_skb_reason(struct sk_buff * skb,enum skb_drop_reason reason) __kfree_skb_reason() argument
1100 kfree_skb_reason(struct sk_buff * skb,enum skb_drop_reason reason) kfree_skb_reason() argument
1114 kfree_skb_add_bulk(struct sk_buff * skb,struct skb_free_array * sa,enum skb_drop_reason reason) kfree_skb_add_bulk() argument
1163 skb_dump(const char * level,const struct sk_buff * skb,bool full_pkt) skb_dump() argument
1259 skb_tx_error(struct sk_buff * skb) skb_tx_error() argument
1277 consume_skb(struct sk_buff * skb) consume_skb() argument
1295 __consume_stateless_skb(struct sk_buff * skb) __consume_stateless_skb() argument
1302 napi_skb_cache_put(struct sk_buff * skb) napi_skb_cache_put() argument
1321 __napi_kfree_skb(struct sk_buff * skb,enum skb_drop_reason reason) __napi_kfree_skb() argument
1327 napi_skb_free_stolen_head(struct sk_buff * skb) napi_skb_free_stolen_head() argument
1339 napi_consume_skb(struct sk_buff * skb,int budget) napi_consume_skb() argument
1422 __skb_clone(struct sk_buff * n,struct sk_buff * skb) __skb_clone() argument
1543 struct sk_buff *skb; msg_zerocopy_alloc() local
1627 skb_zerocopy_notify_extend(struct sk_buff * skb,u32 lo,u16 len) skb_zerocopy_notify_extend() argument
1649 struct sk_buff *tail, *skb = skb_from_uarg(uarg); __msg_zerocopy_callback() local
1697 msg_zerocopy_callback(struct sk_buff * skb,struct ubuf_info * uarg,bool success) msg_zerocopy_callback() argument
1721 skb_zerocopy_iter_stream(struct sock * sk,struct sk_buff * skb,struct msghdr * msg,int len,struct ubuf_info * uarg) skb_zerocopy_iter_stream() argument
1751 __skb_zcopy_downgrade_managed(struct sk_buff * skb) __skb_zcopy_downgrade_managed() argument
1796 skb_copy_ubufs(struct sk_buff * skb,gfp_t gfp_mask) skb_copy_ubufs() argument
1892 skb_clone(struct sk_buff * skb,gfp_t gfp_mask) skb_clone() argument
1922 skb_headers_offset_update(struct sk_buff * skb,int off) skb_headers_offset_update() argument
1948 skb_alloc_rx_flag(const struct sk_buff * skb) skb_alloc_rx_flag() argument
1972 skb_copy(const struct sk_buff * skb,gfp_t gfp_mask) skb_copy() argument
2017 __pskb_copy_fclone(struct sk_buff * skb,int headroom,gfp_t gfp_mask,bool fclone) __pskb_copy_fclone() argument
2081 pskb_expand_head(struct sk_buff * skb,int nhead,int ntail,gfp_t gfp_mask) pskb_expand_head() argument
2170 skb_realloc_headroom(struct sk_buff * skb,unsigned int headroom) skb_realloc_headroom() argument
2190 __skb_unclone_keeptruesize(struct sk_buff * skb,gfp_t pri) __skb_unclone_keeptruesize() argument
2248 skb_expand_head(struct sk_buff * skb,unsigned int headroom) skb_expand_head() argument
2305 skb_copy_expand(const struct sk_buff * skb,int newheadroom,int newtailroom,gfp_t gfp_mask) skb_copy_expand() argument
2364 __skb_pad(struct sk_buff * skb,int pad,bool free_on_error) __skb_pad() argument
2412 pskb_put(struct sk_buff * skb,struct sk_buff * tail,int len) pskb_put() argument
2431 skb_put(struct sk_buff * skb,unsigned int len) skb_put() argument
2452 skb_push(struct sk_buff * skb,unsigned int len) skb_push() argument
2472 skb_pull(struct sk_buff * skb,unsigned int len) skb_pull() argument
2489 skb_pull_data(struct sk_buff * skb,size_t len) skb_pull_data() argument
2511 skb_trim(struct sk_buff * skb,unsigned int len) skb_trim() argument
2521 ___pskb_trim(struct sk_buff * skb,unsigned int len) ___pskb_trim() argument
2608 pskb_trim_rcsum_slow(struct sk_buff * skb,unsigned int len) pskb_trim_rcsum_slow() argument
2652 __pskb_pull_tail(struct sk_buff * skb,int delta) __pskb_pull_tail() argument
2793 skb_copy_bits(const struct sk_buff * skb,int offset,void * to,int len) skb_copy_bits() argument
2978 __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
3030 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
3078 __skb_send_sock(struct sock * sk,struct sk_buff * skb,int offset,int len,sendmsg_func sendmsg) __skb_send_sock() argument
3177 skb_send_sock_locked(struct sock * sk,struct sk_buff * skb,int offset,int len) skb_send_sock_locked() argument
3185 skb_send_sock(struct sock * sk,struct sk_buff * skb,int offset,int len) skb_send_sock() argument
3202 skb_store_bits(struct sk_buff * skb,int offset,const void * from,int len) skb_store_bits() argument
3280 __skb_checksum(const struct sk_buff * skb,int offset,int len,__wsum csum,const struct skb_checksum_ops * ops) __skb_checksum() argument
3364 skb_checksum(const struct sk_buff * skb,int offset,int len,__wsum csum) skb_checksum() argument
3378 skb_copy_and_csum_bits(const struct sk_buff * skb,int offset,u8 * to,int len) skb_copy_and_csum_bits() argument
3463 __skb_checksum_complete_head(struct sk_buff * skb,int len) __skb_checksum_complete_head() argument
3489 __skb_checksum_complete(struct sk_buff * skb) __skb_checksum_complete() argument
3652 skb_copy_and_csum_dev(const struct sk_buff * skb,u8 * to) skb_copy_and_csum_dev() argument
3732 struct sk_buff *skb; skb_queue_purge_reason() local
3755 struct sk_buff *skb = rb_entry(p, struct sk_buff, rbnode); skb_rbtree_purge() local
3767 struct sk_buff *skb, *next; skb_errqueue_purge() local
3838 skb_unlink(struct sk_buff * skb,struct sk_buff_head * list) skb_unlink() argument
3868 skb_split_inside_header(struct sk_buff * skb,struct sk_buff * skb1,const u32 len,const int pos) skb_split_inside_header() argument
3889 skb_split_no_header(struct sk_buff * skb,struct sk_buff * skb1,const u32 len,int pos) skb_split_no_header() argument
3936 skb_split(struct sk_buff * skb,struct sk_buff * skb1,const u32 len) skb_split() argument
3956 skb_prepare_for_shift(struct sk_buff * skb) skb_prepare_for_shift() argument
3979 skb_shift(struct sk_buff * tgt,struct sk_buff * skb,int shiftlen) skb_shift() argument
4104 skb_prepare_seq_read(struct sk_buff * skb,unsigned int from,unsigned int to,struct skb_seq_state * st) skb_prepare_seq_read() argument
4265 skb_find_text(struct sk_buff * skb,unsigned int from,unsigned int to,struct ts_config * config) skb_find_text() argument
4284 skb_append_pagefrags(struct sk_buff * skb,struct page * page,int offset,size_t size,size_t max_frags) skb_append_pagefrags() argument
4314 skb_pull_rcsum(struct sk_buff * skb,unsigned int len) skb_pull_rcsum() argument
4337 skb_segment_list(struct sk_buff * skb,netdev_features_t features,unsigned int offset) skb_segment_list() argument
4879 __skb_to_sgvec(struct sk_buff * skb,struct scatterlist * sg,int offset,int len,unsigned int recursion_level) __skb_to_sgvec() argument
4962 skb_to_sgvec(struct sk_buff * skb,struct scatterlist * sg,int offset,int len) skb_to_sgvec() argument
4994 skb_to_sgvec_nomark(struct sk_buff * skb,struct scatterlist * sg,int offset,int len) skb_to_sgvec_nomark() argument
5020 skb_cow_data(struct sk_buff * skb,int tailbits,struct sk_buff ** trailer) skb_cow_data() argument
5113 sock_rmem_free(struct sk_buff * skb) sock_rmem_free() argument
5120 skb_set_err_queue(struct sk_buff * skb) skb_set_err_queue() argument
5132 sock_queue_err_skb(struct sock * sk,struct sk_buff * skb) sock_queue_err_skb() argument
5154 is_icmp_err_skb(const struct sk_buff * skb) is_icmp_err_skb() argument
5163 struct sk_buff *skb, *skb_next = NULL; sock_dequeue_err_skb() local
5199 skb_clone_sk(struct sk_buff * skb) skb_clone_sk() argument
5220 __skb_complete_tx_timestamp(struct sk_buff * skb,struct sock * sk,int tstype,bool opt_stats) __skb_complete_tx_timestamp() argument
5263 skb_complete_tx_timestamp(struct sk_buff * skb,struct skb_shared_hwtstamps * hwtstamps) skb_complete_tx_timestamp() argument
5291 struct sk_buff *skb; __skb_tstamp_tx() local
5352 skb_complete_wifi_ack(struct sk_buff * skb,bool acked) skb_complete_wifi_ack() argument
5391 skb_partial_csum_set(struct sk_buff * skb,u16 start,u16 off) skb_partial_csum_set() argument
5409 skb_maybe_pull_tail(struct sk_buff * skb,unsigned int len,unsigned int max) skb_maybe_pull_tail() argument
5432 skb_checksum_setup_ip(struct sk_buff * skb,typeof (IPPROTO_IP)proto,unsigned int off) skb_checksum_setup_ip() argument
5466 skb_checksum_setup_ipv4(struct sk_buff * skb,bool recalculate) skb_checksum_setup_ipv4() argument
5511 OPT_HDR(type,skb,off) global() argument
5514 skb_checksum_setup_ipv6(struct sk_buff * skb,bool recalculate) skb_checksum_setup_ipv6() argument
5619 skb_checksum_setup(struct sk_buff * skb,bool recalculate) skb_checksum_setup() argument
5654 skb_checksum_maybe_trim(struct sk_buff * skb,unsigned int transport_len) skb_checksum_maybe_trim() argument
5694 skb_checksum_trimmed(struct sk_buff * skb,unsigned int transport_len,__sum16 (* skb_chkf)(struct sk_buff * skb)) skb_checksum_trimmed() argument
5696 skb_checksum_trimmed(struct sk_buff * skb,unsigned int transport_len,__sum16 (* skb_chkf)(struct sk_buff * skb)) skb_checksum_trimmed() argument
5727 __skb_warn_lro_forwarding(const struct sk_buff * skb) __skb_warn_lro_forwarding() argument
5734 kfree_skb_partial(struct sk_buff * skb,bool head_stolen) kfree_skb_partial() argument
5856 skb_scrub_packet(struct sk_buff * skb,bool xnet) skb_scrub_packet() argument
5880 skb_reorder_vlan_header(struct sk_buff * skb) skb_reorder_vlan_header() argument
5906 skb_vlan_untag(struct sk_buff * skb) skb_vlan_untag() argument
5947 skb_ensure_writable(struct sk_buff * skb,unsigned int write_len) skb_ensure_writable() argument
5962 __skb_vlan_pop(struct sk_buff * skb,u16 * vlan_tci) __skb_vlan_pop() argument
5995 skb_vlan_pop(struct sk_buff * skb) skb_vlan_pop() argument
6028 skb_vlan_push(struct sk_buff * skb,__be16 vlan_proto,u16 vlan_tci) skb_vlan_push() argument
6067 skb_eth_pop(struct sk_buff * skb) skb_eth_pop() argument
6094 skb_eth_push(struct sk_buff * skb,const unsigned char * dst,const unsigned char * src) skb_eth_push() argument
6123 skb_mod_eth_type(struct sk_buff * skb,struct ethhdr * hdr,__be16 ethertype) skb_mod_eth_type() argument
6150 skb_mpls_push(struct sk_buff * skb,__be32 mpls_lse,__be16 mpls_proto,int mac_len,bool ethernet) skb_mpls_push() argument
6203 skb_mpls_pop(struct sk_buff * skb,__be16 next_proto,int mac_len,bool ethernet) skb_mpls_pop() argument
6246 skb_mpls_update_lse(struct sk_buff * skb,__be32 mpls_lse) skb_mpls_update_lse() argument
6278 skb_mpls_dec_ttl(struct sk_buff * skb) skb_mpls_dec_ttl() argument
6319 struct sk_buff *skb; alloc_skb_with_frags() local
6368 pskb_carve_inside_header(struct sk_buff * skb,const u32 off,const int headlen,gfp_t gfp_mask) pskb_carve_inside_header() argument
6429 pskb_carve_frag_list(struct sk_buff * skb,struct skb_shared_info * shinfo,int eat,gfp_t gfp_mask) pskb_carve_frag_list() argument
6483 pskb_carve_inside_nonlinear(struct sk_buff * skb,const u32 off,int pos,gfp_t gfp_mask) pskb_carve_inside_nonlinear() argument
6560 pskb_carve(struct sk_buff * skb,const u32 len,gfp_t gfp) pskb_carve() argument
6573 pskb_extract(struct sk_buff * skb,int off,int to_copy,gfp_t gfp) pskb_extract() argument
6602 skb_condense(struct sk_buff * skb) skb_condense() argument
6696 __skb_ext_set(struct sk_buff * skb,enum skb_ext_id id,struct skb_ext * ext) __skb_ext_set() argument
6724 skb_ext_add(struct sk_buff * skb,enum skb_ext_id id) skb_ext_add() argument
6777 __skb_ext_del(struct sk_buff * skb,enum skb_ext_id id) __skb_ext_del() argument
6830 skb_attempt_defer_free(struct sk_buff * skb) skb_attempt_defer_free() argument
6870 skb_splice_csum_page(struct sk_buff * skb,struct page * page,size_t offset,size_t len) skb_splice_csum_page() argument
6897 skb_splice_from_iter(struct sk_buff * skb,struct iov_iter * iter,ssize_t maxsize,gfp_t gfp) skb_splice_from_iter() argument
[all...]
H A Dgso.c13 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()
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()
66 static bool skb_needs_check(const struct sk_buff *skb, bool tx_path) in skb_needs_check() argument
69 return skb->ip_summed != CHECKSUM_PARTIAL && in skb_needs_check()
[all …]
/openbmc/linux/include/net/
H A Dgro.h100 #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb) argument
103 static inline int gro_recursion_inc_test(struct sk_buff *skb) in gro_recursion_inc_test() argument
105 return ++NAPI_GRO_CB(skb)->recursion_counter == GRO_RECURSION_LIMIT; in gro_recursion_inc_test()
111 struct sk_buff *skb)
113 if (unlikely(gro_recursion_inc_test(skb))) {
114 NAPI_GRO_CB(skb)->flush |= 1;
118 return cb(head, skb);
126 struct sk_buff *skb)
128 if (unlikely(gro_recursion_inc_test(skb))) {
129 NAPI_GRO_CB(skb)->flush |= 1;
[all …]
H A Dllc_c_ev.h123 static __inline__ struct llc_conn_state_ev *llc_conn_ev(struct sk_buff *skb) in llc_conn_ev() argument
125 return (struct llc_conn_state_ev *)skb->cb; in llc_conn_ev()
128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb);
129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb);
131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb);
132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb);
133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb);
134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb);
135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb);
136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb);
[all …]
H A Dllc_c_ac.h97 typedef int (*llc_conn_action_t)(struct sock *sk, struct sk_buff *skb);
99 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb);
100 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb);
101 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb);
102 int llc_conn_ac_data_ind(struct sock *sk, struct sk_buff *skb);
103 int llc_conn_ac_disc_ind(struct sock *sk, struct sk_buff *skb);
104 int llc_conn_ac_rst_ind(struct sock *sk, struct sk_buff *skb);
105 int llc_conn_ac_rst_confirm(struct sock *sk, struct sk_buff *skb);
107 struct sk_buff *skb);
109 struct sk_buff *skb);
[all …]
/openbmc/linux/net/bridge/
H A Dbr_netfilter_hooks.c71 #define IS_IP(skb) \ argument
72 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
74 #define IS_IPV6(skb) \ argument
75 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6))
77 #define IS_ARP(skb) \ argument
78 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP))
80 static inline __be16 vlan_proto(const struct sk_buff *skb) in vlan_proto() argument
90 is_vlan_ip(const struct sk_buff * skb,const struct net * net) is_vlan_ip() argument
97 is_vlan_ipv6(const struct sk_buff * skb,const struct net * net) is_vlan_ipv6() argument
106 is_vlan_arp(const struct sk_buff * skb,const struct net * net) is_vlan_arp() argument
113 pppoe_proto(const struct sk_buff * skb) pppoe_proto() argument
119 is_pppoe_ip(const struct sk_buff * skb,const struct net * net) is_pppoe_ip() argument
127 is_pppoe_ipv6(const struct sk_buff * skb,const struct net * net) is_pppoe_ipv6() argument
150 nf_bridge_info_free(struct sk_buff * skb) nf_bridge_info_free() argument
163 nf_bridge_unshare(struct sk_buff * skb) nf_bridge_unshare() argument
168 nf_bridge_encap_header_len(const struct sk_buff * skb) nf_bridge_encap_header_len() argument
180 nf_bridge_pull_encap_header(struct sk_buff * skb) nf_bridge_pull_encap_header() argument
188 nf_bridge_pull_encap_header_rcsum(struct sk_buff * skb) nf_bridge_pull_encap_header_rcsum() argument
201 br_validate_ipv4(struct net * net,struct sk_buff * skb) br_validate_ipv4() argument
250 nf_bridge_update_protocol(struct sk_buff * skb) nf_bridge_update_protocol() argument
271 br_nf_pre_routing_finish_bridge(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_pre_routing_finish_bridge() argument
322 br_nf_ipv4_daddr_was_changed(const struct sk_buff * skb,const struct nf_bridge_info * nf_bridge) br_nf_ipv4_daddr_was_changed() argument
367 br_nf_pre_routing_finish(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_pre_routing_finish() argument
450 brnf_get_logical_dev(struct sk_buff * skb,const struct net_device * dev,const struct net * net) brnf_get_logical_dev() argument
469 setup_pre_routing(struct sk_buff * skb,const struct net * net) setup_pre_routing() argument
499 br_nf_pre_routing(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) br_nf_pre_routing() argument
601 br_nf_local_in(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) br_nf_local_in() argument
657 br_nf_forward_finish(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_forward_finish() argument
697 br_nf_forward_ip(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) br_nf_forward_ip() argument
763 br_nf_forward_arp(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) br_nf_forward_arp() argument
801 br_nf_push_frag_xmit(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_push_frag_xmit() argument
825 br_nf_ip_fragment(struct net * net,struct sock * sk,struct sk_buff * skb,int (* output)(struct net *,struct sock *,struct sk_buff *)) br_nf_ip_fragment() argument
842 nf_bridge_mtu_reduction(const struct sk_buff * skb) nf_bridge_mtu_reduction() argument
851 br_nf_dev_queue_xmit(struct net * net,struct sock * sk,struct sk_buff * skb) br_nf_dev_queue_xmit() argument
940 br_nf_post_routing(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) br_nf_post_routing() argument
989 ip_sabotage_in(void * priv,struct sk_buff * skb,const struct nf_hook_state * state) ip_sabotage_in() argument
1019 br_nf_pre_routing_finish_bridge_slow(struct sk_buff * skb) br_nf_pre_routing_finish_bridge_slow() argument
1044 br_nf_dev_xmit(struct sk_buff * skb) br_nf_dev_xmit() argument
1144 br_nf_hook_thresh(unsigned int hook,struct net * net,struct sock * sk,struct sk_buff * skb,struct net_device * indev,struct net_device * outdev,int (* okfn)(struct net *,struct sock *,struct sk_buff *)) br_nf_hook_thresh() argument
[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 …]
/openbmc/linux/drivers/net/can/dev/
H A Dskb.c47 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()
77 can_skb_prv(skb)->frame_len = frame_len; in can_put_echo_skb()
[all …]
/openbmc/linux/net/ipv6/
H A Dexthdrs.c64 static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff, in ip6_tlvopt_unknown() argument
78 switch ((skb_network_header(skb)[optoff] & 0xC0) >> 6) { in ip6_tlvopt_unknown()
89 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) in ip6_tlvopt_unknown()
93 icmpv6_param_prob_reason(skb, ICMPV6_UNK_OPTION, optoff, in ip6_tlvopt_unknown()
99 kfree_skb_reason(skb, SKB_DROP_REASON_UNHANDLED_PROTO); in ip6_tlvopt_unknown()
103 static bool ipv6_hop_ra(struct sk_buff *skb, int optoff);
104 static bool ipv6_hop_ioam(struct sk_buff *skb, int optoff);
105 static bool ipv6_hop_jumbo(struct sk_buff *skb, int optoff);
106 static bool ipv6_hop_calipso(struct sk_buff *skb, int optoff);
108 static bool ipv6_dest_hao(struct sk_buff *skb, int optoff);
[all …]
H A Dip6_input.c49 struct sk_buff *skb) in ip6_rcv_finish_core() argument
52 !skb_dst(skb) && !skb->sk) { in ip6_rcv_finish_core()
53 switch (ipv6_hdr(skb)->nexthdr) { in ip6_rcv_finish_core()
56 tcp_v6_early_demux(skb); in ip6_rcv_finish_core()
60 udp_v6_early_demux(skb); in ip6_rcv_finish_core()
65 if (!skb_valid_dst(skb)) in ip6_rcv_finish_core()
66 ip6_route_input(skb); in ip6_rcv_finish_core()
69 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish() argument
74 skb = l3mdev_ip6_rcv(skb); in ip6_rcv_finish()
75 if (!skb) in ip6_rcv_finish()
[all …]
H A Dip6_offload.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_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
92 if (unlikely(!pskb_may_pull(skb, 8))) in ipv6_gso_pull_exthdrs()
[all …]
/openbmc/linux/net/ipv4/
H A Dip_input.c148 bool ip_call_ra_chain(struct sk_buff *skb) in ip_call_ra_chain() argument
151 u8 protocol = ip_hdr(skb)->protocol; in ip_call_ra_chain()
153 struct net_device *dev = skb->dev; in ip_call_ra_chain()
165 if (ip_is_fragment(ip_hdr(skb))) { in ip_call_ra_chain()
166 if (ip_defrag(net, skb, IP_DEFRAG_CALL_RA_CHAIN)) in ip_call_ra_chain()
170 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip_call_ra_chain()
179 raw_rcv(last, skb); in ip_call_ra_chain()
187 void ip_protocol_deliver_rcu(struct net *net, struct sk_buff *skb, int protocol) in ip_protocol_deliver_rcu() argument
193 raw = raw_local_deliver(skb, protocol); in ip_protocol_deliver_rcu()
198 if (!xfrm4_policy_check(NULL, XFRM_POLICY_IN, skb)) { in ip_protocol_deliver_rcu()
[all …]
H A Dudp_offload.c16 static struct sk_buff *__skb_udp_tunnel_segment(struct sk_buff *skb, in __skb_udp_tunnel_segment() argument
18 struct sk_buff *(*gso_inner_segment)(struct sk_buff *skb, in __skb_udp_tunnel_segment() argument
22 int tnl_hlen = skb_inner_mac_header(skb) - skb_transport_header(skb); in __skb_udp_tunnel_segment()
25 struct udphdr *uh = udp_hdr(skb); in __skb_udp_tunnel_segment()
26 u16 mac_offset = skb->mac_header; in __skb_udp_tunnel_segment()
27 __be16 protocol = skb->protocol; in __skb_udp_tunnel_segment()
28 u16 mac_len = skb->mac_len; in __skb_udp_tunnel_segment()
33 if (unlikely(!pskb_may_pull(skb, tnl_hlen))) in __skb_udp_tunnel_segment()
42 if (skb_shinfo(skb)->gso_type & SKB_GSO_PARTIAL) in __skb_udp_tunnel_segment()
45 partial = (__force __wsum)htonl(skb->len); in __skb_udp_tunnel_segment()
[all …]
H A Dtcp_offload.c16 static void tcp_gso_tstamp(struct sk_buff *skb, unsigned int ts_seq, in tcp_gso_tstamp() argument
19 while (skb) { in tcp_gso_tstamp()
21 skb_shinfo(skb)->tx_flags |= SKBTX_SW_TSTAMP; in tcp_gso_tstamp()
22 skb_shinfo(skb)->tskey = ts_seq; in tcp_gso_tstamp()
26 skb = skb->next; in tcp_gso_tstamp()
31 static struct sk_buff *tcp4_gso_segment(struct sk_buff *skb, in tcp4_gso_segment() argument
34 if (!(skb_shinfo(skb)->gso_type & SKB_GSO_TCPV4)) in tcp4_gso_segment()
37 if (!pskb_may_pull(skb, sizeof(struct tcphdr))) in tcp4_gso_segment()
40 if (unlikely(skb->ip_summed != CHECKSUM_PARTIAL)) { in tcp4_gso_segment()
41 const struct iphdr *iph = ip_hdr(skb); in tcp4_gso_segment()
[all …]
H A Dgre_offload.c16 static struct sk_buff *gre_gso_segment(struct sk_buff *skb, in gre_gso_segment() argument
19 int tnl_hlen = skb_inner_mac_header(skb) - skb_transport_header(skb); in gre_gso_segment()
22 u16 mac_offset = skb->mac_header; in gre_gso_segment()
23 __be16 protocol = skb->protocol; in gre_gso_segment()
24 u16 mac_len = skb->mac_len; in gre_gso_segment()
27 if (!skb->encapsulation) in gre_gso_segment()
33 if (unlikely(!pskb_may_pull(skb, tnl_hlen))) in gre_gso_segment()
37 skb->encapsulation = 0; in gre_gso_segment()
38 SKB_GSO_CB(skb)->encap_level = 0; in gre_gso_segment()
39 __skb_pull(skb, tnl_hlen); in gre_gso_segment()
[all …]
/openbmc/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 …]
/openbmc/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 …]
/openbmc/linux/drivers/bluetooth/
H A Dbtbcm.c79 struct sk_buff *skb; in btbcm_check_bdaddr() local
81 skb = __hci_cmd_sync(hdev, HCI_OP_READ_BD_ADDR, 0, NULL, in btbcm_check_bdaddr()
83 if (IS_ERR(skb)) { in btbcm_check_bdaddr()
84 int err = PTR_ERR(skb); in btbcm_check_bdaddr()
90 if (skb->len != sizeof(*bda)) { in btbcm_check_bdaddr()
92 kfree_skb(skb); in btbcm_check_bdaddr()
96 bda = (struct hci_rp_read_bd_addr *)skb->data; in btbcm_check_bdaddr()
141 kfree_skb(skb); in btbcm_check_bdaddr()
149 struct sk_buff *skb; in btbcm_set_bdaddr() local
152 skb = __hci_cmd_sync(hdev, 0xfc01, 6, bdaddr, HCI_INIT_TIMEOUT); in btbcm_set_bdaddr()
[all …]
/openbmc/linux/net/sched/
H A Dsch_frag.c18 int (*xmit)(struct sk_buff *skb);
23 static int sch_frag_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) in sch_frag_xmit() argument
27 if (skb_cow_head(skb, data->l2_len) < 0) { in sch_frag_xmit()
28 kfree_skb(skb); in sch_frag_xmit()
32 __skb_dst_copy(skb, data->dst); in sch_frag_xmit()
33 *qdisc_skb_cb(skb) = data->cb; in sch_frag_xmit()
34 skb->inner_protocol = data->inner_protocol; in sch_frag_xmit()
36 __vlan_hwaccel_put_tag(skb, data->vlan_proto, in sch_frag_xmit()
39 __vlan_hwaccel_clear_tag(skb); in sch_frag_xmit()
42 skb_push(skb, data->l2_len); in sch_frag_xmit()
[all …]
/openbmc/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 bool mono_delivery_time = skb->mono_delivery_time; 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()
[all …]
/openbmc/linux/net/ieee802154/6lowpan/
H A Drx.c21 static int lowpan_give_skb_to_device(struct sk_buff *skb) in lowpan_give_skb_to_device() argument
23 skb->protocol = htons(ETH_P_IPV6); in lowpan_give_skb_to_device()
24 skb->dev->stats.rx_packets++; in lowpan_give_skb_to_device()
25 skb->dev->stats.rx_bytes += skb->len; in lowpan_give_skb_to_device()
27 return netif_rx(skb); in lowpan_give_skb_to_device()
30 static int lowpan_rx_handlers_result(struct sk_buff *skb, lowpan_rx_result res) in lowpan_rx_handlers_result() argument
40 kfree_skb(skb); in lowpan_rx_handlers_result()
46 return lowpan_give_skb_to_device(skb); in lowpan_rx_handlers_result()
64 static lowpan_rx_result lowpan_rx_h_frag(struct sk_buff *skb) in lowpan_rx_h_frag() argument
68 if (!(lowpan_is_frag1(*skb_network_header(skb)) || in lowpan_rx_h_frag()
[all …]

12345678910>>...125