Searched refs:skb (Results 51 - 75 of 3407) sorted by relevance

1234567891011>>

/linux-master/drivers/net/ethernet/qualcomm/rmnet/
H A Drmnet_handlers.c22 static void rmnet_set_skb_proto(struct sk_buff *skb) argument
24 switch (skb->data[0] & 0xF0) {
26 skb->protocol = htons(ETH_P_IP);
29 skb->protocol = htons(ETH_P_IPV6);
32 skb->protocol = htons(ETH_P_MAP);
40 rmnet_deliver_skb(struct sk_buff *skb) argument
42 struct rmnet_priv *priv = netdev_priv(skb->dev);
44 skb_reset_transport_header(skb);
45 skb_reset_network_header(skb);
46 rmnet_vnd_rx_fixup(skb, sk
56 __rmnet_map_ingress_handler(struct sk_buff *skb, struct rmnet_port *port) argument
109 rmnet_map_ingress_handler(struct sk_buff *skb, struct rmnet_port *port) argument
133 rmnet_map_egress_handler(struct sk_buff *skb, struct rmnet_port *port, u8 mux_id, struct net_device *orig_dev) argument
183 rmnet_bridge_handler(struct sk_buff *skb, struct net_device *bridge_dev) argument
202 struct sk_buff *skb = *pskb; local
242 rmnet_egress_handler(struct sk_buff *skb) argument
[all...]
/linux-master/net/ipv6/
H A Dip6_offload.c33 #define indirect_call_gro_receive_l4(f2, f1, cb, head, skb) \
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) argument
56 opth = skb_gro_header(skb, off + sizeof(*opth), off);
62 opth = skb_gro_header(skb, off + len, off);
70 skb_gro_pull(skb, off - skb_network_offset(skb));
74 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, in argument
107 ipv6_gso_segment(struct sk_buff *skb, netdev_features_t features) argument
220 ipv6_gro_receive(struct list_head *head, struct sk_buff *skb) argument
320 sit_ip6ip6_gro_receive(struct list_head *head, struct sk_buff *skb) argument
335 ip4ip6_gro_receive(struct list_head *head, struct sk_buff *skb) argument
350 ipv6_gro_complete(struct sk_buff *skb, int nhoff) argument
402 sit_gro_complete(struct sk_buff *skb, int nhoff) argument
409 ip6ip6_gro_complete(struct sk_buff *skb, int nhoff) argument
416 ip4ip6_gro_complete(struct sk_buff *skb, int nhoff) argument
424 sit_gso_segment(struct sk_buff *skb, netdev_features_t features) argument
433 ip4ip6_gso_segment(struct sk_buff *skb, netdev_features_t features) argument
442 ip6ip6_gso_segment(struct sk_buff *skb, netdev_features_t features) argument
[all...]
H A Dxfrm6_input.c22 int xfrm6_rcv_spi(struct sk_buff *skb, int nexthdr, __be32 spi, argument
25 XFRM_TUNNEL_SKB_CB(skb)->tunnel.ip6 = t;
26 XFRM_SPI_SKB_CB(skb)->family = AF_INET6;
27 XFRM_SPI_SKB_CB(skb)->daddroff = offsetof(struct ipv6hdr, daddr);
28 return xfrm_input(skb, nexthdr, spi, 0);
33 struct sk_buff *skb)
35 if (xfrm_trans_queue(skb, ip6_rcv_finish)) {
36 kfree_skb(skb);
43 int xfrm6_transport_finish(struct sk_buff *skb, int async) argument
45 struct xfrm_offload *xo = xfrm_offload(skb);
32 xfrm6_transport_finish2(struct net *net, struct sock *sk, struct sk_buff *skb) argument
72 __xfrm6_udp_encap_rcv(struct sock *sk, struct sk_buff *skb, bool pull) argument
165 xfrm6_udp_encap_rcv(struct sock *sk, struct sk_buff *skb) argument
185 xfrm6_gro_udp_encap_rcv(struct sock *sk, struct list_head *head, struct sk_buff *skb) argument
227 xfrm6_rcv_tnl(struct sk_buff *skb, struct ip6_tnl *t) argument
234 xfrm6_rcv(struct sk_buff *skb) argument
239 xfrm6_input_addr(struct sk_buff *skb, xfrm_address_t *daddr, xfrm_address_t *saddr, u8 proto) argument
[all...]
H A Dtcpv6_offload.c17 struct sk_buff *tcp6_gro_receive(struct list_head *head, struct sk_buff *skb) argument
20 if (!NAPI_GRO_CB(skb)->flush &&
21 skb_gro_checksum_validate(skb, IPPROTO_TCP,
23 NAPI_GRO_CB(skb)->flush = 1;
27 return tcp_gro_receive(head, skb);
30 INDIRECT_CALLABLE_SCOPE int tcp6_gro_complete(struct sk_buff *skb, int thoff) argument
32 const struct ipv6hdr *iph = ipv6_hdr(skb);
33 struct tcphdr *th = tcp_hdr(skb);
35 th->check = ~tcp_v6_check(skb->len - thoff, &iph->saddr,
37 skb_shinfo(skb)
43 tcp6_gso_segment(struct sk_buff *skb, netdev_features_t features) argument
[all...]
/linux-master/net/bridge/
H A Dbr_forward.c22 const struct sk_buff *skb)
27 return ((p->flags & BR_HAIRPIN_MODE) || skb->dev != p->dev) &&
28 p->state == BR_STATE_FORWARDING && br_allowed_egress(vg, skb) &&
29 nbp_switchdev_allowed_egress(p, skb) &&
30 !br_skb_isolated(p, skb);
33 int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) argument
35 skb_push(skb, ETH_HLEN);
36 if (!is_skb_forwardable(skb->dev, skb))
39 br_drop_fake_rtable(skb);
21 should_deliver(const struct net_bridge_port *p, const struct sk_buff *skb) argument
63 br_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument
73 __br_forward(const struct net_bridge_port *to, struct sk_buff *skb, bool local_orig) argument
120 deliver_clone(const struct net_bridge_port *prev, struct sk_buff *skb, bool local_orig) argument
144 br_forward(const struct net_bridge_port *to, struct sk_buff *skb, bool local_rcv, bool local_orig) argument
175 maybe_deliver( struct net_bridge_port *prev, struct net_bridge_port *p, struct sk_buff *skb, bool local_orig) argument
200 br_flood(struct net_bridge *br, struct sk_buff *skb, enum br_pkt_type pkt_type, bool local_rcv, bool local_orig, u16 vid) argument
256 maybe_deliver_addr(struct net_bridge_port *p, struct sk_buff *skb, const unsigned char *addr, bool local_orig) argument
282 br_multicast_flood(struct net_bridge_mdb_entry *mdst, struct sk_buff *skb, struct net_bridge_mcast *brmctx, bool local_rcv, bool local_orig) argument
[all...]
/linux-master/include/linux/
H A Dskbuff.h43 * DOC: skb checksums
104 * not in skb->csum. Thus, skb->csum is undefined in this case.
132 * checksum is bad, skb->csum_level would be set to zero (TCP checksum is
144 * skb->csum, it MUST use CHECKSUM_COMPLETE, not CHECKSUM_UNNECESSARY.
154 * referred to by skb->csum_start + skb->csum_offset and any preceding
193 * The skb was already checksummed by the protocol, or a checksum is not
252 /* Maximum value in skb->csum_level */
259 /* For X bytes available in skb
1108 skb_pfmemalloc(const struct sk_buff *skb) argument
1126 skb_dst(const struct sk_buff *skb) argument
1145 skb_dst_set(struct sk_buff *skb, struct dst_entry *dst) argument
1161 skb_dst_set_noref(struct sk_buff *skb, struct dst_entry *dst) argument
1172 skb_dst_is_noref(const struct sk_buff *skb) argument
1181 skb_rtable(const struct sk_buff *skb) argument
1199 skb_napi_id(const struct sk_buff *skb) argument
1208 skb_wifi_acked_valid(const struct sk_buff *skb) argument
1223 skb_unref(struct sk_buff *skb) argument
1235 skb_data_unref(const struct sk_buff *skb, struct skb_shared_info *shinfo) argument
1260 kfree_skb(struct sk_buff *skb) argument
1279 consume_skb(struct sk_buff *skb) argument
1341 skb_fclone_busy(const struct sock *sk, const struct sk_buff *skb) argument
1374 __pskb_copy(struct sk_buff *skb, int headroom, gfp_t gfp_mask) argument
1404 skb_pad(struct sk_buff *skb, int pad) argument
1466 skb_clear_hash(struct sk_buff *skb) argument
1473 skb_clear_hash_if_not_l4(struct sk_buff *skb) argument
1480 __skb_set_hash(struct sk_buff *skb, __u32 hash, bool is_sw, bool is_l4) argument
1488 skb_set_hash(struct sk_buff *skb, __u32 hash, enum pkt_hash_types type) argument
1495 __skb_set_sw_hash(struct sk_buff *skb, __u32 hash, bool is_l4) argument
1508 skb_flow_get_ports(const struct sk_buff *skb, int thoff, u8 ip_proto) argument
1528 skb_flow_dissect(const struct sk_buff *skb, struct flow_dissector *flow_dissector, void *target_container, unsigned int flags) argument
1536 skb_flow_dissect_flow_keys(const struct sk_buff *skb, struct flow_keys *flow, unsigned int flags) argument
1546 skb_flow_dissect_flow_keys_basic(const struct net *net, const struct sk_buff *skb, struct flow_keys_basic *flow, const void *data, __be16 proto, int nhoff, int hlen, unsigned int flags) argument
1580 skb_get_hash(struct sk_buff *skb) argument
1588 skb_get_hash_flowi6(struct sk_buff *skb, const struct flowi6 *fl6) argument
1603 skb_get_hash_raw(const struct sk_buff *skb) argument
1634 skb_end_pointer(const struct sk_buff *skb) argument
1639 skb_end_offset(const struct sk_buff *skb) argument
1644 skb_set_end_offset(struct sk_buff *skb, unsigned int offset) argument
1649 skb_end_pointer(const struct sk_buff *skb) argument
1654 skb_end_offset(const struct sk_buff *skb) argument
1659 skb_set_end_offset(struct sk_buff *skb, unsigned int offset) argument
1677 skb_zerocopy_iter_dgram(struct sk_buff *skb, struct msghdr *msg, int len) argument
1690 skb_hwtstamps(struct sk_buff *skb) argument
1695 skb_zcopy(struct sk_buff *skb) argument
1702 skb_zcopy_pure(const struct sk_buff *skb) argument
1707 skb_zcopy_managed(const struct sk_buff *skb) argument
1723 skb_zcopy_init(struct sk_buff *skb, struct ubuf_info *uarg) argument
1729 skb_zcopy_set(struct sk_buff *skb, struct ubuf_info *uarg, bool *have_ref) argument
1741 skb_zcopy_set_nouarg(struct sk_buff *skb, void *val) argument
1747 skb_zcopy_is_nouarg(struct sk_buff *skb) argument
1752 skb_zcopy_get_nouarg(struct sk_buff *skb) argument
1774 skb_zcopy_clear(struct sk_buff *skb, bool zerocopy_success) argument
1788 skb_zcopy_downgrade_managed(struct sk_buff *skb) argument
1794 skb_mark_not_on_list(struct sk_buff *skb) argument
1799 skb_poison_list(struct sk_buff *skb) argument
1811 skb_list_del_init(struct sk_buff *skb) argument
1848 skb_queue_is_last(const struct sk_buff_head *list, const struct sk_buff *skb) argument
1861 skb_queue_is_first(const struct sk_buff_head *list, const struct sk_buff *skb) argument
1875 skb_queue_next(const struct sk_buff_head *list, const struct sk_buff *skb) argument
1893 skb_queue_prev(const struct sk_buff_head *list, const struct sk_buff *skb) argument
1910 skb_get(struct sk_buff *skb) argument
1928 skb_cloned(const struct sk_buff *skb) argument
1934 skb_unclone(struct sk_buff *skb, gfp_t pri) argument
1951 skb_unclone_keeptruesize(struct sk_buff *skb, gfp_t pri) argument
1967 skb_header_cloned(const struct sk_buff *skb) argument
1979 skb_header_unclone(struct sk_buff *skb, gfp_t pri) argument
1995 __skb_header_release(struct sk_buff *skb) argument
2009 skb_shared(const struct sk_buff *skb) argument
2027 skb_share_check(struct sk_buff *skb, gfp_t pri) argument
2062 skb_unshare(struct sk_buff *skb, gfp_t pri) argument
2094 struct sk_buff *skb = list_->next; local
2121 skb_peek_next(struct sk_buff *skb, const struct sk_buff_head *list_) argument
2146 struct sk_buff *skb = READ_ONCE(list_->prev); local
2378 __skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) argument
2400 struct sk_buff *skb = skb_peek(list); local
2417 struct sk_buff *skb = skb_peek_tail(list); local
2425 skb_is_nonlinear(const struct sk_buff *skb) argument
2430 skb_headlen(const struct sk_buff *skb) argument
2435 __skb_pagelen(const struct sk_buff *skb) argument
2444 skb_pagelen(const struct sk_buff *skb) argument
2487 skb_len_add(struct sk_buff *skb, int delta) argument
2507 __skb_fill_netmem_desc(struct sk_buff *skb, int i, netmem_ref netmem, int off, int size) argument
2523 __skb_fill_page_desc(struct sk_buff *skb, int i, struct page *page, int off, int size) argument
2529 skb_fill_netmem_desc(struct sk_buff *skb, int i, netmem_ref netmem, int off, int size) argument
2550 skb_fill_page_desc(struct sk_buff *skb, int i, struct page *page, int off, int size) argument
2567 skb_fill_page_desc_noacc(struct sk_buff *skb, int i, struct page *page, int off, int size) argument
2580 skb_add_rx_frag(struct sk_buff *skb, int i, struct page *page, int off, int size, unsigned int truesize) argument
2594 skb_tail_pointer(const struct sk_buff *skb) argument
2599 skb_reset_tail_pointer(struct sk_buff *skb) argument
2604 skb_set_tail_pointer(struct sk_buff *skb, const int offset) argument
2611 skb_tail_pointer(const struct sk_buff *skb) argument
2616 skb_reset_tail_pointer(struct sk_buff *skb) argument
2621 skb_set_tail_pointer(struct sk_buff *skb, const int offset) argument
2628 skb_assert_len(struct sk_buff *skb) argument
2641 __skb_put(struct sk_buff *skb, unsigned int len) argument
2650 __skb_put_zero(struct sk_buff *skb, unsigned int len) argument
2658 __skb_put_data(struct sk_buff *skb, const void *data, unsigned int len) argument
2667 __skb_put_u8(struct sk_buff *skb, u8 val) argument
2672 skb_put_zero(struct sk_buff *skb, unsigned int len) argument
2681 skb_put_data(struct sk_buff *skb, const void *data, unsigned int len) argument
2691 skb_put_u8(struct sk_buff *skb, u8 val) argument
2697 __skb_push(struct sk_buff *skb, unsigned int len) argument
2707 __skb_pull(struct sk_buff *skb, unsigned int len) argument
2723 skb_pull_inline(struct sk_buff *skb, unsigned int len) argument
2733 pskb_may_pull_reason(struct sk_buff *skb, unsigned int len) argument
2749 pskb_may_pull(struct sk_buff *skb, unsigned int len) argument
2754 pskb_pull(struct sk_buff *skb, unsigned int len) argument
2771 skb_headroom(const struct sk_buff *skb) argument
2782 skb_tailroom(const struct sk_buff *skb) argument
2794 skb_availroom(const struct sk_buff *skb) argument
2810 skb_reserve(struct sk_buff *skb, int len) argument
2828 skb_tailroom_reserve(struct sk_buff *skb, unsigned int mtu, unsigned int needed_tailroom) argument
2843 skb_set_inner_protocol(struct sk_buff *skb, __be16 protocol) argument
2850 skb_set_inner_ipproto(struct sk_buff *skb, __u8 ipproto) argument
2857 skb_reset_inner_headers(struct sk_buff *skb) argument
2864 skb_reset_mac_len(struct sk_buff *skb) argument
2869 skb_inner_transport_header(const struct sk_buff *skb) argument
2875 skb_inner_transport_offset(const struct sk_buff *skb) argument
2880 skb_reset_inner_transport_header(struct sk_buff *skb) argument
2885 skb_set_inner_transport_header(struct sk_buff *skb, const int offset) argument
2892 skb_inner_network_header(const struct sk_buff *skb) argument
2897 skb_reset_inner_network_header(struct sk_buff *skb) argument
2902 skb_set_inner_network_header(struct sk_buff *skb, const int offset) argument
2909 skb_inner_network_header_was_set(const struct sk_buff *skb) argument
2914 skb_inner_mac_header(const struct sk_buff *skb) argument
2919 skb_reset_inner_mac_header(struct sk_buff *skb) argument
2924 skb_set_inner_mac_header(struct sk_buff *skb, const int offset) argument
2930 skb_transport_header_was_set(const struct sk_buff *skb) argument
2935 skb_transport_header(const struct sk_buff *skb) argument
2941 skb_reset_transport_header(struct sk_buff *skb) argument
2946 skb_set_transport_header(struct sk_buff *skb, const int offset) argument
2953 skb_network_header(const struct sk_buff *skb) argument
2958 skb_reset_network_header(struct sk_buff *skb) argument
2963 skb_set_network_header(struct sk_buff *skb, const int offset) argument
2969 skb_mac_header_was_set(const struct sk_buff *skb) argument
2974 skb_mac_header(const struct sk_buff *skb) argument
2980 skb_mac_offset(const struct sk_buff *skb) argument
2985 skb_mac_header_len(const struct sk_buff *skb) argument
2991 skb_unset_mac_header(struct sk_buff *skb) argument
2996 skb_reset_mac_header(struct sk_buff *skb) argument
3001 skb_set_mac_header(struct sk_buff *skb, const int offset) argument
3007 skb_pop_mac_header(struct sk_buff *skb) argument
3012 skb_probe_transport_header(struct sk_buff *skb) argument
3024 skb_mac_header_rebuild(struct sk_buff *skb) argument
3034 skb_checksum_start_offset(const struct sk_buff *skb) argument
3039 skb_checksum_start(const struct sk_buff *skb) argument
3044 skb_transport_offset(const struct sk_buff *skb) argument
3049 skb_network_header_len(const struct sk_buff *skb) argument
3055 skb_inner_network_header_len(const struct sk_buff *skb) argument
3060 skb_network_offset(const struct sk_buff *skb) argument
3065 skb_inner_network_offset(const struct sk_buff *skb) argument
3070 pskb_network_may_pull(struct sk_buff *skb, unsigned int len) argument
3125 __skb_set_length(struct sk_buff *skb, unsigned int len) argument
3133 __skb_trim(struct sk_buff *skb, unsigned int len) argument
3140 __pskb_trim(struct sk_buff *skb, unsigned int len) argument
3148 pskb_trim(struct sk_buff *skb, unsigned int len) argument
3162 pskb_trim_unique(struct sk_buff *skb, unsigned int len) argument
3168 __skb_grow(struct sk_buff *skb, unsigned int len) argument
3190 skb_orphan(struct sk_buff *skb) argument
3210 skb_orphan_frags(struct sk_buff *skb, gfp_t gfp_mask) argument
3220 skb_orphan_frags_rx(struct sk_buff *skb, gfp_t gfp_mask) argument
3239 struct sk_buff *skb; local
3321 struct sk_buff *skb = __netdev_alloc_skb(dev, length + NET_IP_ALIGN, gfp); local
3434 skb_propagate_pfmemalloc(const struct page *page, struct sk_buff *skb) argument
3510 skb_frag_ref(struct sk_buff *skb, int f) argument
3522 skb_page_unref(const struct sk_buff *skb, struct page *page, bool napi_safe) argument
3563 skb_frag_unref(struct sk_buff *skb, int f) argument
3632 pskb_copy(struct sk_buff *skb, gfp_t gfp_mask) argument
3639 pskb_copy_for_clone(struct sk_buff *skb, gfp_t gfp_mask) argument
3654 skb_clone_writable(const struct sk_buff *skb, unsigned int len) argument
3660 skb_try_make_writable(struct sk_buff *skb, unsigned int write_len) argument
3667 __skb_cow(struct sk_buff *skb, unsigned int headroom, int cloned) argument
3693 skb_cow(struct sk_buff *skb, unsigned int headroom) argument
3708 skb_cow_head(struct sk_buff *skb, unsigned int headroom) argument
3723 skb_padto(struct sk_buff *skb, unsigned int len) argument
3742 __skb_put_padto(struct sk_buff *skb, unsigned int len, bool free_on_error) argument
3767 skb_put_padto(struct sk_buff *skb, unsigned int len) argument
3775 skb_add_data(struct sk_buff *skb, struct iov_iter *from, int copy) argument
3794 skb_can_coalesce(struct sk_buff *skb, int i, const struct page *page, int off) argument
3808 __skb_linearize(struct sk_buff *skb) argument
3820 skb_linearize(struct sk_buff *skb) argument
3832 skb_has_shared_frag(const struct sk_buff *skb) argument
3845 skb_linearize_cow(struct sk_buff *skb) argument
3852 __skb_postpull_rcsum(struct sk_buff *skb, const void *start, unsigned int len, unsigned int off) argument
3873 skb_postpull_rcsum(struct sk_buff *skb, const void *start, unsigned int len) argument
3885 __skb_postpush_rcsum(struct sk_buff *skb, const void *start, unsigned int len, unsigned int off) argument
3902 skb_postpush_rcsum(struct sk_buff *skb, const void *start, unsigned int len) argument
3921 skb_push_rcsum(struct sk_buff *skb, unsigned int len) argument
3939 pskb_trim_rcsum(struct sk_buff *skb, unsigned int len) argument
3946 __skb_trim_rcsum(struct sk_buff *skb, unsigned int len) argument
3954 __skb_grow_rcsum(struct sk_buff *skb, unsigned int len) argument
4013 skb_has_frag_list(const struct sk_buff *skb) argument
4018 skb_frag_list_init(struct sk_buff *skb) argument
4062 skb_free_datagram_locked(struct sock *sk, struct sk_buff *skb) argument
4129 __skb_header_pointer(const struct sk_buff *skb, int offset, int len, const void *data, int hlen, void *buffer) argument
4142 skb_header_pointer(const struct sk_buff *skb, int offset, int len, void *buffer) argument
4149 skb_pointer_if_linear(const struct sk_buff *skb, int offset, int len) argument
4166 skb_needs_linearize(struct sk_buff *skb, netdev_features_t features) argument
4174 skb_copy_from_linear_data(const struct sk_buff *skb, void *to, const unsigned int len) argument
4181 skb_copy_from_linear_data_offset(const struct sk_buff *skb, const int offset, void *to, const unsigned int len) argument
4188 skb_copy_to_linear_data(struct sk_buff *skb, const void *from, const unsigned int len) argument
4195 skb_copy_to_linear_data_offset(struct sk_buff *skb, const int offset, const void *from, const unsigned int len) argument
4205 skb_get_ktime(const struct sk_buff *skb) argument
4219 skb_get_timestamp(const struct sk_buff *skb, struct __kernel_old_timeval *stamp) argument
4225 skb_get_new_timestamp(const struct sk_buff *skb, struct __kernel_sock_timeval *stamp) argument
4234 skb_get_timestampns(const struct sk_buff *skb, struct __kernel_old_timespec *stamp) argument
4243 skb_get_new_timestampns(const struct sk_buff *skb, struct __kernel_timespec *stamp) argument
4252 __net_timestamp(struct sk_buff *skb) argument
4263 skb_set_delivery_time(struct sk_buff *skb, ktime_t kt, bool mono) argument
4275 skb_clear_delivery_time(struct sk_buff *skb) argument
4286 skb_clear_tstamp(struct sk_buff *skb) argument
4294 skb_tstamp(const struct sk_buff *skb) argument
4302 skb_tstamp_cond(const struct sk_buff *skb, bool cond) argument
4313 skb_metadata_len(const struct sk_buff *skb) argument
4318 skb_metadata_end(const struct sk_buff *skb) argument
4375 skb_metadata_set(struct sk_buff *skb, u8 meta_len) argument
4380 skb_metadata_clear(struct sk_buff *skb) argument
4394 skb_clone_tx_timestamp(struct sk_buff *skb) argument
4398 skb_defer_rx_timestamp(struct sk_buff *skb) argument
4450 skb_tx_timestamp(struct sk_buff *skb) argument
4469 skb_csum_unnecessary(const struct sk_buff *skb) argument
4493 skb_checksum_complete(struct sk_buff *skb) argument
4499 __skb_decr_checksum_unnecessary(struct sk_buff *skb) argument
4509 __skb_incr_checksum_unnecessary(struct sk_buff *skb) argument
4520 __skb_reset_checksum_unnecessary(struct sk_buff *skb) argument
4533 __skb_checksum_validate_needed(struct sk_buff *skb, bool zero_okay, __sum16 check) argument
4557 skb_checksum_complete_unset(struct sk_buff *skb) argument
4572 __skb_checksum_validate_complete(struct sk_buff *skb, bool complete, __wsum psum) argument
4596 null_compute_pseudo(struct sk_buff *skb, int proto) argument
4638 __skb_checksum_convert_check(struct sk_buff *skb) argument
4643 __skb_checksum_convert(struct sk_buff *skb, __wsum pseudo) argument
4655 skb_remcsum_adjust_partial(struct sk_buff *skb, void *ptr, u16 start, u16 offset) argument
4668 skb_remcsum_process(struct sk_buff *skb, void *ptr, int start, int offset, bool nopartial) argument
4689 skb_nfct(const struct sk_buff *skb) argument
4698 skb_get_nfct(const struct sk_buff *skb) argument
4707 skb_set_nfct(struct sk_buff *skb, unsigned long nfct) argument
4759 skb_ext_put(struct sk_buff *skb) argument
4789 skb_ext_exist(const struct sk_buff *skb, enum skb_ext_id id) argument
4794 skb_ext_del(struct sk_buff *skb, enum skb_ext_id id) argument
4800 skb_ext_find(const struct sk_buff *skb, enum skb_ext_id id) argument
4811 skb_ext_reset(struct sk_buff *skb) argument
4819 skb_has_extensions(struct sk_buff *skb) argument
4824 skb_ext_put(struct sk_buff *skb) argument
4825 skb_ext_reset(struct sk_buff *skb) argument
4826 skb_ext_del(struct sk_buff *skb, int unused) argument
4829 skb_has_extensions(struct sk_buff *skb) argument
4832 nf_reset_ct(struct sk_buff *skb) argument
4840 nf_reset_trace(struct sk_buff *skb) argument
4847 ipvs_reset(struct sk_buff *skb) argument
4883 skb_init_secmark(struct sk_buff *skb) argument
4891 skb_init_secmark(struct sk_buff *skb) argument
4895 secpath_exists(const struct sk_buff *skb) argument
4904 skb_irq_freeable(const struct sk_buff *skb) argument
4913 skb_set_queue_mapping(struct sk_buff *skb, u16 queue_mapping) argument
4918 skb_get_queue_mapping(const struct sk_buff *skb) argument
4928 skb_record_rx_queue(struct sk_buff *skb, u16 rx_queue) argument
4933 skb_get_rx_queue(const struct sk_buff *skb) argument
4938 skb_rx_queue_recorded(const struct sk_buff *skb) argument
4943 skb_set_dst_pending_confirm(struct sk_buff *skb, u32 val) argument
4948 skb_get_dst_pending_confirm(const struct sk_buff *skb) argument
4953 skb_sec_path(const struct sk_buff *skb) argument
4962 skb_is_gso(const struct sk_buff *skb) argument
4968 skb_is_gso_v6(const struct sk_buff *skb) argument
4974 skb_is_gso_sctp(const struct sk_buff *skb) argument
4980 skb_is_gso_tcp(const struct sk_buff *skb) argument
4985 skb_gso_reset(struct sk_buff *skb) argument
5010 skb_warn_if_lro(const struct sk_buff *skb) argument
5024 skb_forward_csum(struct sk_buff *skb) argument
5039 skb_checksum_none_assert(const struct sk_buff *skb) argument
5060 skb_head_is_locked(const struct sk_buff *skb) argument
5074 lco_csum(struct sk_buff *skb) argument
5090 skb_is_redirected(const struct sk_buff *skb) argument
5095 skb_set_redirected(struct sk_buff *skb, bool from_ingress) argument
5105 skb_reset_redirect(struct sk_buff *skb) argument
5110 skb_set_redirected_noclear(struct sk_buff *skb, bool from_ingress) argument
5119 skb_csum_is_sctp(struct sk_buff *skb) argument
5128 skb_reset_csum_not_inet(struct sk_buff *skb) argument
5136 skb_set_kcov_handle(struct sk_buff *skb, const u64 kcov_handle) argument
5144 skb_get_kcov_handle(struct sk_buff *skb) argument
5153 skb_mark_for_recycle(struct sk_buff *skb) argument
[all...]
/linux-master/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) argument
33 struct dst_entry *dst = skb_dst(skb);
35 - skb_headroom(skb);
36 int ntail = dst->dev->needed_tailroom - skb_tailroom(skb);
45 return pskb_expand_head(skb, nhead, ntail, GFP_ATOMIC);
52 static struct dst_entry *skb_dst_pop(struct sk_buff *skb) argument
54 struct dst_entry *child = dst_clone(xfrm_dst_child(skb_dst(skb)));
56 skb_dst_drop(skb);
65 xfrm4_transport_output(struct xfrm_state *x, struct sk_buff *skb) argument
82 mip6_rthdr_offset(struct sk_buff *skb, u8 **nexthdr, int type) argument
142 xfrm6_hdr_offset(struct xfrm_state *x, struct sk_buff *skb, u8 **prevhdr) argument
163 xfrm6_transport_output(struct xfrm_state *x, struct sk_buff *skb) argument
194 xfrm6_ro_output(struct xfrm_state *x, struct sk_buff *skb) argument
224 xfrm4_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) argument
273 xfrm4_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) argument
319 xfrm6_tunnel_encap_add(struct xfrm_state *x, struct sk_buff *skb) argument
354 xfrm6_beet_encap_add(struct xfrm_state *x, struct sk_buff *skb) argument
405 xfrm4_prepare_output(struct xfrm_state *x, struct sk_buff *skb) argument
427 xfrm6_prepare_output(struct xfrm_state *x, struct sk_buff *skb) argument
453 xfrm_outer_mode_output(struct xfrm_state *x, struct sk_buff *skb) argument
483 pktgen_xfrm_outer_mode_output(struct xfrm_state *x, struct sk_buff *skb) argument
490 xfrm_output_one(struct sk_buff *skb, int err) argument
584 xfrm_output_resume(struct sock *sk, struct sk_buff *skb, int err) argument
613 xfrm_output2(struct net *net, struct sock *sk, struct sk_buff *skb) argument
618 xfrm_output_gso(struct net *net, struct sock *sk, struct sk_buff *skb) argument
656 xfrm_get_inner_ipproto(struct sk_buff *skb, struct xfrm_state *x) argument
703 xfrm_output(struct sock *sk, struct sk_buff *skb) argument
783 xfrm4_tunnel_check_size(struct sk_buff *skb) argument
810 xfrm4_extract_output(struct xfrm_state *x, struct sk_buff *skb) argument
831 xfrm6_tunnel_check_size(struct sk_buff *skb) argument
862 xfrm6_extract_output(struct xfrm_state *x, struct sk_buff *skb) argument
881 xfrm_inner_extract_output(struct xfrm_state *x, struct sk_buff *skb) argument
893 xfrm_local_error(struct sk_buff *skb, int mtu) argument
[all...]
/linux-master/net/x25/
H A Dx25_dev.c12 * 2000-09-04 Henner Eisen Prevent freeing a dangling skb.
26 static int x25_receive_data(struct sk_buff *skb, struct x25_neigh *nb) argument
32 if (!pskb_may_pull(skb, X25_STD_MIN_LEN))
35 frametype = skb->data[2];
36 lci = ((skb->data[0] << 8) & 0xF00) + ((skb->data[1] << 0) & 0x0FF);
43 x25_link_control(skb, nb, frametype);
53 skb_reset_transport_header(skb);
56 queued = x25_process_rx_frame(sk, skb);
58 queued = !sk_add_backlog(sk, skb, READ_ONC
94 x25_lapb_receive_frame(struct sk_buff *skb, struct net_device *dev, struct packet_type *ptype, struct net_device *orig_dev) argument
150 struct sk_buff *skb; local
175 struct sk_buff *skb; local
195 x25_send_frame(struct sk_buff *skb, struct x25_neigh *nb) argument
[all...]
/linux-master/net/ipv4/
H A Dip_forward.c43 static bool ip_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu) argument
45 if (skb->len <= mtu)
48 if (unlikely((ip_hdr(skb)->frag_off & htons(IP_DF)) == 0))
52 if (unlikely(IPCB(skb)->frag_max_size > mtu))
55 if (skb->ignore_df)
58 if (skb_is_gso(skb) && skb_gso_validate_network_len(skb, mtu))
65 static int ip_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb) argument
67 struct ip_options *opt = &(IPCB(skb)->opt);
70 if (skb
83 ip_forward(struct sk_buff *skb) argument
[all...]
H A Dxfrm4_output.c17 static int __xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument
20 struct xfrm_state *x = skb_dst(skb)->xfrm;
23 IPCB(skb)->flags |= IPSKB_REROUTED;
24 return dst_output(net, sk, skb);
28 return xfrm_output(sk, skb);
31 int xfrm4_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument
34 net, sk, skb, skb->dev, skb_dst(skb)->dev,
36 !(IPCB(skb)
39 xfrm4_local_error(struct sk_buff *skb, u32 mtu) argument
[all...]
/linux-master/net/llc/
H A Dllc_s_ac.c32 * @skb: the event to forward
37 int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb) argument
39 llc_sap_rtn_pdu(sap, skb);
46 * @skb: the event to send
52 int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb) argument
54 struct llc_sap_state_ev *ev = llc_sap_ev(skb);
57 llc_pdu_header_init(skb, LLC_PDU_TYPE_U, ev->saddr.lsap,
59 llc_pdu_init_as_ui_cmd(skb);
60 rc = llc_mac_hdr_init(skb, ev->saddr.mac, ev->daddr.mac);
62 skb_get(skb);
77 llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb) argument
101 llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb) argument
133 llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb) argument
149 llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb) argument
186 llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb) argument
199 llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb) argument
213 llc_sap_action_test_ind(struct llc_sap *sap, struct sk_buff *skb) argument
[all...]
/linux-master/include/net/
H A Dx25device.h10 static inline __be16 x25_type_trans(struct sk_buff *skb, struct net_device *dev) argument
12 skb->dev = dev;
13 skb_reset_mac_header(skb);
14 skb->pkt_type = PACKET_HOST;
H A Dllc_s_ac.h30 typedef int (*llc_sap_action_t)(struct llc_sap *sap, struct sk_buff *skb);
32 int llc_sap_action_unitdata_ind(struct llc_sap *sap, struct sk_buff *skb);
33 int llc_sap_action_send_ui(struct llc_sap *sap, struct sk_buff *skb);
34 int llc_sap_action_send_xid_c(struct llc_sap *sap, struct sk_buff *skb);
35 int llc_sap_action_send_xid_r(struct llc_sap *sap, struct sk_buff *skb);
36 int llc_sap_action_send_test_c(struct llc_sap *sap, struct sk_buff *skb);
37 int llc_sap_action_send_test_r(struct llc_sap *sap, struct sk_buff *skb);
38 int llc_sap_action_report_status(struct llc_sap *sap, struct sk_buff *skb);
39 int llc_sap_action_xid_ind(struct llc_sap *sap, struct sk_buff *skb);
40 int llc_sap_action_test_ind(struct llc_sap *sap, struct sk_buff *skb);
[all...]
/linux-master/tools/testing/selftests/bpf/progs/
H A Dtest_trace_ext_tracing.c10 int BPF_PROG(fentry, struct sk_buff *skb) argument
12 fentry_called = skb->len;
19 int BPF_PROG(fexit, struct sk_buff *skb) argument
21 fexit_called = skb->len;
H A Dtest_time_tai.c10 int time_tai(struct __sk_buff *skb) argument
18 /* Save TAI timestamps (Note: skb->hwtstamp is read-only) */
19 skb->tstamp = ts1;
20 skb->cb[0] = ts2 & 0xffffffff;
21 skb->cb[1] = ts2 >> 32;
H A Dtest_global_func7.c9 void foo(struct __sk_buff *skb) argument
11 skb->tc_index = 0;
16 int global_func7(struct __sk_buff *skb) argument
18 foo(skb);
H A Dtest_lwt_redirect.c12 static int prepend_dummy_mac(struct __sk_buff *skb) argument
17 if (bpf_skb_change_head(skb, ETH_HLEN, 0))
20 if (bpf_skb_store_bytes(skb, 0, mac, sizeof(mac), 0))
27 static int get_redirect_target(struct __sk_buff *skb) argument
30 void *start = (void *)(long)skb->data;
31 void *end = (void *)(long)skb->data_end;
41 int test_lwt_redirect_in(struct __sk_buff *skb) argument
43 int target = get_redirect_target(skb);
48 if (prepend_dummy_mac(skb))
55 int test_lwt_redirect_out(struct __sk_buff *skb) argument
69 test_lwt_redirect_out_nomac(struct __sk_buff *skb) argument
80 test_lwt_redirect_in_nomac(struct __sk_buff *skb) argument
[all...]
H A Dtest_tc_bpf.c11 int cls(struct __sk_buff *skb) argument
18 int pkt_ptr(struct __sk_buff *skb) argument
20 struct iphdr *iph = (void *)(long)skb->data + sizeof(struct ethhdr);
22 if ((long)(iph + 1) > (long)skb->data_end)
H A Dtailcall_bpf2bpf1.c14 int classifier_##x(struct __sk_buff *skb) \
22 int subprog_tail(struct __sk_buff *skb) argument
24 bpf_tail_call_static(skb, &jmp_table, 0);
26 return skb->len * 2;
30 int entry(struct __sk_buff *skb) argument
32 bpf_tail_call_static(skb, &jmp_table, 1);
34 return subprog_tail(skb);
H A Dsockmap_parse_prog.c6 int bpf_prog1(struct __sk_buff *skb) argument
8 void *data_end = (void *)(long) skb->data_end;
9 void *data = (void *)(long) skb->data;
14 err = bpf_skb_pull_data(skb, 10);
18 data_end = (void *)(long)skb->data_end;
19 data = (void *)(long)skb->data;
30 return skb->len;
/linux-master/net/dsa/
H A Dtag_mtk.c23 static struct sk_buff *mtk_tag_xmit(struct sk_buff *skb, argument
30 skb_set_queue_mapping(skb, dp->index);
38 switch (skb->protocol) {
47 skb_push(skb, MTK_HDR_LEN);
48 dsa_alloc_etype_header(skb, MTK_HDR_LEN);
51 mtk_tag = dsa_etype_header_pos_tx(skb);
65 return skb;
68 static struct sk_buff *mtk_tag_rcv(struct sk_buff *skb, struct net_device *dev) argument
74 if (unlikely(!pskb_may_pull(skb, MTK_HDR_LEN)))
77 phdr = dsa_etype_header_pos_rx(skb);
[all...]
/linux-master/net/rose/
H A Drose_loopback.c34 int rose_loopback_queue(struct sk_buff *skb, struct rose_neigh *neigh) argument
39 skbn = skb_clone(skb, GFP_ATOMIC);
42 consume_skb(skb);
48 kfree_skb(skb);
61 struct sk_buff *skb; local
70 skb = skb_dequeue(&loopback_queue);
71 if (!skb)
73 if (skb->len < ROSE_MIN_LEN) {
74 kfree_skb(skb);
77 lci_i = ((skb
125 struct sk_buff *skb; local
[all...]
/linux-master/net/ieee802154/6lowpan/
H A Drx.c21 static int lowpan_give_skb_to_device(struct sk_buff *skb) argument
23 skb->protocol = htons(ETH_P_IPV6);
24 skb->dev->stats.rx_packets++;
25 skb->dev->stats.rx_bytes += skb->len;
27 return netif_rx(skb);
30 static int lowpan_rx_handlers_result(struct sk_buff *skb, lowpan_rx_result res) argument
40 kfree_skb(skb);
46 return lowpan_give_skb_to_device(skb);
64 static lowpan_rx_result lowpan_rx_h_frag(struct sk_buff *skb) argument
83 lowpan_iphc_decompress(struct sk_buff *skb) argument
93 lowpan_rx_h_iphc(struct sk_buff *skb) argument
112 lowpan_rx_h_ipv6(struct sk_buff *skb) argument
127 lowpan_rx_h_esc(struct sk_buff *skb) argument
143 lowpan_rx_h_hc1(struct sk_buff *skb) argument
159 lowpan_rx_h_dff(struct sk_buff *skb) argument
175 lowpan_rx_h_bc0(struct sk_buff *skb) argument
191 lowpan_rx_h_mesh(struct sk_buff *skb) argument
202 lowpan_invoke_rx_handlers(struct sk_buff *skb) argument
251 lowpan_rx_h_check(struct sk_buff *skb) argument
271 lowpan_rcv(struct sk_buff *skb, struct net_device *wdev, struct packet_type *pt, struct net_device *orig_wdev) argument
[all...]
/linux-master/net/sctp/
H A Doffload.c27 static __le32 sctp_gso_make_checksum(struct sk_buff *skb) argument
29 skb->ip_summed = CHECKSUM_NONE;
30 skb->csum_not_inet = 0;
34 SKB_GSO_CB(skb)->csum = (__force __wsum)~0;
35 SKB_GSO_CB(skb)->csum_start = skb_headroom(skb) + skb->len;
36 return sctp_compute_cksum(skb, skb_transport_offset(skb));
39 static struct sk_buff *sctp_gso_segment(struct sk_buff *skb, argument
[all...]
/linux-master/include/net/netfilter/
H A Dbr_netfilter.h9 static inline struct nf_bridge_info *nf_bridge_alloc(struct sk_buff *skb) argument
12 struct nf_bridge_info *b = skb_ext_add(skb, SKB_EXT_BRIDGE_NF);
23 void nf_bridge_update_protocol(struct sk_buff *skb);
26 struct sk_buff *skb, struct net_device *indev,
31 unsigned int nf_bridge_encap_header_len(const struct sk_buff *skb);
33 static inline void nf_bridge_push_encap_header(struct sk_buff *skb) argument
35 unsigned int len = nf_bridge_encap_header_len(skb);
37 skb_push(skb, len);
38 skb->network_header -= len;
41 int br_nf_pre_routing_finish_bridge(struct net *net, struct sock *sk, struct sk_buff *skb);
64 br_validate_ipv6(struct net *net, struct sk_buff *skb) argument
70 br_nf_pre_routing_ipv6(void *priv, struct sk_buff *skb, const struct nf_hook_state *state) argument
[all...]

Completed in 197 milliseconds

1234567891011>>