Home
last modified time | relevance | path

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

12345678910>>...133

/linux-6.14.4/net/xfrm/
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 …]
Dxfrm_input.c41 int (*finish)(struct net *net, struct sock *sk, struct sk_buff *skb);
103 static int xfrm_rcv_cb(struct sk_buff *skb, unsigned int family, u8 protocol, in xfrm_rcv_cb() argument
114 ret = afinfo->callback(skb, protocol, err); in xfrm_rcv_cb()
120 struct sec_path *secpath_set(struct sk_buff *skb) in secpath_set() argument
122 struct sec_path *sp, *tmp = skb_ext_find(skb, SKB_EXT_SEC_PATH); in secpath_set()
124 sp = skb_ext_add(skb, SKB_EXT_SEC_PATH); in secpath_set()
143 int xfrm_parse_spi(struct sk_buff *skb, u8 nexthdr, __be32 *spi, __be32 *seq) in xfrm_parse_spi() argument
160 if (!pskb_may_pull(skb, sizeof(struct ip_comp_hdr))) in xfrm_parse_spi()
162 *spi = htonl(ntohs(*(__be16 *)(skb_transport_header(skb) + 2))); in xfrm_parse_spi()
169 if (!pskb_may_pull(skb, hlen)) in xfrm_parse_spi()
[all …]
/linux-6.14.4/net/core/
Dgro.c91 int skb_gro_receive(struct sk_buff *p, struct sk_buff *skb) in skb_gro_receive() argument
93 struct skb_shared_info *pinfo, *skbinfo = skb_shinfo(skb); in skb_gro_receive()
94 unsigned int offset = skb_gro_offset(skb); in skb_gro_receive()
95 unsigned int headlen = skb_headlen(skb); in skb_gro_receive()
96 unsigned int len = skb_gro_len(skb); in skb_gro_receive()
108 if (p->pp_recycle != skb->pp_recycle) in skb_gro_receive()
112 NAPI_GRO_CB(skb)->flush)) in skb_gro_receive()
116 if (NAPI_GRO_CB(skb)->proto != IPPROTO_TCP || in skb_gro_receive()
123 segs = NAPI_GRO_CB(skb)->count; in skb_gro_receive()
150 new_truesize = SKB_TRUESIZE(skb_end_offset(skb)); in skb_gro_receive()
[all …]
Dskbuff.c19 * Ray VanTassle : Fixed --skb->lock in free
84 #include <trace/events/skb.h>
192 * @skb: buffer
202 static void skb_panic(struct sk_buff *skb, unsigned int sz, void *addr, in skb_panic() argument
206 msg, addr, skb->len, sz, skb->head, skb->data, in skb_panic()
207 (unsigned long)skb->tail, (unsigned long)skb->end, in skb_panic()
208 skb->dev ? skb->dev->name : "<NULL>"); in skb_panic()
212 static void skb_over_panic(struct sk_buff *skb, unsigned int sz, void *addr) in skb_over_panic() argument
214 skb_panic(skb, sz, addr, __func__); in skb_over_panic()
217 static void skb_under_panic(struct sk_buff *skb, unsigned int sz, void *addr) in skb_under_panic() argument
[all …]
Dgso.c9 * @skb: buffer to segment
13 struct sk_buff *skb_eth_gso_segment(struct sk_buff *skb, in skb_eth_gso_segment() argument
22 segs = ptype->callbacks.gso_segment(skb, features); in skb_eth_gso_segment()
34 * @skb: buffer to segment
37 struct sk_buff *skb_mac_gso_segment(struct sk_buff *skb, in skb_mac_gso_segment() argument
42 int vlan_depth = skb->mac_len; in skb_mac_gso_segment()
43 __be16 type = skb_network_protocol(skb, &vlan_depth); in skb_mac_gso_segment()
48 __skb_pull(skb, vlan_depth); in skb_mac_gso_segment()
53 segs = ptype->callbacks.gso_segment(skb, features); in skb_mac_gso_segment()
59 __skb_push(skb, skb->data - skb_mac_header(skb)); in skb_mac_gso_segment()
[all …]
/linux-6.14.4/include/linux/
Dskbuff.h44 * DOC: skb checksums
105 * not in skb->csum. Thus, skb->csum is undefined in this case.
133 * checksum is bad, skb->csum_level would be set to zero (TCP checksum is
145 * skb->csum, it MUST use CHECKSUM_COMPLETE, not CHECKSUM_UNNECESSARY.
155 * referred to by skb->csum_start + skb->csum_offset and any preceding
194 * The skb was already checksummed by the protocol, or a checksum is not
253 /* Maximum value in skb->csum_level */
260 /* For X bytes available in skb->head, what is the minimal
272 /* return minimum truesize of one skb containing X bytes of data */
311 * skb is out in neigh layer.
[all …]
/linux-6.14.4/drivers/net/wireless/ath/ath10k/
Dwmi-ops.h15 void (*rx)(struct ath10k *ar, struct sk_buff *skb);
19 int (*pull_scan)(struct ath10k *ar, struct sk_buff *skb,
21 int (*pull_mgmt_rx)(struct ath10k *ar, struct sk_buff *skb,
23 int (*pull_mgmt_tx_compl)(struct ath10k *ar, struct sk_buff *skb,
26 struct ath10k *ar, struct sk_buff *skb,
28 int (*pull_ch_info)(struct ath10k *ar, struct sk_buff *skb,
30 int (*pull_vdev_start)(struct ath10k *ar, struct sk_buff *skb,
32 int (*pull_peer_kick)(struct ath10k *ar, struct sk_buff *skb,
34 int (*pull_swba)(struct ath10k *ar, struct sk_buff *skb,
36 int (*pull_phyerr_hdr)(struct ath10k *ar, struct sk_buff *skb,
[all …]
/linux-6.14.4/net/bridge/
Dbr_netfilter_hooks.c72 #define IS_IP(skb) \ argument
73 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IP))
75 #define IS_IPV6(skb) \ argument
76 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_IPV6))
78 #define IS_ARP(skb) \ argument
79 (!skb_vlan_tag_present(skb) && skb->protocol == htons(ETH_P_ARP))
81 static inline __be16 vlan_proto(const struct sk_buff *skb) in vlan_proto() argument
83 if (skb_vlan_tag_present(skb)) in vlan_proto()
84 return skb->protocol; in vlan_proto()
85 else if (skb->protocol == htons(ETH_P_8021Q)) in vlan_proto()
[all …]
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 …]
/linux-6.14.4/net/devlink/
Dnetlink_gen.h21 int devlink_nl_pre_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
24 struct sk_buff *skb, struct genl_info *info);
26 struct sk_buff *skb, struct genl_info *info);
28 struct sk_buff *skb,
31 devlink_nl_post_doit(const struct genl_split_ops *ops, struct sk_buff *skb,
35 struct sk_buff *skb, struct genl_info *info);
37 int devlink_nl_get_doit(struct sk_buff *skb, struct genl_info *info);
38 int devlink_nl_get_dumpit(struct sk_buff *skb, struct netlink_callback *cb);
39 int devlink_nl_port_get_doit(struct sk_buff *skb, struct genl_info *info);
40 int devlink_nl_port_get_dumpit(struct sk_buff *skb,
[all …]
/linux-6.14.4/include/net/
Dgro.h20 /* Virtual address of skb_shinfo(skb)->frags[0].page + offset. */
36 /* This indicates where we are processing relative to skb->data. */
39 /* This is non-zero if the packet cannot be merged with the new skb. */
71 /* Free the skb? */
103 #define NAPI_GRO_CB(skb) ((struct napi_gro_cb *)(skb)->cb) argument
106 static inline int gro_recursion_inc_test(struct sk_buff *skb) in gro_recursion_inc_test() argument
108 return ++NAPI_GRO_CB(skb)->recursion_counter == GRO_RECURSION_LIMIT; in gro_recursion_inc_test()
114 struct sk_buff *skb) in call_gro_receive() argument
116 if (unlikely(gro_recursion_inc_test(skb))) { in call_gro_receive()
117 NAPI_GRO_CB(skb)->flush |= 1; in call_gro_receive()
[all …]
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 …]
Dllc_c_ev.h123 static __inline__ struct llc_conn_state_ev *llc_conn_ev(struct sk_buff *skb) in llc_conn_ev() argument
125 return (struct llc_conn_state_ev *)skb->cb; in llc_conn_ev()
128 typedef int (*llc_conn_ev_t)(struct sock *sk, struct sk_buff *skb);
129 typedef int (*llc_conn_ev_qfyr_t)(struct sock *sk, struct sk_buff *skb);
131 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb);
132 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb);
133 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb);
134 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb);
135 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb);
136 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb);
[all …]
/linux-6.14.4/net/ipv4/
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 …]
Dtcp_offload.c16 static void tcp_gso_tstamp(struct sk_buff *skb, struct sk_buff *gso_skb, in tcp_gso_tstamp() argument
22 while (skb) { in tcp_gso_tstamp()
24 skb_shinfo(skb)->tx_flags |= flags; in tcp_gso_tstamp()
25 skb_shinfo(skb)->tskey = ts_seq; in tcp_gso_tstamp()
29 skb = skb->next; in tcp_gso_tstamp()
88 static struct sk_buff *__tcp4_gso_segment_list(struct sk_buff *skb, in __tcp4_gso_segment_list() argument
91 skb = skb_segment_list(skb, features, skb_mac_header_len(skb)); in __tcp4_gso_segment_list()
92 if (IS_ERR(skb)) in __tcp4_gso_segment_list()
93 return skb; in __tcp4_gso_segment_list()
95 return __tcpv4_gso_segment_list_csum(skb); in __tcp4_gso_segment_list()
[all …]
Desp4_offload.c31 struct sk_buff *skb) in esp4_gro_receive() argument
33 int offset = skb_gro_offset(skb); in esp4_gro_receive()
40 if (!pskb_pull(skb, offset)) in esp4_gro_receive()
43 if (xfrm_parse_spi(skb, IPPROTO_ESP, &spi, &seq) != 0) in esp4_gro_receive()
46 xo = xfrm_offload(skb); in esp4_gro_receive()
48 struct sec_path *sp = secpath_set(skb); in esp4_gro_receive()
56 x = xfrm_input_state_lookup(dev_net(skb->dev), skb->mark, in esp4_gro_receive()
57 (xfrm_address_t *)&ip_hdr(skb)->daddr, in esp4_gro_receive()
69 skb->mark = xfrm_smark_get(skb->mark, x); in esp4_gro_receive()
74 xo = xfrm_offload(skb); in esp4_gro_receive()
[all …]
/linux-6.14.4/drivers/net/can/dev/
Dskb.c41 /* Put the skb on the stack to be looped backed locally lateron
47 int can_put_echo_skb(struct sk_buff *skb, struct net_device *dev, in can_put_echo_skb() argument
60 (skb->protocol != htons(ETH_P_CAN) && in can_put_echo_skb()
61 skb->protocol != htons(ETH_P_CANFD) && in can_put_echo_skb()
62 skb->protocol != htons(ETH_P_CANXL))) { in can_put_echo_skb()
63 kfree_skb(skb); in can_put_echo_skb()
68 skb = can_create_echo_skb(skb); in can_put_echo_skb()
69 if (!skb) in can_put_echo_skb()
73 skb->ip_summed = CHECKSUM_UNNECESSARY; in can_put_echo_skb()
74 skb->dev = dev; in can_put_echo_skb()
[all …]
/linux-6.14.4/net/ipv6/
Dip6_input.c49 struct sk_buff *skb) in ip6_rcv_finish_core() argument
52 !skb_dst(skb) && !skb->sk) { in ip6_rcv_finish_core()
53 switch (ipv6_hdr(skb)->nexthdr) { in ip6_rcv_finish_core()
56 tcp_v6_early_demux(skb); in ip6_rcv_finish_core()
60 udp_v6_early_demux(skb); in ip6_rcv_finish_core()
65 if (!skb_valid_dst(skb)) in ip6_rcv_finish_core()
66 ip6_route_input(skb); in ip6_rcv_finish_core()
69 int ip6_rcv_finish(struct net *net, struct sock *sk, struct sk_buff *skb) in ip6_rcv_finish() argument
72 * skb to its handler for processing in ip6_rcv_finish()
74 skb = l3mdev_ip6_rcv(skb); in ip6_rcv_finish()
[all …]
Dip6_offload.c33 #define indirect_call_gro_receive_l4(f2, f1, cb, head, skb) \ argument
35 unlikely(gro_recursion_inc_test(skb)) ? \
36 NAPI_GRO_CB(skb)->flush |= 1, NULL : \
37 INDIRECT_CALL_L4(cb, f2, f1, head, skb); \
40 static int ipv6_gro_pull_exthdrs(struct sk_buff *skb, int off, int proto) in ipv6_gro_pull_exthdrs() argument
56 opth = skb_gro_header(skb, off + sizeof(*opth), off); in ipv6_gro_pull_exthdrs()
62 opth = skb_gro_header(skb, off + len, off); in ipv6_gro_pull_exthdrs()
70 skb_gro_pull(skb, off - skb_gro_receive_network_offset(skb)); in ipv6_gro_pull_exthdrs()
74 static int ipv6_gso_pull_exthdrs(struct sk_buff *skb, int proto) in ipv6_gso_pull_exthdrs() argument
90 if (unlikely(!pskb_may_pull(skb, 8))) in ipv6_gso_pull_exthdrs()
[all …]
Dexthdrs.c65 static bool ip6_tlvopt_unknown(struct sk_buff *skb, int optoff, in ip6_tlvopt_unknown() argument
79 switch ((skb_network_header(skb)[optoff] & 0xC0) >> 6) { in ip6_tlvopt_unknown()
90 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) in ip6_tlvopt_unknown()
94 icmpv6_param_prob_reason(skb, ICMPV6_UNK_OPTION, optoff, in ip6_tlvopt_unknown()
100 kfree_skb_reason(skb, SKB_DROP_REASON_UNHANDLED_PROTO); in ip6_tlvopt_unknown()
104 static bool ipv6_hop_ra(struct sk_buff *skb, int optoff);
105 static bool ipv6_hop_ioam(struct sk_buff *skb, int optoff);
106 static bool ipv6_hop_jumbo(struct sk_buff *skb, int optoff);
107 static bool ipv6_hop_calipso(struct sk_buff *skb, int optoff);
109 static bool ipv6_dest_hao(struct sk_buff *skb, int optoff);
[all …]
/linux-6.14.4/net/sched/
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 …]
/linux-6.14.4/net/bridge/netfilter/
Dnf_conntrack_bridge.c28 struct sk_buff *skb, in nf_br_ip_fragment() argument
34 int frag_max_size = BR_INPUT_SKB_CB(skb)->frag_max_size; in nf_br_ip_fragment()
35 u8 tstamp_type = skb->tstamp_type; in nf_br_ip_fragment()
37 ktime_t tstamp = skb->tstamp; in nf_br_ip_fragment()
43 if (skb->ip_summed == CHECKSUM_PARTIAL && in nf_br_ip_fragment()
44 (err = skb_checksum_help(skb))) in nf_br_ip_fragment()
47 iph = ip_hdr(skb); in nf_br_ip_fragment()
55 ll_rs = LL_RESERVED_SPACE(skb->dev); in nf_br_ip_fragment()
56 mtu = skb->dev->mtu; in nf_br_ip_fragment()
58 if (skb_has_frag_list(skb)) { in nf_br_ip_fragment()
[all …]
/linux-6.14.4/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_handlers.c22 static void rmnet_set_skb_proto(struct sk_buff *skb) in rmnet_set_skb_proto() argument
24 switch (skb->data[0] & 0xF0) { in rmnet_set_skb_proto()
26 skb->protocol = htons(ETH_P_IP); in rmnet_set_skb_proto()
29 skb->protocol = htons(ETH_P_IPV6); in rmnet_set_skb_proto()
32 skb->protocol = htons(ETH_P_MAP); in rmnet_set_skb_proto()
40 rmnet_deliver_skb(struct sk_buff *skb) in rmnet_deliver_skb() argument
42 struct rmnet_priv *priv = netdev_priv(skb->dev); in rmnet_deliver_skb()
44 skb_reset_transport_header(skb); in rmnet_deliver_skb()
45 skb_reset_network_header(skb); in rmnet_deliver_skb()
46 rmnet_vnd_rx_fixup(skb, skb->dev); in rmnet_deliver_skb()
[all …]
/linux-6.14.4/net/netfilter/
Dnf_flow_table_ip.c23 struct sk_buff *skb, unsigned int thoff) in nf_flow_state_check() argument
30 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_state_check()
43 static void nf_flow_nat_ip_tcp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_tcp() argument
48 tcph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_tcp()
49 inet_proto_csum_replace4(&tcph->check, skb, addr, new_addr, true); in nf_flow_nat_ip_tcp()
52 static void nf_flow_nat_ip_udp(struct sk_buff *skb, unsigned int thoff, in nf_flow_nat_ip_udp() argument
57 udph = (void *)(skb_network_header(skb) + thoff); in nf_flow_nat_ip_udp()
58 if (udph->check || skb->ip_summed == CHECKSUM_PARTIAL) { in nf_flow_nat_ip_udp()
59 inet_proto_csum_replace4(&udph->check, skb, addr, in nf_flow_nat_ip_udp()
66 static void nf_flow_nat_ip_l4proto(struct sk_buff *skb, struct iphdr *iph, in nf_flow_nat_ip_l4proto() argument
[all …]
/linux-6.14.4/net/openvswitch/
Dactions.c43 struct sk_buff *skb; member
130 static struct deferred_action *add_deferred_actions(struct sk_buff *skb, in add_deferred_actions() argument
141 da->skb = skb; in add_deferred_actions()
160 static int clone_execute(struct datapath *dp, struct sk_buff *skb,
166 static int do_execute_actions(struct datapath *dp, struct sk_buff *skb,
170 static int push_mpls(struct sk_buff *skb, struct sw_flow_key *key, in push_mpls() argument
175 err = skb_mpls_push(skb, mpls_lse, mpls_ethertype, mac_len, !!mac_len); in push_mpls()
186 static int pop_mpls(struct sk_buff *skb, struct sw_flow_key *key, in pop_mpls() argument
191 err = skb_mpls_pop(skb, ethertype, skb->mac_len, in pop_mpls()
203 static int set_mpls(struct sk_buff *skb, struct sw_flow_key *flow_key, in set_mpls() argument
[all …]

12345678910>>...133