/Linux-v5.10/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() 126 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()
|
D | gl620a.c | 156 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-v5.10/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.10/drivers/usb/gadget/function/ |
D | f_eem.c | 335 struct sk_buff *skb2 = NULL; in eem_wrap() local 357 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap() 359 skb = skb2; in eem_wrap() 394 struct sk_buff *skb2; in eem_unwrap() local 434 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_unwrap() 435 if (unlikely(!skb2)) { in eem_unwrap() 439 skb_trim(skb2, len); in eem_unwrap() 441 skb_push(skb2, 2)); in eem_unwrap() 442 skb_copy_bits(skb2, 0, req->buf, skb2->len); in eem_unwrap() 443 req->length = skb2->len; in eem_unwrap() [all …]
|
D | f_ncm.c | 961 struct sk_buff *skb2 = NULL; in package_for_tx() local 995 swap(skb2, ncm->skb_tx_data); in package_for_tx() 1002 skb_put_zero(skb2, ndp_pad); in package_for_tx() 1005 skb_put_data(skb2, ncm->skb_tx_ndp->data, ncm->skb_tx_ndp->len); in package_for_tx() 1010 skb_put_zero(skb2, dgram_idx_len); in package_for_tx() 1012 return skb2; in package_for_tx() 1019 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local 1059 skb2 = package_for_tx(ncm); in ncm_wrap_ntb() 1060 if (!skb2) in ncm_wrap_ntb() 1131 skb2 = package_for_tx(ncm); in ncm_wrap_ntb() [all …]
|
/Linux-v5.10/net/xfrm/ |
D | xfrm_device.c | 106 struct sk_buff *skb2, *nskb, *pskb = NULL; in validate_xmit_xfrm() local 177 skb_list_walk_safe(skb, skb2, nskb) { in validate_xmit_xfrm() 179 skb_mark_not_on_list(skb2); in validate_xmit_xfrm() 181 xo = xfrm_offload(skb2); in validate_xmit_xfrm() 184 xfrm_outer_mode_prep(x, skb2); in validate_xmit_xfrm() 186 err = x->type_offload->xmit(x, skb2, esp_features); in validate_xmit_xfrm() 188 skb2->next = nskb; in validate_xmit_xfrm() 191 skb2->next = nskb; in validate_xmit_xfrm() 192 kfree_skb_list(skb2); in validate_xmit_xfrm() 195 if (skb == skb2) in validate_xmit_xfrm() [all …]
|
/Linux-v5.10/net/netfilter/ipset/ |
D | ip_set_core.c | 1731 struct sk_buff *skb2; in call_ad() local 1740 skb2 = nlmsg_new(payload, GFP_KERNEL); in call_ad() 1741 if (!skb2) in call_ad() 1743 rep = __nlmsg_put(skb2, NETLINK_CB(skb).portid, in call_ad() 1755 nlmsg_free(skb2); in call_ad() 1762 netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in call_ad() 1889 struct sk_buff *skb2; in ip_set_header() local 1901 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ip_set_header() 1902 if (!skb2) in ip_set_header() 1905 nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0, in ip_set_header() [all …]
|
/Linux-v5.10/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.10/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.10/net/sched/ |
D | act_mirred.c | 212 struct sk_buff *skb2 = skb; in tcf_mirred_act() local 259 skb2 = skb_clone(skb, GFP_ATOMIC); in tcf_mirred_act() 260 if (!skb2) in tcf_mirred_act() 273 skb_pull_rcsum(skb2, mac_len); in tcf_mirred_act() 276 skb_push_rcsum(skb2, mac_len); in tcf_mirred_act() 280 skb2->skb_iif = skb->dev->ifindex; in tcf_mirred_act() 281 skb2->dev = dev; in tcf_mirred_act() 285 skb_set_redirected(skb2, skb2->tc_at_ingress); in tcf_mirred_act() 298 err = dev_queue_xmit(skb2); in tcf_mirred_act() 300 err = netif_receive_skb(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.10/net/netfilter/ |
D | nfnetlink_cttimeout.c | 263 struct sk_buff *skb2; in cttimeout_get_timeout() local 268 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_get_timeout() 269 if (skb2 == NULL) { in cttimeout_get_timeout() 274 ret = ctnl_timeout_fill_info(skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout() 279 kfree_skb(skb2); in cttimeout_get_timeout() 282 ret = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout() 431 struct sk_buff *skb2; in cttimeout_default_get() local 487 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_default_get() 488 if (skb2 == NULL) { in cttimeout_default_get() 493 ret = cttimeout_default_fill_info(net, skb2, NETLINK_CB(skb).portid, in cttimeout_default_get() [all …]
|
/Linux-v5.10/net/ipv6/ |
D | netfilter.c | 212 struct sk_buff *skb2; in br_ip6_fragment() local 214 skb2 = ip6_frag_next(skb, &state); in br_ip6_fragment() 215 if (IS_ERR(skb2)) { in br_ip6_fragment() 216 err = PTR_ERR(skb2); in br_ip6_fragment() 220 skb2->tstamp = tstamp; in br_ip6_fragment() 221 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.10/net/ipv4/ |
D | ip_output.c | 203 struct sk_buff *skb2; in ip_finish_output2() local 205 skb2 = skb_realloc_headroom(skb, LL_RESERVED_SPACE(dev)); in ip_finish_output2() 206 if (!skb2) { in ip_finish_output2() 211 skb_set_owner_w(skb2, skb->sk); in ip_finish_output2() 213 skb = skb2; in ip_finish_output2() 691 struct sk_buff *skb2; in ip_frag_next() local 705 skb2 = alloc_skb(len + state->hlen + state->ll_rs, GFP_ATOMIC); in ip_frag_next() 706 if (!skb2) in ip_frag_next() 713 ip_copy_metadata(skb2, skb); in ip_frag_next() 714 skb_reserve(skb2, state->ll_rs); in ip_frag_next() [all …]
|
/Linux-v5.10/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.10/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.10/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.10/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.10/net/bridge/netfilter/ |
D | nf_conntrack_bridge.c | 101 struct sk_buff *skb2; in nf_br_ip_fragment() local 103 skb2 = ip_frag_next(skb, &state); in nf_br_ip_fragment() 104 if (IS_ERR(skb2)) { in nf_br_ip_fragment() 105 err = PTR_ERR(skb2); in nf_br_ip_fragment() 109 skb2->tstamp = tstamp; in nf_br_ip_fragment() 110 err = output(net, sk, data, skb2); in nf_br_ip_fragment()
|