/Linux-v5.15/drivers/net/usb/ |
D | cdc_eem.c | 92 struct sk_buff *skb2 = NULL; in eem_tx_fixup() local 125 skb2 = skb_copy_expand(skb, EEM_HEAD, ETH_FCS_LEN + padlen, flags); in eem_tx_fixup() 127 if (!skb2) in eem_tx_fixup() 130 skb = skb2; in eem_tx_fixup() 168 struct sk_buff *skb2 = NULL; in eem_rx_fixup() local 217 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_rx_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() [all …]
|
D | cx82310_eth.c | 245 struct sk_buff *skb2; in cx82310_rx_fixup() local 254 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup() 255 if (!skb2) in cx82310_rx_fixup() 257 skb_put(skb2, len); in cx82310_rx_fixup() 258 memcpy(skb2->data, (void *)dev->partial_data, in cx82310_rx_fixup() 260 memcpy(skb2->data + dev->partial_len, skb->data, in cx82310_rx_fixup() 262 usbnet_skb_return(dev, skb2); in cx82310_rx_fixup() 299 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup() 300 if (!skb2) in cx82310_rx_fixup() 302 skb_put(skb2, len); in cx82310_rx_fixup() [all …]
|
D | kalmia.c | 160 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()
|
D | int51x1.c | 83 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()
|
D | rndis_host.c | 495 struct sk_buff *skb2; in rndis_rx_fixup() local 521 skb2 = skb_clone(skb, GFP_ATOMIC); in rndis_rx_fixup() 522 if (unlikely(!skb2)) in rndis_rx_fixup() 525 skb_trim(skb2, data_len); in rndis_rx_fixup() 526 usbnet_skb_return(dev, skb2); in rndis_rx_fixup() 538 struct sk_buff *skb2; in rndis_tx_fixup() local 559 skb2 = skb_copy_expand(skb, sizeof *hdr, 1, flags); in rndis_tx_fixup() 561 if (unlikely(!skb2)) in rndis_tx_fixup() 562 return skb2; in rndis_tx_fixup() 563 skb = skb2; in rndis_tx_fixup()
|
/Linux-v5.15/drivers/net/wireless/microchip/wilc1000/ |
D | mon.c | 147 struct sk_buff *skb2; in wilc_wfi_mon_xmit() local 163 skb2 = dev_alloc_skb(skb->len + sizeof(*cb_hdr)); in wilc_wfi_mon_xmit() 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() [all …]
|
/Linux-v5.15/drivers/usb/gadget/function/ |
D | f_eem.c | 343 struct sk_buff *skb2 = NULL; in eem_wrap() local 365 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap() 367 skb = skb2; in eem_wrap() 402 struct sk_buff *skb2; in eem_unwrap() local 444 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_unwrap() 445 if (unlikely(!skb2)) { in eem_unwrap() 449 skb_trim(skb2, len); in eem_unwrap() 451 skb_push(skb2, 2)); in eem_unwrap() 456 dev_kfree_skb_any(skb2); in eem_unwrap() 460 req->buf = kmalloc(skb2->len, GFP_KERNEL); in eem_unwrap() [all …]
|
D | f_ncm.c | 957 struct sk_buff *skb2 = NULL; in package_for_tx() local 991 swap(skb2, ncm->skb_tx_data); in package_for_tx() 998 skb_put_zero(skb2, ndp_pad); in package_for_tx() 1001 skb_put_data(skb2, ncm->skb_tx_ndp->data, ncm->skb_tx_ndp->len); in package_for_tx() 1006 skb_put_zero(skb2, dgram_idx_len); in package_for_tx() 1008 return skb2; in package_for_tx() 1015 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local 1053 skb2 = package_for_tx(ncm); in ncm_wrap_ntb() 1054 if (!skb2) in ncm_wrap_ntb() 1128 skb2 = package_for_tx(ncm); in ncm_wrap_ntb() [all …]
|
/Linux-v5.15/net/xfrm/ |
D | xfrm_device.c | 106 struct sk_buff *skb2, *nskb, *pskb = NULL; in validate_xmit_xfrm() local 175 skb_list_walk_safe(skb, skb2, nskb) { in validate_xmit_xfrm() 177 skb_mark_not_on_list(skb2); in validate_xmit_xfrm() 179 xo = xfrm_offload(skb2); in validate_xmit_xfrm() 182 xfrm_outer_mode_prep(x, skb2); in validate_xmit_xfrm() 184 err = x->type_offload->xmit(x, skb2, esp_features); in validate_xmit_xfrm() 186 skb2->next = nskb; in validate_xmit_xfrm() 189 skb2->next = nskb; in validate_xmit_xfrm() 190 kfree_skb_list(skb2); in validate_xmit_xfrm() 193 if (skb == skb2) in validate_xmit_xfrm() [all …]
|
/Linux-v5.15/net/netfilter/ipset/ |
D | ip_set_core.c | 1710 struct sk_buff *skb2; in call_ad() local 1719 skb2 = nlmsg_new(payload, GFP_KERNEL); in call_ad() 1720 if (!skb2) in call_ad() 1722 rep = __nlmsg_put(skb2, NETLINK_CB(skb).portid, in call_ad() 1734 nlmsg_free(skb2); in call_ad() 1741 nfnetlink_unicast(skb2, net, NETLINK_CB(skb).portid); in call_ad() 1859 struct sk_buff *skb2; in ip_set_header() local 1870 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ip_set_header() 1871 if (!skb2) in ip_set_header() 1874 nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, info->nlh->nlmsg_seq, 0, in ip_set_header() [all …]
|
/Linux-v5.15/drivers/net/team/ |
D | team_mode_broadcast.c | 19 struct sk_buff *skb2; in bc_transmit() local 26 skb2 = skb_clone(skb, GFP_ATOMIC); in bc_transmit() 27 if (skb2) { in bc_transmit() 29 skb2); in bc_transmit()
|
/Linux-v5.15/net/decnet/netfilter/ |
D | dn_rtmsg.c | 64 struct sk_buff *skb2; in dnrmg_send_peer() local 80 skb2 = dnrmg_build_message(skb, &status); in dnrmg_send_peer() 81 if (skb2 == NULL) in dnrmg_send_peer() 83 NETLINK_CB(skb2).dst_group = group; in dnrmg_send_peer() 84 netlink_broadcast(dnrmg, skb2, 0, group, GFP_ATOMIC); in dnrmg_send_peer()
|
/Linux-v5.15/net/sched/ |
D | act_mirred.c | 222 struct sk_buff *skb2 = skb; in tcf_mirred_act() local 269 skb2 = skb_clone(skb, GFP_ATOMIC); in tcf_mirred_act() 270 if (!skb2) in tcf_mirred_act() 275 nf_reset_ct(skb2); in tcf_mirred_act() 286 skb_pull_rcsum(skb2, mac_len); in tcf_mirred_act() 289 skb_push_rcsum(skb2, mac_len); in tcf_mirred_act() 293 skb2->skb_iif = skb->dev->ifindex; in tcf_mirred_act() 294 skb2->dev = dev; in tcf_mirred_act() 298 skb_set_redirected(skb2, skb2->tc_at_ingress); in tcf_mirred_act() 311 err = tcf_mirred_forward(want_ingress, skb2); in tcf_mirred_act()
|
D | sch_choke.c | 150 struct sk_buff *skb2) in choke_match_flow() argument 154 if (skb1->protocol != skb2->protocol) in choke_match_flow() 163 if (!choke_skb_cb(skb2)->keys_valid) { in choke_match_flow() 164 choke_skb_cb(skb2)->keys_valid = 1; in choke_match_flow() 165 skb_flow_dissect_flow_keys(skb2, &temp, 0); in choke_match_flow() 166 make_flow_keys_digest(&choke_skb_cb(skb2)->keys, &temp); in choke_match_flow() 170 &choke_skb_cb(skb2)->keys, in choke_match_flow()
|
/Linux-v5.15/net/netfilter/ |
D | nfnetlink_cttimeout.c | 271 struct sk_buff *skb2; in cttimeout_get_timeout() local 276 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_get_timeout() 277 if (skb2 == NULL) { in cttimeout_get_timeout() 282 ret = ctnl_timeout_fill_info(skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout() 287 kfree_skb(skb2); in cttimeout_get_timeout() 291 ret = nfnetlink_unicast(skb2, info->net, NETLINK_CB(skb).portid); in cttimeout_get_timeout() 426 struct sk_buff *skb2; in cttimeout_default_get() local 481 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_default_get() 482 if (!skb2) in cttimeout_default_get() 485 ret = cttimeout_default_fill_info(info->net, skb2, in cttimeout_default_get() [all …]
|
/Linux-v5.15/net/ipv6/ |
D | netfilter.c | 214 struct sk_buff *skb2; in br_ip6_fragment() local 216 skb2 = ip6_frag_next(skb, &state); in br_ip6_fragment() 217 if (IS_ERR(skb2)) { in br_ip6_fragment() 218 err = PTR_ERR(skb2); in br_ip6_fragment() 222 skb2->tstamp = tstamp; in br_ip6_fragment() 223 err = output(net, sk, data, skb2); in br_ip6_fragment()
|
D | icmp.c | 658 struct sk_buff *skb2; in ip6_err_gen_icmpv6_unreach() local 668 skb2 = data_len ? skb_copy(skb, GFP_ATOMIC) : skb_clone(skb, GFP_ATOMIC); in ip6_err_gen_icmpv6_unreach() 670 if (!skb2) in ip6_err_gen_icmpv6_unreach() 673 skb_dst_drop(skb2); in ip6_err_gen_icmpv6_unreach() 674 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 675 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach() 677 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, NULL, 0, in ip6_err_gen_icmpv6_unreach() 681 skb2->dev = rt->dst.dev; in ip6_err_gen_icmpv6_unreach() 689 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 690 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach() [all …]
|
/Linux-v5.15/net/mctp/ |
D | route.c | 571 struct sk_buff *skb2; in mctp_do_fragment_route() local 591 skb2 = alloc_skb(MCTP_HEADER_MAXLEN + hlen + size, GFP_KERNEL); in mctp_do_fragment_route() 592 if (!skb2) { in mctp_do_fragment_route() 598 skb2->protocol = skb->protocol; in mctp_do_fragment_route() 599 skb2->priority = skb->priority; in mctp_do_fragment_route() 600 skb2->dev = skb->dev; in mctp_do_fragment_route() 601 memcpy(skb2->cb, skb->cb, sizeof(skb2->cb)); in mctp_do_fragment_route() 604 skb_set_owner_w(skb2, skb->sk); in mctp_do_fragment_route() 607 skb_reserve(skb2, MCTP_HEADER_MAXLEN); in mctp_do_fragment_route() 608 skb_reset_network_header(skb2); in mctp_do_fragment_route() [all …]
|
/Linux-v5.15/net/mac802154/ |
D | rx.c | 223 struct sk_buff *skb2; in ieee802154_monitors_rx() local 238 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee802154_monitors_rx() 239 if (skb2) { in ieee802154_monitors_rx() 240 skb2->dev = sdata->dev; in ieee802154_monitors_rx() 241 ieee802154_deliver_skb(skb2); in ieee802154_monitors_rx()
|
/Linux-v5.15/net/decnet/ |
D | dn_neigh.c | 221 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_long_output() local 222 if (skb2 == NULL) { in dn_long_output() 228 skb = skb2; in dn_long_output() 269 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_short_output() local 270 if (skb2 == NULL) { in dn_short_output() 276 skb = skb2; in dn_short_output() 311 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_phase3_output() local 312 if (skb2 == NULL) { in dn_phase3_output() 318 skb = skb2; in dn_phase3_output()
|
D | dn_nsp_out.c | 207 struct sk_buff *skb2; in dn_nsp_clone_and_send() local 210 if ((skb2 = skb_clone(skb, gfp)) != NULL) { in dn_nsp_clone_and_send() 214 skb2->sk = skb->sk; in dn_nsp_clone_and_send() 215 dn_nsp_send(skb2); in dn_nsp_clone_and_send() 373 struct sk_buff *skb2, *n, *ack = NULL; in dn_nsp_check_xmit_queue() local 381 skb_queue_walk_safe(q, skb2, n) { in dn_nsp_check_xmit_queue() 382 struct dn_skb_cb *cb2 = DN_SKB_CB(skb2); in dn_nsp_check_xmit_queue() 385 ack = skb2; in dn_nsp_check_xmit_queue()
|
/Linux-v5.15/net/caif/ |
D | cfpkt_skbuff.c | 333 struct sk_buff *skb2; in cfpkt_split() local 352 skb2 = pkt_to_skb(tmppkt); in cfpkt_split() 355 if (skb2 == NULL) in cfpkt_split() 358 skb_put_data(skb2, split, len2nd); in cfpkt_split() 363 skb2->priority = skb->priority; in cfpkt_split() 364 return skb_to_pkt(skb2); in cfpkt_split()
|
/Linux-v5.15/drivers/net/wireless/intersil/hostap/ |
D | hostap_80211_rx.c | 481 struct sk_buff *skb2; in hostap_rx_frame_mgmt() local 484 skb2 = skb_clone(skb, GFP_ATOMIC); in hostap_rx_frame_mgmt() 485 if (skb2) in hostap_rx_frame_mgmt() 486 hostap_rx(skb2->dev, skb2, rx_stats); in hostap_rx_frame_mgmt() 727 struct sk_buff *skb2 = NULL; in hostap_80211_rx() local 1074 skb2 = skb_clone(skb, GFP_ATOMIC); in hostap_80211_rx() 1075 if (skb2 == NULL) in hostap_80211_rx() 1082 skb2 = skb; in hostap_80211_rx() 1087 if (skb2 != NULL) { in hostap_80211_rx() 1089 skb2->dev = dev; in hostap_80211_rx() [all …]
|
/Linux-v5.15/net/ipv4/ |
D | ip_output.c | 672 struct sk_buff *skb2; in ip_frag_next() local 686 skb2 = alloc_skb(len + state->hlen + state->ll_rs, GFP_ATOMIC); in ip_frag_next() 687 if (!skb2) in ip_frag_next() 694 ip_copy_metadata(skb2, skb); in ip_frag_next() 695 skb_reserve(skb2, state->ll_rs); in ip_frag_next() 696 skb_put(skb2, len + state->hlen); in ip_frag_next() 697 skb_reset_network_header(skb2); in ip_frag_next() 698 skb2->transport_header = skb2->network_header + state->hlen; in ip_frag_next() 706 skb_set_owner_w(skb2, skb->sk); in ip_frag_next() 712 skb_copy_from_linear_data(skb, skb_network_header(skb2), state->hlen); in ip_frag_next() [all …]
|
/Linux-v5.15/net/bridge/netfilter/ |
D | nf_conntrack_bridge.c | 107 struct sk_buff *skb2; in nf_br_ip_fragment() local 109 skb2 = ip_frag_next(skb, &state); in nf_br_ip_fragment() 110 if (IS_ERR(skb2)) { in nf_br_ip_fragment() 111 err = PTR_ERR(skb2); in nf_br_ip_fragment() 115 skb2->tstamp = tstamp; in nf_br_ip_fragment() 116 err = output(net, sk, data, skb2); in nf_br_ip_fragment()
|