Searched refs:skb (Results 1 - 25 of 3407) sorted by last modified time

1234567891011>>

/linux-master/tools/testing/selftests/bpf/bpf_testmod/
H A Dbpf_testmod.c450 __bpf_kfunc void bpf_kfunc_call_test_pass_ctx(struct __sk_buff *skb) argument
/linux-master/net/tipc/
H A Dmsg.c70 struct sk_buff *skb; local
72 skb = alloc_skb_fclone(BUF_OVERHEAD + size, gfp);
73 if (skb) {
74 skb_reserve(skb, BUF_HEADROOM);
75 skb_put(skb, size);
76 skb->next = NULL;
78 return skb;
159 /* Either the input skb ownership is transferred to headskb
160 * or the input skb is freed, clear the reference to avoid
208 struct sk_buff *skb; local
258 struct sk_buff *skb = *_skb; local
310 tipc_msg_fragment(struct sk_buff *skb, const struct tipc_msg *hdr, int pktmax, struct sk_buff_head *frags) argument
379 struct sk_buff *skb; local
520 tipc_msg_try_bundle(struct sk_buff *tskb, struct sk_buff **skb, u32 mss, u32 dnode, bool *new_bundle) argument
581 tipc_msg_extract(struct sk_buff *skb, struct sk_buff **iskb, int *pos) argument
625 tipc_msg_reverse(u32 own_node, struct sk_buff **skb, int err) argument
679 struct sk_buff *skb, *_skb; local
701 tipc_msg_lookup_dest(struct net *net, struct sk_buff *skb, int *err) argument
741 struct sk_buff *skb, *tmp = NULL; local
766 struct sk_buff *skb, *_skb; local
804 struct sk_buff *skb, *_skb; local
823 __tipc_skb_queue_sorted(struct sk_buff_head *list, u16 seqno, struct sk_buff *skb) argument
850 tipc_skb_reject(struct net *net, int err, struct sk_buff *skb, struct sk_buff_head *xmitq) argument
[all...]
/linux-master/net/rxrpc/
H A Drxkad.c408 static int rxkad_verify_packet_1(struct rxrpc_call *call, struct sk_buff *skb, argument
413 struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
423 return rxrpc_abort_eproto(call, skb, RXKADSEALEDINCON,
430 ret = skb_to_sgvec(skb, sg, sp->offset, 8);
444 if (skb_copy_bits(skb, sp->offset, &sechdr, sizeof(sechdr)) < 0)
445 return rxrpc_abort_eproto(call, skb, RXKADDATALEN,
457 return rxrpc_abort_eproto(call, skb, RXKADSEALEDINCON,
460 return rxrpc_abort_eproto(call, skb, RXKADDATALEN,
471 static int rxkad_verify_packet_2(struct rxrpc_call *call, struct sk_buff *skb, argument
477 struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
552 rxkad_verify_packet(struct rxrpc_call *call, struct sk_buff *skb) argument
788 rxkad_respond_to_challenge(struct rxrpc_connection *conn, struct sk_buff *skb) argument
860 rxkad_decrypt_ticket(struct rxrpc_connection *conn, struct key *server_key, struct sk_buff *skb, void *ticket, size_t ticket_len, struct rxrpc_crypt *_session_key, time64_t *_expiry) argument
1022 rxkad_verify_response(struct rxrpc_connection *conn, struct sk_buff *skb) argument
[all...]
H A Dinsecure.c30 static int none_verify_packet(struct rxrpc_call *call, struct sk_buff *skb) argument
32 struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
43 struct sk_buff *skb)
45 return rxrpc_abort_conn(conn, skb, RX_PROTOCOL_ERROR, -EPROTO,
50 struct sk_buff *skb)
52 return rxrpc_abort_conn(conn, skb, RX_PROTOCOL_ERROR, -EPROTO,
42 none_respond_to_challenge(struct rxrpc_connection *conn, struct sk_buff *skb) argument
49 none_verify_response(struct rxrpc_connection *conn, struct sk_buff *skb) argument
H A Dconn_object.c97 struct sk_buff *skb)
100 struct rxrpc_skb_priv *sp = rxrpc_skb(skb);
95 rxrpc_find_client_connection_rcu(struct rxrpc_local *local, struct sockaddr_rxrpc *srx, struct sk_buff *skb) argument
/linux-master/net/nsh/
H A Dnsh.c15 int nsh_push(struct sk_buff *skb, const struct nshhdr *pushed_nh) argument
21 if (skb->mac_len) {
24 next_proto = tun_p_from_eth_p(skb->protocol);
30 if (skb_cow_head(skb, length) < 0)
33 skb_push(skb, length);
34 nh = (struct nshhdr *)(skb->data);
37 skb_postpush_rcsum(skb, nh, length);
39 skb->protocol = htons(ETH_P_NSH);
40 skb_reset_mac_header(skb);
41 skb_reset_network_header(skb);
48 nsh_pop(struct sk_buff *skb) argument
77 nsh_gso_segment(struct sk_buff *skb, netdev_features_t features) argument
[all...]
/linux-master/net/mptcp/
H A Dprotocol.c114 static void mptcp_drop(struct sock *sk, struct sk_buff *skb) argument
116 sk_drops_add(sk, skb);
117 __kfree_skb(skb);
147 * for the delta, but the later skb free will restore a non
186 static void mptcp_rfree(struct sk_buff *skb) argument
188 unsigned int len = skb->truesize;
189 struct sock *sk = skb->sk;
195 void mptcp_set_owner_r(struct sk_buff *skb, struct sock *sk) argument
197 skb_orphan(skb);
198 skb
208 mptcp_data_queue_ofo(struct mptcp_sock *msk, struct sk_buff *skb) argument
337 __mptcp_move_skb(struct mptcp_sock *msk, struct sock *ssk, struct sk_buff *skb, unsigned int offset, size_t copy_len) argument
648 struct sk_buff *skb; local
716 struct sk_buff *skb, *tail; local
945 mptcp_skb_can_collapse_to(u64 write_seq, const struct sk_buff *skb, const struct mptcp_ext *mpext) argument
1142 __mptcp_add_ext(struct sk_buff *skb, gfp_t gfp) argument
1154 struct sk_buff *skb; local
1173 struct sk_buff *skb; local
1198 mptcp_update_data_checksum(struct sk_buff *skb, int added) argument
1236 struct sk_buff *skb; local
1267 tcp_mark_push(tcp_sk(ssk), skb); local
1274 tcp_mark_push(tcp_sk(ssk), skb); local
1923 struct sk_buff *skb, *tmp; local
2137 const struct sk_buff *skb; local
[all...]
/linux-master/net/l2tp/
H A Dl2tp_eth.c68 static netdev_tx_t l2tp_eth_dev_xmit(struct sk_buff *skb, struct net_device *dev) argument
72 unsigned int len = skb->len;
73 int ret = l2tp_xmit_skb(session, skb);
117 static void l2tp_eth_dev_recv(struct l2tp_session *session, struct sk_buff *skb, int data_len) argument
122 if (!pskb_may_pull(skb, ETH_HLEN))
125 secpath_reset(skb);
128 skb->ip_summed = CHECKSUM_NONE;
131 skb_clear_hash(skb);
133 skb_dst_drop(skb);
134 nf_reset_ct(skb);
[all...]
/linux-master/net/ipv6/
H A Dudp_offload.c19 static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, argument
33 if (skb->encapsulation && skb_shinfo(skb)->gso_type &
35 segs = skb_udp_tunnel_segment(skb, features, true);
40 if (!(skb_shinfo(skb)->gso_type & (SKB_GSO_UDP | SKB_GSO_UDP_L4)))
43 if (!pskb_may_pull(skb, sizeof(struct udphdr)))
46 if (skb_shinfo(skb)->gso_type & SKB_GSO_UDP_L4)
47 return __udp_gso_segment(skb, features, true);
49 mss = skb_shinfo(skb)->gso_size;
50 if (unlikely(skb
116 udp6_gro_lookup_skb(struct sk_buff *skb, __be16 sport, __be16 dport) argument
131 udp6_gro_receive(struct list_head *head, struct sk_buff *skb) argument
165 udp6_gro_complete(struct sk_buff *skb, int nhoff) argument
[all...]
H A Dudp.c58 #include <trace/events/skb.h>
167 struct sk_buff *skb)
185 result = inet6_lookup_reuseport(net, sk, skb, sizeof(struct udphdr),
212 struct sk_buff *skb)
226 hslot2, skb);
233 sk = inet6_lookup_run_sk_lookup(net, IPPROTO_UDP, skb, sizeof(struct udphdr),
253 hslot2, skb);
261 static struct sock *__udp6_lib_lookup_skb(struct sk_buff *skb, argument
265 const struct ipv6hdr *iph = ipv6_hdr(skb);
267 return __udp6_lib_lookup(dev_net(skb
163 udp6_lib_lookup2(struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, unsigned int hnum, int dif, int sdif, struct udp_hslot *hslot2, struct sk_buff *skb) argument
208 __udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport, const struct in6_addr *daddr, __be16 dport, int dif, int sdif, struct udp_table *udptable, struct sk_buff *skb) argument
272 udp6_lib_lookup_skb(const struct sk_buff *skb, __be16 sport, __be16 dport) argument
309 udp6_skb_len(struct sk_buff *skb) argument
324 struct sk_buff *skb; local
461 __udp6_lib_err_encap_no_sk(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info) argument
500 __udp6_lib_err_encap(struct net *net, const struct ipv6hdr *hdr, int offset, struct udphdr *uh, struct udp_table *udptable, struct sock *sk, struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, __be32 info) argument
555 __udp6_lib_err(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info, struct udp_table *udptable) argument
634 __udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
670 udpv6_err(struct sk_buff *skb, struct inet6_skb_parm *opt, u8 type, u8 code, int offset, __be32 info) argument
678 udpv6_queue_rcv_one_skb(struct sock *sk, struct sk_buff *skb) argument
770 udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
816 udp6_csum_zero_error(struct sk_buff *skb) argument
830 __udp6_lib_mcast_deliver(struct net *net, struct sk_buff *skb, const struct in6_addr *saddr, const struct in6_addr *daddr, struct udp_table *udptable, int proto) argument
911 udp6_unicast_rcv_skb(struct sock *sk, struct sk_buff *skb, struct udphdr *uh) argument
927 __udp6_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, int proto) argument
1079 udp_v6_early_demux(struct sk_buff *skb) argument
1121 udpv6_rcv(struct sk_buff *skb) argument
1172 udp6_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb, const struct in6_addr *saddr, const struct in6_addr *daddr, int len) argument
1213 udp_v6_send_skb(struct sk_buff *skb, struct flowi6 *fl6, struct inet_cork *cork) argument
1300 struct sk_buff *skb; local
1572 struct sk_buff *skb; local
[all...]
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...]
/linux-master/net/ipv4/
H A Dudp_offload.c16 static struct sk_buff *__skb_udp_tunnel_segment(struct sk_buff *skb, argument
18 struct sk_buff *(*gso_inner_segment)(struct sk_buff *skb,
22 int tnl_hlen = skb_inner_mac_header(skb) - skb_transport_header(skb);
25 struct udphdr *uh = udp_hdr(skb);
26 u16 mac_offset = skb->mac_header;
27 __be16 protocol = skb->protocol;
28 u16 mac_len = skb->mac_len;
33 if (unlikely(!pskb_may_pull(skb, tnl_hlen)))
42 if (skb_shinfo(skb)
153 skb_udp_tunnel_segment(struct sk_buff *skb, netdev_features_t features, bool is_ipv6) argument
250 __udp_gso_segment_list(struct sk_buff *skb, netdev_features_t features, bool is_ipv6) argument
376 udp4_ufo_fragment(struct sk_buff *skb, netdev_features_t features) argument
436 skb_gro_receive_list(struct sk_buff *p, struct sk_buff *skb) argument
465 udp_gro_receive_segment(struct list_head *head, struct sk_buff *skb) argument
556 udp_gro_receive(struct list_head *head, struct sk_buff *skb, struct udphdr *uh, struct sock *sk) argument
626 udp4_gro_lookup_skb(struct sk_buff *skb, __be16 sport, __be16 dport) argument
641 udp4_gro_receive(struct list_head *head, struct sk_buff *skb) argument
674 udp_gro_complete_segment(struct sk_buff *skb) argument
691 udp_gro_complete(struct sk_buff *skb, int nhoff, udp_lookup_t lookup) argument
729 udp4_gro_complete(struct sk_buff *skb, int nhoff) argument
[all...]
H A Dudp.c111 #include <trace/events/skb.h>
426 struct sk_buff *skb)
444 result = inet_lookup_reuseport(net, sk, skb, sizeof(struct udphdr),
472 int sdif, struct udp_table *udptable, struct sk_buff *skb)
486 hslot2, skb);
493 sk = inet_lookup_run_sk_lookup(net, IPPROTO_UDP, skb, sizeof(struct udphdr),
513 hslot2, skb);
521 static inline struct sock *__udp4_lib_lookup_skb(struct sk_buff *skb, argument
525 const struct iphdr *iph = ip_hdr(skb);
527 return __udp4_lib_lookup(dev_net(skb
421 udp4_lib_lookup2(struct net *net, __be32 saddr, __be16 sport, __be32 daddr, unsigned int hnum, int dif, int sdif, struct udp_hslot *hslot2, struct sk_buff *skb) argument
470 __udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, __be32 daddr, __be16 dport, int dif, int sdif, struct udp_table *udptable, struct sk_buff *skb) argument
532 udp4_lib_lookup_skb(const struct sk_buff *skb, __be16 sport, __be16 dport) argument
608 __udp4_lib_err_encap_no_sk(struct sk_buff *skb, u32 info) argument
644 __udp4_lib_err_encap(struct net *net, const struct iphdr *iph, struct udphdr *uh, struct udp_table *udptable, struct sock *sk, struct sk_buff *skb, u32 info) argument
706 __udp4_lib_err(struct sk_buff *skb, u32 info, struct udp_table *udptable) argument
800 udp_err(struct sk_buff *skb, u32 info) argument
827 udp4_hwcsum(struct sk_buff *skb, __be32 src, __be32 dst) argument
869 udp_set_csum(bool nocheck, struct sk_buff *skb, __be32 saddr, __be32 daddr, int len) argument
892 udp_send_skb(struct sk_buff *skb, struct flowi4 *fl4, struct inet_cork *cork) argument
991 struct sk_buff *skb; local
1062 struct sk_buff *skb; local
1349 udp_try_make_stateless(struct sk_buff *skb) argument
1362 udp_set_dev_scratch(struct sk_buff *skb) argument
1377 udp_skb_csum_unnecessary_set(struct sk_buff *skb) argument
1391 udp_skb_truesize(struct sk_buff *skb) argument
1396 udp_skb_has_head_state(struct sk_buff *skb) argument
1449 udp_skb_destructor(struct sock *sk, struct sk_buff *skb) argument
1457 udp_skb_dtor_locked(struct sock *sk, struct sk_buff *skb) argument
1499 __udp_enqueue_schedule_skb(struct sock *sk, struct sk_buff *skb) argument
1572 struct sk_buff *skb; local
1597 skb_consume_udp(struct sock *sk, struct sk_buff *skb, int len) argument
1618 struct sk_buff *skb; local
1649 struct sk_buff *skb; local
1708 struct sk_buff *skb; local
1768 struct sk_buff *skb; local
1802 struct sk_buff *skb; local
2033 __udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
2077 udp_queue_rcv_one_skb(struct sock *sk, struct sk_buff *skb) argument
2188 udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
2231 __udp4_lib_mcast_deliver(struct net *net, struct sk_buff *skb, struct udphdr *uh, __be32 saddr, __be32 daddr, struct udp_table *udptable, int proto) argument
2301 udp4_csum_init(struct sk_buff *skb, struct udphdr *uh, int proto) argument
2346 udp_unicast_rcv_skb(struct sock *sk, struct sk_buff *skb, struct udphdr *uh) argument
2368 __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, int proto) argument
2542 udp_v4_early_demux(struct sk_buff *skb) argument
2611 udp_rcv(struct sk_buff *skb) argument
[all...]
H A Draw.c137 static int icmp_filter(const struct sock *sk, const struct sk_buff *skb) argument
142 hdr = skb_header_pointer(skb, skb_transport_offset(skb),
163 static int raw_v4_input(struct net *net, struct sk_buff *skb, argument
166 int sdif = inet_sdif(skb);
168 int dif = inet_iif(skb);
186 if ((iph->protocol != IPPROTO_ICMP || !icmp_filter(sk, skb)) &&
188 skb->dev->ifindex, sdif)) {
189 struct sk_buff *clone = skb_clone(skb, GFP_ATOMIC);
200 int raw_local_deliver(struct sk_buff *skb, in argument
208 raw_err(struct sock *sk, struct sk_buff *skb, u32 info) argument
272 raw_icmp_error(struct sk_buff *skb, int protocol, u32 info) argument
296 raw_rcv_skb(struct sock *sk, struct sk_buff *skb) argument
311 raw_rcv(struct sock *sk, struct sk_buff *skb) argument
334 struct sk_buff *skb; local
451 raw_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb) argument
746 struct sk_buff *skb; local
877 struct sk_buff *skb; local
[all...]
H A Dip_output.c26 * Alexander Demenshin: Missing sk/skb free in ip_queue_xmit
39 * silently drop skb instead of failing with -EPERM.
88 ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
100 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) argument
102 struct iphdr *iph = ip_hdr(skb);
106 iph_set_totlen(iph, skb->len);
110 * skb to its handler for processing
112 skb = l3mdev_ip_out(sk, skb);
113 if (unlikely(!skb))
123 ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) argument
149 ip_build_and_send_pkt(struct sk_buff *skb, const struct sock *sk, __be32 saddr, __be32 daddr, struct ip_options_rcu *opt, u8 tos) argument
198 ip_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb) argument
247 ip_finish_output_gso(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned int mtu) argument
295 __ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument
316 ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument
332 ip_mc_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument
366 ip_mc_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument
426 ip_output(struct net *net, struct sock *sk, struct sk_buff *skb) argument
456 __ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl, __u8 tos) argument
547 ip_queue_xmit(struct sock *sk, struct sk_buff *skb, struct flowi *fl) argument
577 ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned int mtu, int (*output)(struct net *, struct sock *, struct sk_buff *)) argument
599 ip_fraglist_init(struct sk_buff *skb, struct iphdr *iph, unsigned int hlen, struct ip_fraglist_iter *iter) argument
619 ip_fraglist_prepare(struct sk_buff *skb, struct ip_fraglist_iter *iter) argument
644 ip_frag_init(struct sk_buff *skb, unsigned int hlen, unsigned int ll_rs, unsigned int mtu, bool DF, struct ip_frag_state *state) argument
679 ip_frag_next(struct sk_buff *skb, struct ip_frag_state *state) argument
762 ip_do_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, int (*output)(struct net *, struct sock *, struct sk_buff *)) argument
934 ip_generic_getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb) argument
951 __ip_append_data(struct sock *sk, struct flowi4 *fl4, struct sk_buff_head *queue, struct inet_cork *cork, struct page_frag *pfrag, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, unsigned int flags) argument
963 struct sk_buff *skb; local
1344 ip_append_data(struct sock *sk, struct flowi4 *fl4, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, struct ipcm_cookie *ipc, struct rtable **rtp, unsigned int flags) argument
1388 struct sk_buff *skb, *tmp_skb; local
1488 ip_send_skb(struct net *net, struct sk_buff *skb) argument
1505 struct sk_buff *skb; local
1522 struct sk_buff *skb; local
1535 ip_make_skb(struct sock *sk, struct flowi4 *fl4, int getfrag(void *from, char *to, int offset, int len, int odd, struct sk_buff *skb), void *from, int length, int transhdrlen, struct ipcm_cookie *ipc, struct rtable **rtp, struct inet_cork *cork, unsigned int flags) argument
1572 ip_reply_glue_bits(void *dptr, char *to, int offset, int len, int odd, struct sk_buff *skb) argument
1586 ip_send_unicast_reply(struct sock *sk, struct sk_buff *skb, const struct ip_options *sopt, __be32 daddr, __be32 saddr, const struct ip_reply_arg *arg, unsigned int len, u64 transmit_time, u32 txhash) argument
[all...]
H A Daf_inet.c1368 struct sk_buff *inet_gso_segment(struct sk_buff *skb, argument
1381 skb_reset_network_header(skb);
1382 nhoff = skb_network_header(skb) - skb_mac_header(skb);
1383 if (unlikely(!pskb_may_pull(skb, sizeof(*iph))))
1386 iph = ip_hdr(skb);
1395 if (unlikely(!pskb_may_pull(skb, ihl)))
1397 __skb_pull(skb, ihl);
1399 encap = SKB_GSO_CB(skb)->encap_level > 0;
1401 features &= skb
1467 ipip_gso_segment(struct sk_buff *skb, netdev_features_t features) argument
1476 inet_gro_receive(struct list_head *head, struct sk_buff *skb) argument
1592 ipip_gro_receive(struct list_head *head, struct sk_buff *skb) argument
1645 inet_gro_complete(struct sk_buff *skb, int nhoff) argument
1677 ipip_gro_complete(struct sk_buff *skb, int nhoff) argument
[all...]
/linux-master/net/core/
H A Dskmsg.c183 /* When the skb owns the memory we free it from consume_skb path. */
184 if (!msg->skb) {
206 consume_skb(msg->skb);
447 if (!msg_rx->skb)
453 if (!msg_rx->skb)
514 struct sk_buff *skb)
519 if (!sk_rmem_schedule(sk, skb, skb->truesize))
525 static int sk_psock_skb_ingress_enqueue(struct sk_buff *skb, argument
533 num_sge = skb_to_sgvec(skb, ms
513 sk_psock_create_ingress_msg(struct sock *sk, struct sk_buff *skb) argument
562 sk_psock_skb_ingress(struct sk_psock *psock, struct sk_buff *skb, u32 off, u32 len) argument
596 sk_psock_skb_ingress_self(struct sk_psock *psock, struct sk_buff *skb, u32 off, u32 len) argument
612 sk_psock_handle_skb(struct sk_psock *psock, struct sk_buff *skb, u32 off, u32 len, bool ingress) argument
646 struct sk_buff *skb = NULL; local
781 struct sk_buff *skb; local
903 sk_psock_skb_redirect(struct sk_psock *from, struct sk_buff *skb) argument
941 sk_psock_tls_verdict_apply(struct sk_buff *skb, struct sk_psock *from, int verdict) argument
955 sk_psock_tls_strp_read(struct sk_psock *psock, struct sk_buff *skb) argument
976 sk_psock_verdict_apply(struct sk_psock *psock, struct sk_buff *skb, int verdict) argument
1055 sk_psock_strp_read(struct strparser *strp, struct sk_buff *skb) argument
1089 sk_psock_strp_parse(struct strparser *strp, struct sk_buff *skb) argument
1178 sk_psock_verdict_recv(struct sock *sk, struct sk_buff *skb) argument
[all...]
H A Dskbuff.c19 * Ray VanTassle : Fixed --skb->lock in free
82 #include <trace/events/skb.h>
190 * @skb: buffer
200 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr, argument
204 msg, addr, skb->len, sz, skb->head, skb->data,
205 (unsigned long)skb->tail, (unsigned long)skb->end,
206 skb
210 skb_over_panic(struct sk_buff *skb, unsigned int sz, void *addr) argument
215 skb_under_panic(struct sk_buff *skb, unsigned int sz, void *addr) argument
299 struct sk_buff *skb; local
345 struct sk_buff *skb; local
362 __finalize_skb_around(struct sk_buff *skb, void *data, unsigned int size) argument
387 __slab_build_skb(struct sk_buff *skb, void *data, unsigned int *size) argument
412 struct sk_buff *skb; local
428 __build_skb_around(struct sk_buff *skb, void *data, unsigned int frag_size) argument
464 struct sk_buff *skb; local
481 struct sk_buff *skb = __build_skb(data, frag_size); local
485 skb_propagate_pfmemalloc(virt_to_head_page(data), skb); local
497 build_skb_around(struct sk_buff *skb, void *data, unsigned int frag_size) argument
507 skb_propagate_pfmemalloc(virt_to_head_page(data), skb); local
525 struct sk_buff *skb; local
549 struct sk_buff *skb = __napi_build_skb(data, frag_size); local
553 skb_propagate_pfmemalloc(virt_to_head_page(data), skb); local
643 struct sk_buff *skb; local
720 struct sk_buff *skb; local
794 struct sk_buff *skb; local
865 skb_add_rx_frag_netmem(struct sk_buff *skb, int i, netmem_ref netmem, int off, int size, unsigned int truesize) argument
877 skb_coalesce_rx_frag(struct sk_buff *skb, int i, int size, unsigned int truesize) argument
897 skb_drop_fraglist(struct sk_buff *skb) argument
902 skb_clone_fraglist(struct sk_buff *skb) argument
920 struct sk_buff *skb = *pskb, *nskb; local
1053 skb_pp_recycle(struct sk_buff *skb, void *data, bool napi_safe) argument
1070 skb_pp_frag_ref(struct sk_buff *skb) argument
1099 skb_free_head(struct sk_buff *skb, bool napi_safe) argument
1112 skb_release_data(struct sk_buff *skb, enum skb_drop_reason reason, bool napi_safe) argument
1153 kfree_skbmem(struct sk_buff *skb) argument
1183 skb_release_head_state(struct sk_buff *skb) argument
1197 skb_release_all(struct sk_buff *skb, enum skb_drop_reason reason, bool napi_safe) argument
1214 __kfree_skb(struct sk_buff *skb) argument
1222 __kfree_skb_reason(struct sk_buff *skb, enum skb_drop_reason reason) argument
1249 kfree_skb_reason(struct sk_buff *skb, enum skb_drop_reason reason) argument
1263 kfree_skb_add_bulk(struct sk_buff *skb, struct skb_free_array *sa, enum skb_drop_reason reason) argument
1312 skb_dump(const char *level, const struct sk_buff *skb, bool full_pkt) argument
1408 skb_tx_error(struct sk_buff *skb) argument
1426 consume_skb(struct sk_buff *skb) argument
1444 __consume_stateless_skb(struct sk_buff *skb) argument
1451 napi_skb_cache_put(struct sk_buff *skb) argument
1472 __napi_kfree_skb(struct sk_buff *skb, enum skb_drop_reason reason) argument
1478 napi_skb_free_stolen_head(struct sk_buff *skb) argument
1490 napi_consume_skb(struct sk_buff *skb, int budget) argument
1573 __skb_clone(struct sk_buff *n, struct sk_buff *skb) argument
1694 struct sk_buff *skb; local
1778 skb_zerocopy_notify_extend(struct sk_buff *skb, u32 lo, u16 len) argument
1800 struct sk_buff *tail, *skb = skb_from_uarg(uarg); local
1848 msg_zerocopy_callback(struct sk_buff *skb, struct ubuf_info *uarg, bool success) argument
1872 skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb, struct msghdr *msg, int len, struct ubuf_info *uarg) argument
1902 __skb_zcopy_downgrade_managed(struct sk_buff *skb) argument
1947 skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask) argument
2044 skb_clone(struct sk_buff *skb, gfp_t gfp_mask) argument
2074 skb_headers_offset_update(struct sk_buff *skb, int off) argument
2100 skb_alloc_rx_flag(const struct sk_buff *skb) argument
2124 skb_copy(const struct sk_buff *skb, gfp_t gfp_mask) argument
2169 __pskb_copy_fclone(struct sk_buff *skb, int headroom, gfp_t gfp_mask, bool fclone) argument
2233 pskb_expand_head(struct sk_buff *skb, int nhead, int ntail, gfp_t gfp_mask) argument
2322 skb_realloc_headroom(struct sk_buff *skb, unsigned int headroom) argument
2342 __skb_unclone_keeptruesize(struct sk_buff *skb, gfp_t pri) argument
2400 skb_expand_head(struct sk_buff *skb, unsigned int headroom) argument
2457 skb_copy_expand(const struct sk_buff *skb, int newheadroom, int newtailroom, gfp_t gfp_mask) argument
2516 __skb_pad(struct sk_buff *skb, int pad, bool free_on_error) argument
2564 pskb_put(struct sk_buff *skb, struct sk_buff *tail, int len) argument
2583 skb_put(struct sk_buff *skb, unsigned int len) argument
2604 skb_push(struct sk_buff *skb, unsigned int len) argument
2624 skb_pull(struct sk_buff *skb, unsigned int len) argument
2641 skb_pull_data(struct sk_buff *skb, size_t len) argument
2663 skb_trim(struct sk_buff *skb, unsigned int len) argument
2673 ___pskb_trim(struct sk_buff *skb, unsigned int len) argument
2760 pskb_trim_rcsum_slow(struct sk_buff *skb, unsigned int len) argument
2804 __pskb_pull_tail(struct sk_buff *skb, int delta) argument
2945 skb_copy_bits(const struct sk_buff *skb, int offset, void *to, int len) argument
3130 __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) 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) argument
3230 __skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset, int len, sendmsg_func sendmsg) argument
3329 skb_send_sock_locked(struct sock *sk, struct sk_buff *skb, int offset, int len) argument
3337 skb_send_sock(struct sock *sk, struct sk_buff *skb, int offset, int len) argument
3354 skb_store_bits(struct sk_buff *skb, int offset, const void *from, int len) argument
3432 __skb_checksum(const struct sk_buff *skb, int offset, int len, __wsum csum, const struct skb_checksum_ops *ops) argument
3516 skb_checksum(const struct sk_buff *skb, int offset, int len, __wsum csum) argument
3530 skb_copy_and_csum_bits(const struct sk_buff *skb, int offset, u8 *to, int len) argument
3615 __skb_checksum_complete_head(struct sk_buff *skb, int len) argument
3641 __skb_checksum_complete(struct sk_buff *skb) argument
3805 skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to) argument
3917 struct sk_buff *skb = rb_entry(p, struct sk_buff, rbnode); local
3929 struct sk_buff *skb, *next; local
4000 skb_unlink(struct sk_buff *skb, struct sk_buff_head *list) argument
4030 skb_split_inside_header(struct sk_buff *skb, struct sk_buff* skb1, const u32 len, const int pos) argument
4051 skb_split_no_header(struct sk_buff *skb, struct sk_buff* skb1, const u32 len, int pos) argument
4098 skb_split(struct sk_buff *skb, struct sk_buff *skb1, const u32 len) argument
4118 skb_prepare_for_shift(struct sk_buff *skb) argument
4141 skb_shift(struct sk_buff *tgt, struct sk_buff *skb, int shiftlen) argument
4266 skb_prepare_seq_read(struct sk_buff *skb, unsigned int from, unsigned int to, struct skb_seq_state *st) argument
4427 skb_find_text(struct sk_buff *skb, unsigned int from, unsigned int to, struct ts_config *config) argument
4446 skb_append_pagefrags(struct sk_buff *skb, struct page *page, int offset, size_t size, size_t max_frags) argument
4476 skb_pull_rcsum(struct sk_buff *skb, unsigned int len) argument
4499 skb_segment_list(struct sk_buff *skb, netdev_features_t features, unsigned int offset) argument
5041 __skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len, unsigned int recursion_level) argument
5124 skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) argument
5156 skb_to_sgvec_nomark(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) argument
5182 skb_cow_data(struct sk_buff *skb, int tailbits, struct sk_buff **trailer) argument
5275 sock_rmem_free(struct sk_buff *skb) argument
5282 skb_set_err_queue(struct sk_buff *skb) argument
5294 sock_queue_err_skb(struct sock *sk, struct sk_buff *skb) argument
5316 is_icmp_err_skb(const struct sk_buff *skb) argument
5325 struct sk_buff *skb, *skb_next = NULL; local
5364 skb_clone_sk(struct sk_buff *skb) argument
5385 __skb_complete_tx_timestamp(struct sk_buff *skb, struct sock *sk, int tstype, bool opt_stats) argument
5428 skb_complete_tx_timestamp(struct sk_buff *skb, struct skb_shared_hwtstamps *hwtstamps) argument
5456 struct sk_buff *skb; local
5517 skb_complete_wifi_ack(struct sk_buff *skb, bool acked) argument
5556 skb_partial_csum_set(struct sk_buff *skb, u16 start, u16 off) argument
5574 skb_maybe_pull_tail(struct sk_buff *skb, unsigned int len, unsigned int max) argument
5597 skb_checksum_setup_ip(struct sk_buff *skb, typeof(IPPROTO_IP) proto, unsigned int off) argument
5631 skb_checksum_setup_ipv4(struct sk_buff *skb, bool recalculate) argument
5679 skb_checksum_setup_ipv6(struct sk_buff *skb, bool recalculate) argument
5784 skb_checksum_setup(struct sk_buff *skb, bool recalculate) argument
5819 skb_checksum_maybe_trim(struct sk_buff *skb, unsigned int transport_len) argument
5859 skb_checksum_trimmed(struct sk_buff *skb, unsigned int transport_len, __sum16(*skb_chkf)(struct sk_buff *skb)) argument
5892 __skb_warn_lro_forwarding(const struct sk_buff *skb) argument
5899 kfree_skb_partial(struct sk_buff *skb, bool head_stolen) argument
6018 skb_scrub_packet(struct sk_buff *skb, bool xnet) argument
6042 skb_reorder_vlan_header(struct sk_buff *skb) argument
6068 skb_vlan_untag(struct sk_buff *skb) argument
6109 skb_ensure_writable(struct sk_buff *skb, unsigned int write_len) argument
6121 skb_ensure_writable_head_tail(struct sk_buff *skb, struct net_device *dev) argument
6149 __skb_vlan_pop(struct sk_buff *skb, u16 *vlan_tci) argument
6182 skb_vlan_pop(struct sk_buff *skb) argument
6215 skb_vlan_push(struct sk_buff *skb, __be16 vlan_proto, u16 vlan_tci) argument
6254 skb_eth_pop(struct sk_buff *skb) argument
6281 skb_eth_push(struct sk_buff *skb, const unsigned char *dst, const unsigned char *src) argument
6310 skb_mod_eth_type(struct sk_buff *skb, struct ethhdr *hdr, __be16 ethertype) argument
6337 skb_mpls_push(struct sk_buff *skb, __be32 mpls_lse, __be16 mpls_proto, int mac_len, bool ethernet) argument
6390 skb_mpls_pop(struct sk_buff *skb, __be16 next_proto, int mac_len, bool ethernet) argument
6433 skb_mpls_update_lse(struct sk_buff *skb, __be32 mpls_lse) argument
6465 skb_mpls_dec_ttl(struct sk_buff *skb) argument
6506 struct sk_buff *skb; local
6555 pskb_carve_inside_header(struct sk_buff *skb, const u32 off, const int headlen, gfp_t gfp_mask) argument
6616 pskb_carve_frag_list(struct sk_buff *skb, struct skb_shared_info *shinfo, int eat, gfp_t gfp_mask) argument
6670 pskb_carve_inside_nonlinear(struct sk_buff *skb, const u32 off, int pos, gfp_t gfp_mask) argument
6747 pskb_carve(struct sk_buff *skb, const u32 len, gfp_t gfp) argument
6760 pskb_extract(struct sk_buff *skb, int off, int to_copy, gfp_t gfp) argument
6789 skb_condense(struct sk_buff *skb) argument
6883 __skb_ext_set(struct sk_buff *skb, enum skb_ext_id id, struct skb_ext *ext) argument
6911 skb_ext_add(struct sk_buff *skb, enum skb_ext_id id) argument
6964 __skb_ext_del(struct sk_buff *skb, enum skb_ext_id id) argument
7017 skb_attempt_defer_free(struct sk_buff *skb) argument
7057 skb_splice_csum_page(struct sk_buff *skb, struct page *page, size_t offset, size_t len) argument
7084 skb_splice_from_iter(struct sk_buff *skb, struct iov_iter *iter, ssize_t maxsize, gfp_t gfp) argument
[all...]
H A Dgro.c93 int skb_gro_receive(struct sk_buff *p, struct sk_buff *skb) argument
95 struct skb_shared_info *pinfo, *skbinfo = skb_shinfo(skb);
96 unsigned int offset = skb_gro_offset(skb);
97 unsigned int headlen = skb_headlen(skb);
98 unsigned int len = skb_gro_len(skb);
111 if (p->pp_recycle != skb->pp_recycle)
119 if (unlikely(p->len + len >= gro_max_size || NAPI_GRO_CB(skb)->flush))
123 if (NAPI_GRO_CB(skb)->proto != IPPROTO_TCP ||
130 segs = NAPI_GRO_CB(skb)->count;
157 new_truesize = SKB_TRUESIZE(skb_end_offset(skb));
234 napi_gro_complete(struct napi_struct *napi, struct sk_buff *skb) argument
274 struct sk_buff *skb, *p; local
305 gro_list_prepare_tc_ext(const struct sk_buff *skb, const struct sk_buff *p, unsigned long diffs) argument
323 gro_list_prepare(const struct list_head *head, const struct sk_buff *skb) argument
368 skb_gro_reset_offset(struct sk_buff *skb, u32 nhoff) argument
394 gro_pull_from_frag0(struct sk_buff *skb, int grow) argument
415 gro_try_pull_from_frag0(struct sk_buff *skb) argument
442 dev_gro_receive(struct napi_struct *napi, struct sk_buff *skb) argument
578 napi_skb_finish(struct napi_struct *napi, struct sk_buff *skb, gro_result_t ret) argument
605 napi_gro_receive(struct napi_struct *napi, struct sk_buff *skb) argument
621 napi_reuse_skb(struct napi_struct *napi, struct sk_buff *skb) argument
652 struct sk_buff *skb = napi->skb; local
665 napi_frags_finish(struct napi_struct *napi, struct sk_buff *skb, gro_result_t ret) argument
699 struct sk_buff *skb = napi->skb; local
740 struct sk_buff *skb = napi_frags_skb(napi); local
754 __skb_gro_checksum_complete(struct sk_buff *skb) argument
[all...]
H A Dfilter.c119 * @skb: buffer to filter
122 * Run the eBPF program and then cut skb->data to correct size returned by
123 * the program. If pkt_len is 0 we toss packet. If skb->len is smaller
124 * than pkt_len we keep whole skb->data. This is the socket level
129 int sk_filter_trim_cap(struct sock *sk, struct sk_buff *skb, unsigned int cap) argument
135 * If the skb was allocated from pfmemalloc reserves, only
139 if (skb_pfmemalloc(skb) && !sock_flag(sk, SOCK_MEMALLOC)) {
143 err = BPF_CGROUP_RUN_PROG_INET_INGRESS(sk, skb);
147 err = security_sock_rcv_skb(sk, skb);
154 struct sock *save_sk = skb
1662 __bpf_try_make_writable(struct sk_buff *skb, unsigned int write_len) argument
1668 bpf_try_make_writable(struct sk_buff *skb, unsigned int write_len) argument
1677 bpf_try_make_head_writable(struct sk_buff *skb) argument
1682 bpf_push_mac_rcsum(struct sk_buff *skb) argument
1688 bpf_pull_mac_rcsum(struct sk_buff *skb) argument
1731 __bpf_skb_store_bytes(struct sk_buff *skb, u32 offset, const void *from, u32 len, u64 flags) argument
1767 __bpf_skb_load_bytes(const struct sk_buff *skb, u32 offset, void *to, u32 len) argument
1885 sk_skb_try_make_writable(struct sk_buff *skb, unsigned int write_len) argument
2103 __bpf_rx_skb(struct net_device *dev, struct sk_buff *skb) argument
2108 __bpf_rx_skb_no_mac(struct net_device *dev, struct sk_buff *skb) argument
2121 __bpf_tx_skb(struct net_device *dev, struct sk_buff *skb) argument
2142 __bpf_redirect_no_mac(struct sk_buff *skb, struct net_device *dev, u32 flags) argument
2169 __bpf_redirect_common(struct sk_buff *skb, struct net_device *dev, u32 flags) argument
2183 __bpf_redirect(struct sk_buff *skb, struct net_device *dev, u32 flags) argument
2193 bpf_out_neigh_v6(struct net *net, struct sk_buff *skb, struct net_device *dev, struct bpf_nh_params *nh) argument
2244 __bpf_redirect_neigh_v6(struct sk_buff *skb, struct net_device *dev, struct bpf_nh_params *nh) argument
2285 __bpf_redirect_neigh_v6(struct sk_buff *skb, struct net_device *dev, struct bpf_nh_params *nh) argument
2294 bpf_out_neigh_v4(struct net *net, struct sk_buff *skb, struct net_device *dev, struct bpf_nh_params *nh) argument
2349 __bpf_redirect_neigh_v4(struct sk_buff *skb, struct net_device *dev, struct bpf_nh_params *nh) argument
2392 __bpf_redirect_neigh_v4(struct sk_buff *skb, struct net_device *dev, struct bpf_nh_params *nh) argument
2400 __bpf_redirect_neigh(struct sk_buff *skb, struct net_device *dev, struct bpf_nh_params *nh) argument
2485 skb_do_redirect(struct sk_buff *skb) argument
3214 bpf_skb_generic_push(struct sk_buff *skb, u32 off, u32 len) argument
3231 bpf_skb_generic_pop(struct sk_buff *skb, u32 off, u32 len) argument
3249 bpf_skb_net_hdr_push(struct sk_buff *skb, u32 off, u32 len) argument
3269 bpf_skb_net_hdr_pop(struct sk_buff *skb, u32 off, u32 len) argument
3286 bpf_skb_proto_4_to_6(struct sk_buff *skb) argument
3316 bpf_skb_proto_6_to_4(struct sk_buff *skb) argument
3346 bpf_skb_proto_xlat(struct sk_buff *skb, __be16 to_proto) argument
3419 bpf_skb_net_base_len(const struct sk_buff *skb) argument
3446 bpf_skb_net_grow(struct sk_buff *skb, u32 off, u32 len_diff, u64 flags) argument
3552 bpf_skb_net_shrink(struct sk_buff *skb, u32 off, u32 len_diff, u64 flags) argument
3716 __bpf_skb_min_len(const struct sk_buff *skb) argument
3728 bpf_skb_grow_rcsum(struct sk_buff *skb, unsigned int new_len) argument
3739 bpf_skb_trim_rcsum(struct sk_buff *skb, unsigned int new_len) argument
3744 __bpf_skb_change_tail(struct sk_buff *skb, u32 new_len, u64 flags) argument
3817 __bpf_skb_change_head(struct sk_buff *skb, u32 head_room, u64 flags) argument
4453 xdp_do_generic_redirect_map(struct net_device *dev, struct sk_buff *skb, struct xdp_buff *xdp, struct bpf_prog *xdp_prog, void *fwd, enum bpf_map_type map_type, u32 map_id, u32 flags) argument
4511 xdp_do_generic_redirect(struct net_device *dev, struct sk_buff *skb, struct xdp_buff *xdp, struct bpf_prog *xdp_prog) argument
4588 bpf_skb_copy(void *dst_buff, const void *skb, unsigned long off, unsigned long len) argument
6340 bpf_push_seg6_encap(struct sk_buff *skb, u32 type, void *hdr, u32 len) argument
6375 bpf_push_ip_encap(struct sk_buff *skb, void *hdr, u32 len, bool ingress) argument
6476 bpf_update_srh_state(struct sk_buff *skb) argument
6675 __bpf_skc_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len, struct net *caller_net, u32 ifindex, u8 proto, u64 netns_id, u64 flags, int sdif) argument
6716 __bpf_sk_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len, struct net *caller_net, u32 ifindex, u8 proto, u64 netns_id, u64 flags, int sdif) argument
6747 bpf_skc_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len, u8 proto, u64 netns_id, u64 flags) argument
6766 bpf_sk_lookup(struct sk_buff *skb, struct bpf_sock_tuple *tuple, u32 len, u8 proto, u64 netns_id, u64 flags) argument
7611 struct sk_buff *skb; local
11154 bpf_init_reuseport_kern(struct sk_reuseport_kern *reuse_kern, struct sock_reuseport *reuse, struct sock *sk, struct sk_buff *skb, struct sock *migrating_sk, u32 hash) argument
11170 bpf_run_sk_reuseport(struct sock_reuseport *reuse, struct sock *sk, struct bpf_prog *prog, struct sk_buff *skb, struct sock *migrating_sk, u32 hash) argument
11848 bpf_dynptr_from_skb(struct sk_buff *skb, u64 flags, struct bpf_dynptr_kern *ptr__uninit) argument
11895 bpf_sk_assign_tcp_reqsk(struct sk_buff *skb, struct sock *sk, struct bpf_tcp_req_attrs *attrs, int attrs__sz) argument
11993 bpf_dynptr_from_skb_rdonly(struct sk_buff *skb, u64 flags, struct bpf_dynptr_kern *ptr__uninit) 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/net/8021q/
H A Dvlan_core.c12 struct sk_buff *skb = *skbp; local
13 __be16 vlan_proto = skb->vlan_proto;
14 u16 vlan_id = skb_vlan_tag_get_id(skb);
18 vlan_dev = vlan_find_dev(skb->dev, vlan_proto, vlan_id);
22 skb = *skbp = skb_share_check(skb, GFP_ATOMIC);
23 if (unlikely(!skb))
27 kfree_skb(skb);
32 skb->dev = vlan_dev;
33 if (unlikely(skb
464 vlan_gro_receive(struct list_head *head, struct sk_buff *skb) argument
515 vlan_gro_complete(struct sk_buff *skb, int nhoff) argument
[all...]
/linux-master/kernel/bpf/
H A Dcore.c74 void *bpf_internal_load_pointer_neg_helper(const struct sk_buff *skb, int k, unsigned int size) argument
79 ptr = skb_network_header(skb) + k - SKF_NET_OFF;
81 if (unlikely(!skb_mac_header_was_set(skb)))
83 ptr = skb_mac_header(skb) + k - SKF_LL_OFF;
85 if (ptr >= skb->head && ptr + size <= skb_tail_pointer(skb))
2967 int __weak skb_copy_bits(const struct sk_buff *skb, int offset, void *to, argument
/linux-master/include/net/
H A Dgro.h17 /* Virtual address of skb_shinfo(skb)->frags[0].page + offset. */
33 /* This indicates where we are processing relative to skb->data. */
36 /* This is non-zero if the packet cannot be merged with the new skb. */
69 /* Free the skb? */
101 #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb)
104 static inline int gro_recursion_inc_test(struct sk_buff *skb) argument
106 return ++NAPI_GRO_CB(skb)->recursion_counter == GRO_RECURSION_LIMIT;
112 struct sk_buff *skb)
114 if (unlikely(gro_recursion_inc_test(skb))) {
110 call_gro_receive(gro_receive_t cb, struct list_head *head, struct sk_buff *skb) argument
124 call_gro_receive_sk(gro_receive_sk_t cb, struct sock *sk, struct list_head *head, struct sk_buff *skb) argument
137 skb_gro_offset(const struct sk_buff *skb) argument
142 skb_gro_len(const struct sk_buff *skb) argument
147 skb_gro_pull(struct sk_buff *skb, unsigned int len) argument
152 skb_gro_header_fast(const struct sk_buff *skb, unsigned int offset) argument
158 skb_gro_may_pull(const struct sk_buff *skb, unsigned int hlen) argument
164 skb_gro_header_slow(struct sk_buff *skb, unsigned int hlen, unsigned int offset) argument
173 skb_gro_header(struct sk_buff *skb, unsigned int hlen, unsigned int offset) argument
184 skb_gro_network_header(const struct sk_buff *skb) argument
192 inet_gro_compute_pseudo(const struct sk_buff *skb, int proto) argument
201 skb_gro_postpull_rcsum(struct sk_buff *skb, const void *start, unsigned int len) argument
216 skb_at_gro_remcsum_start(struct sk_buff *skb) argument
221 __skb_gro_checksum_validate_needed(struct sk_buff *skb, bool zero_okay, __sum16 check) argument
233 __skb_gro_checksum_validate_complete(struct sk_buff *skb, __wsum psum) argument
245 skb_gro_incr_csum_unnecessary(struct sk_buff *skb) argument
281 __skb_gro_checksum_convert_check(struct sk_buff *skb) argument
287 __skb_gro_checksum_convert(struct sk_buff *skb, __wsum pseudo) argument
312 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) argument
344 skb_gro_remcsum_cleanup(struct sk_buff *skb, struct gro_remcsum *grc) argument
361 skb_gro_flush_final(struct sk_buff *skb, struct sk_buff *pp, int flush) argument
366 skb_gro_flush_final_remcsum(struct sk_buff *skb, struct sk_buff *pp, int flush, struct gro_remcsum *grc) argument
378 skb_gro_flush_final(struct sk_buff *skb, struct sk_buff *pp, int flush) argument
382 skb_gro_flush_final_remcsum(struct sk_buff *skb, struct sk_buff *pp, int flush, struct gro_remcsum *grc) argument
419 udp_gro_udphdr(struct sk_buff *skb) argument
431 ip6_gro_compute_pseudo(const struct sk_buff *skb, int proto) argument
455 gro_normal_one(struct napi_struct *napi, struct sk_buff *skb, int segs) argument
469 inet_get_iif_sdif(const struct sk_buff *skb, int *iif, int *sdif) argument
490 inet6_get_iif_sdif(const struct sk_buff *skb, int *iif, int *sdif) argument
[all...]
/linux-master/include/linux/
H A Dskmsg.h50 struct sk_buff *skb; member in struct:sk_msg
310 static inline void sock_drop(struct sock *sk, struct sk_buff *skb) argument
312 sk_drops_add(sk, skb);
313 kfree_skb(skb);
372 if (msg->skb)
373 consume_skb(msg->skb);
501 int sk_psock_tls_strp_read(struct sk_psock *psock, struct sk_buff *skb);
517 static inline bool skb_bpf_strparser(const struct sk_buff *skb) argument
519 unsigned long sk_redir = skb->_sk_redir;
524 static inline void skb_bpf_set_strparser(struct sk_buff *skb) argument
529 skb_bpf_ingress(const struct sk_buff *skb) argument
536 skb_bpf_set_ingress(struct sk_buff *skb) argument
541 skb_bpf_set_redir(struct sk_buff *skb, struct sock *sk_redir, bool ingress) argument
549 skb_bpf_redirect_fetch(const struct sk_buff *skb) argument
556 skb_bpf_redirect_clear(struct sk_buff *skb) argument
[all...]

Completed in 190 milliseconds

1234567891011>>