Home
last modified time | relevance | path

Searched refs:skb2 (Results 1 – 25 of 65) sorted by relevance

123

/linux-6.15/drivers/net/usb/
H A Dcdc_eem.c92 struct sk_buff *skb2 = NULL; in eem_tx_fixup() local
127 if (!skb2) in eem_tx_fixup()
130 skb = skb2; in eem_tx_fixup()
218 if (unlikely(!skb2)) in eem_rx_fixup()
220 skb_trim(skb2, len); in eem_rx_fixup()
222 skb_push(skb2, 2)); in eem_rx_fixup()
223 eem_linkcmd(dev, skb2); in eem_rx_fixup()
288 skb2 = skb; in eem_rx_fixup()
291 if (unlikely(!skb2)) in eem_rx_fixup()
304 crc2 = ~crc32_le(~0, skb2->data, skb2->len in eem_rx_fixup()
[all …]
H A Dcx82310_eth.c246 struct sk_buff *skb2; in cx82310_rx_fixup() local
255 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup()
256 if (!skb2) in cx82310_rx_fixup()
258 skb_put(skb2, len); in cx82310_rx_fixup()
259 memcpy(skb2->data, (void *)dev->partial_data, in cx82310_rx_fixup()
263 usbnet_skb_return(dev, skb2); in cx82310_rx_fixup()
300 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup()
301 if (!skb2) in cx82310_rx_fixup()
303 skb_put(skb2, len); in cx82310_rx_fixup()
304 memcpy(skb2->data, skb->data, len); in cx82310_rx_fixup()
[all …]
H A Dkalmia.c160 struct sk_buff *skb2 = NULL; in kalmia_tx_fixup() local
183 skb2 = skb_copy_expand(skb, KALMIA_HEADER_LENGTH, in kalmia_tx_fixup()
185 if (!skb2) in kalmia_tx_fixup()
189 skb = skb2; in kalmia_tx_fixup()
242 struct sk_buff *skb2 = NULL; in kalmia_rx_fixup() local
300 skb2 = skb; in kalmia_rx_fixup()
303 skb2 = skb_clone(skb, GFP_ATOMIC); in kalmia_rx_fixup()
304 if (unlikely(!skb2)) in kalmia_rx_fixup()
308 skb_trim(skb2, ether_packet_length); in kalmia_rx_fixup()
314 usbnet_skb_return(dev, skb2); in kalmia_rx_fixup()
H A Drndis_host.c507 struct sk_buff *skb2; in rndis_rx_fixup() local
533 skb2 = skb_clone(skb, GFP_ATOMIC); in rndis_rx_fixup()
534 if (unlikely(!skb2)) in rndis_rx_fixup()
537 skb_trim(skb2, data_len); in rndis_rx_fixup()
540 usbnet_cdc_zte_rx_fixup(dev, skb2); in rndis_rx_fixup()
542 usbnet_skb_return(dev, skb2); in rndis_rx_fixup()
557 struct sk_buff *skb2; in rndis_tx_fixup() local
578 skb2 = skb_copy_expand(skb, sizeof *hdr, 1, flags); in rndis_tx_fixup()
580 if (unlikely(!skb2)) in rndis_tx_fixup()
581 return skb2; in rndis_tx_fixup()
[all …]
H A Dint51x1.c83 struct sk_buff *skb2; in int51x1_tx_fixup() local
85 skb2 = skb_copy_expand(skb, in int51x1_tx_fixup()
90 if (!skb2) in int51x1_tx_fixup()
92 skb = skb2; in int51x1_tx_fixup()
H A Dgl620a.c156 struct sk_buff *skb2; in genelink_tx_fixup() local
157 skb2 = skb_copy_expand(skb, (4 + 4*1) , padlen, flags); in genelink_tx_fixup()
159 skb = skb2; in genelink_tx_fixup()
/linux-6.15/drivers/net/wireless/microchip/wilc1000/
H A Dmon.c147 struct sk_buff *skb2; in wilc_wfi_mon_xmit() local
164 if (!skb2) in wilc_wfi_mon_xmit()
167 skb_put_data(skb2, skb->data, skb->len); in wilc_wfi_mon_xmit()
169 cb_hdr = skb_push(skb2, sizeof(*cb_hdr)); in wilc_wfi_mon_xmit()
181 skb2->dev = dev; in wilc_wfi_mon_xmit()
182 skb_reset_mac_header(skb2); in wilc_wfi_mon_xmit()
183 skb2->ip_summed = CHECKSUM_UNNECESSARY; in wilc_wfi_mon_xmit()
184 skb2->pkt_type = PACKET_OTHERHOST; in wilc_wfi_mon_xmit()
185 skb2->protocol = htons(ETH_P_802_2); in wilc_wfi_mon_xmit()
186 memset(skb2->cb, 0, sizeof(skb2->cb)); in wilc_wfi_mon_xmit()
[all …]
/linux-6.15/drivers/usb/gadget/function/
H A Df_eem.c365 skb = skb2; in eem_wrap()
400 struct sk_buff *skb2; in eem_unwrap() local
443 if (unlikely(!skb2)) { in eem_unwrap()
447 skb_trim(skb2, len); in eem_unwrap()
449 skb_push(skb2, 2)); in eem_unwrap()
472 ctx->skb = skb2; in eem_unwrap()
475 skb_copy_bits(skb2, 0, req->buf, skb2->len); in eem_unwrap()
476 req->length = skb2->len; in eem_unwrap()
529 if (unlikely(!skb2)) { in eem_unwrap()
540 dev_kfree_skb_any(skb2); in eem_unwrap()
[all …]
H A Df_ncm.c950 struct sk_buff *skb2 = NULL; in package_for_tx() local
984 swap(skb2, ncm->skb_tx_data); in package_for_tx()
991 skb_put_zero(skb2, ndp_pad); in package_for_tx()
1001 return skb2; in package_for_tx()
1008 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local
1047 if (!skb2) in ncm_wrap_ntb()
1121 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
1122 if (!skb2) in ncm_wrap_ntb()
1126 return skb2; in ncm_wrap_ntb()
1176 struct sk_buff *skb2; in ncm_unwrap_ntb() local
[all …]
/linux-6.15/net/netfilter/ipset/
H A Dip_set_core.c1774 if (!skb2) in call_ad()
1927 if (!skb2) in ip_set_header()
1947 kfree_skb(skb2); in ip_set_header()
1981 if (!skb2) in ip_set_type()
2002 kfree_skb(skb2); in ip_set_type()
2023 if (!skb2) in ip_set_protocol()
2041 kfree_skb(skb2); in ip_set_protocol()
2065 if (!skb2) in ip_set_byname()
2083 kfree_skb(skb2); in ip_set_byname()
2113 if (!skb2) in ip_set_byindex()
[all …]
/linux-6.15/drivers/net/team/
H A Dteam_mode_broadcast.c18 struct sk_buff *skb2; in bc_transmit() local
25 skb2 = skb_clone(skb, GFP_ATOMIC); in bc_transmit()
26 if (skb2) { in bc_transmit()
28 skb2); in bc_transmit()
/linux-6.15/net/xfrm/
H A Dxfrm_device.c121 struct sk_buff *skb2, *nskb, *pskb = NULL; in validate_xmit_xfrm() local
201 skb_list_walk_safe(skb, skb2, nskb) { in validate_xmit_xfrm()
203 skb_mark_not_on_list(skb2); in validate_xmit_xfrm()
205 xo = xfrm_offload(skb2); in validate_xmit_xfrm()
208 xfrm_outer_mode_prep(x, skb2); in validate_xmit_xfrm()
212 skb2->next = nskb; in validate_xmit_xfrm()
215 skb2->next = nskb; in validate_xmit_xfrm()
216 kfree_skb_list(skb2); in validate_xmit_xfrm()
219 if (skb == skb2) in validate_xmit_xfrm()
227 skb_push(skb2, skb2->data - skb_mac_header(skb2)); in validate_xmit_xfrm()
[all …]
H A Dxfrm_iptfs.c2249 if (skb2->len > remaining) in iptfs_output_queued()
2252 __skb_unlink(skb2, list); in iptfs_output_queued()
2263 kfree_skb(skb2); in iptfs_output_queued()
2272 shi2 = skb_shinfo(skb2); in iptfs_output_queued()
2277 skb_zcopy(skb2) || in iptfs_output_queued()
2282 skb->data_len += skb2->len; in iptfs_output_queued()
2283 skb->len += skb2->len; in iptfs_output_queued()
2284 remaining -= skb2->len; in iptfs_output_queued()
2292 *nextp = skb2; in iptfs_output_queued()
2293 nextp = &skb2->next; in iptfs_output_queued()
[all …]
/linux-6.15/net/mctp/test/
H A Droute-test.c174 struct sk_buff *skb2; in mctp_test_fragment() local
181 skb2 = skb_dequeue(&rt->pkts); in mctp_test_fragment()
183 if (!skb2) in mctp_test_fragment()
186 hdr2 = mctp_hdr(skb2); in mctp_test_fragment()
216 kfree_skb(skb2); in mctp_test_fragment()
347 struct sk_buff *skb, *skb2; in mctp_test_route_input_sk() local
416 struct sk_buff *skb, *skb2; in mctp_test_route_input_sk_reasm() local
551 struct sk_buff *skb, *skb2; in mctp_test_route_input_sk_keys() local
605 if (skb2) in mctp_test_route_input_sk_keys()
1083 struct sk_buff *skb, *skb2; in mctp_test_packet_flow() local
[all …]
/linux-6.15/net/mac802154/
H A Drx.c341 struct sk_buff *skb2; in __ieee802154_rx_handle_packet() local
363 skb2 = skb_clone(skb, GFP_ATOMIC); in __ieee802154_rx_handle_packet()
364 if (skb2) { in __ieee802154_rx_handle_packet()
365 skb2->dev = sdata->dev; in __ieee802154_rx_handle_packet()
366 ieee802154_subif_frame(sdata, skb2, &hdr); in __ieee802154_rx_handle_packet()
374 struct sk_buff *skb2; in ieee802154_monitors_rx() local
389 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee802154_monitors_rx()
390 if (skb2) { in ieee802154_monitors_rx()
391 skb2->dev = sdata->dev; in ieee802154_monitors_rx()
392 ieee802154_deliver_skb(skb2); in ieee802154_monitors_rx()
/linux-6.15/net/netfilter/
H A Dnfnetlink_cttimeout.c284 struct sk_buff *skb2; in cttimeout_get_timeout() local
289 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_get_timeout()
290 if (skb2 == NULL) { in cttimeout_get_timeout()
295 ret = ctnl_timeout_fill_info(skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout()
300 kfree_skb(skb2); in cttimeout_get_timeout()
304 ret = nfnetlink_unicast(skb2, info->net, NETLINK_CB(skb).portid); in cttimeout_get_timeout()
438 struct sk_buff *skb2; in cttimeout_default_get() local
493 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_default_get()
494 if (!skb2) in cttimeout_default_get()
497 ret = cttimeout_default_fill_info(info->net, skb2, in cttimeout_default_get()
[all …]
/linux-6.15/drivers/net/mctp/
H A Dmctp-usb.c182 struct sk_buff *skb2 = NULL; in mctp_usb_in_complete() local
216 skb2 = skb_clone(skb, GFP_ATOMIC); in mctp_usb_in_complete()
217 if (skb2) { in mctp_usb_in_complete()
218 if (!skb_pull(skb2, pkt_len)) { in mctp_usb_in_complete()
219 kfree_skb(skb2); in mctp_usb_in_complete()
220 skb2 = NULL; in mctp_usb_in_complete()
234 skb = skb2; in mctp_usb_in_complete()
/linux-6.15/net/ipv6/
H A Dnetfilter.c221 struct sk_buff *skb2; in br_ip6_fragment() local
223 skb2 = ip6_frag_next(skb, &state); in br_ip6_fragment()
224 if (IS_ERR(skb2)) { in br_ip6_fragment()
225 err = PTR_ERR(skb2); in br_ip6_fragment()
229 skb_set_delivery_time(skb2, tstamp, tstamp_type); in br_ip6_fragment()
230 err = output(net, sk, data, skb2); in br_ip6_fragment()
H A Dicmp.c667 struct sk_buff *skb2; in ip6_err_gen_icmpv6_unreach() local
679 if (!skb2) in ip6_err_gen_icmpv6_unreach()
682 skb_dst_drop(skb2); in ip6_err_gen_icmpv6_unreach()
683 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
684 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach()
690 skb2->dev = rt->dst.dev; in ip6_err_gen_icmpv6_unreach()
698 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
699 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach()
700 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach()
709 info, &temp_saddr, IP6CB(skb2)); in ip6_err_gen_icmpv6_unreach()
[all …]
H A Dip6_tunnel.c565 struct sk_buff *skb2; in ip4ip6_err() local
601 if (!skb2) in ip4ip6_err()
604 skb_dst_drop(skb2); in ip4ip6_err()
606 skb_pull(skb2, offset); in ip4ip6_err()
608 eiph = ip_hdr(skb2); in ip4ip6_err()
617 skb2->dev = rt->dst.dev; in ip4ip6_err()
650 kfree_skb(skb2); in ip4ip6_err()
672 if (!skb2) in ip6ip6_err()
675 skb_dst_drop(skb2); in ip6ip6_err()
681 NULL, 0, skb2, 0); in ip6ip6_err()
[all …]
/linux-6.15/net/mctp/
H A Droute.c869 struct sk_buff *skb2; in mctp_do_fragment_route() local
893 if (!skb2) { in mctp_do_fragment_route()
899 skb2->protocol = skb->protocol; in mctp_do_fragment_route()
901 skb2->dev = skb->dev; in mctp_do_fragment_route()
902 memcpy(skb2->cb, skb->cb, sizeof(skb2->cb)); in mctp_do_fragment_route()
908 skb_reserve(skb2, headroom); in mctp_do_fragment_route()
910 skb_put(skb2, hlen + size); in mctp_do_fragment_route()
911 skb2->transport_header = skb2->network_header + hlen; in mctp_do_fragment_route()
914 hdr2 = mctp_hdr(skb2); in mctp_do_fragment_route()
933 skb_ext_copy(skb2, skb); in mctp_do_fragment_route()
[all …]
/linux-6.15/net/caif/
H A Dcfpkt_skbuff.c324 struct sk_buff *skb2; in cfpkt_split() local
343 skb2 = pkt_to_skb(tmppkt); in cfpkt_split()
346 if (skb2 == NULL) in cfpkt_split()
349 skb_put_data(skb2, split, len2nd); in cfpkt_split()
354 skb2->priority = skb->priority; in cfpkt_split()
355 return skb_to_pkt(skb2); in cfpkt_split()
/linux-6.15/net/ipv4/
H A Dip_output.c674 struct sk_buff *skb2; in ip_frag_next() local
688 if (!skb2) in ip_frag_next()
695 ip_copy_metadata(skb2, skb); in ip_frag_next()
698 skb_reset_network_header(skb2); in ip_frag_next()
699 skb2->transport_header = skb2->network_header + state->hlen; in ip_frag_next()
725 iph = ip_hdr(skb2); in ip_frag_next()
743 return skb2; in ip_frag_next()
758 struct sk_buff *skb2; in ip_do_fragment() local
898 if (IS_ERR(skb2)) { in ip_do_fragment()
899 err = PTR_ERR(skb2); in ip_do_fragment()
[all …]
/linux-6.15/net/bridge/netfilter/
H A Dnf_conntrack_bridge.c108 struct sk_buff *skb2; in nf_br_ip_fragment() local
110 skb2 = ip_frag_next(skb, &state); in nf_br_ip_fragment()
111 if (IS_ERR(skb2)) { in nf_br_ip_fragment()
112 err = PTR_ERR(skb2); in nf_br_ip_fragment()
116 skb_set_delivery_time(skb2, tstamp, tstamp_type); in nf_br_ip_fragment()
117 err = output(net, sk, data, skb2); in nf_br_ip_fragment()
/linux-6.15/net/sched/
H A Dsch_choke.c149 struct sk_buff *skb2) in choke_match_flow() argument
153 if (skb1->protocol != skb2->protocol) in choke_match_flow()
162 if (!choke_skb_cb(skb2)->keys_valid) { in choke_match_flow()
163 choke_skb_cb(skb2)->keys_valid = 1; in choke_match_flow()
164 skb_flow_dissect_flow_keys(skb2, &temp, 0); in choke_match_flow()
165 make_flow_keys_digest(&choke_skb_cb(skb2)->keys, &temp); in choke_match_flow()
169 &choke_skb_cb(skb2)->keys, in choke_match_flow()

123