/linux/drivers/net/usb/ |
A D | cdc_eem.c | 92 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 …]
|
A D | cx82310_eth.c | 246 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 …]
|
A 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()
|
A 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()
|
A 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()
|
/linux/drivers/net/wireless/microchip/wilc1000/ |
A D | mon.c | 147 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/drivers/usb/gadget/function/ |
A D | f_eem.c | 367 skb = skb2; in eem_wrap() 402 struct sk_buff *skb2; in eem_unwrap() local 445 if (unlikely(!skb2)) { in eem_unwrap() 449 skb_trim(skb2, len); in eem_unwrap() 451 skb_push(skb2, 2)); in eem_unwrap() 474 ctx->skb = skb2; in eem_unwrap() 477 skb_copy_bits(skb2, 0, req->buf, skb2->len); in eem_unwrap() 478 req->length = skb2->len; in eem_unwrap() 531 if (unlikely(!skb2)) { in eem_unwrap() 542 dev_kfree_skb_any(skb2); in eem_unwrap() [all …]
|
A 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() 1008 return skb2; in package_for_tx() 1015 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local 1054 if (!skb2) in ncm_wrap_ntb() 1128 skb2 = package_for_tx(ncm); in ncm_wrap_ntb() 1129 if (!skb2) in ncm_wrap_ntb() 1133 return skb2; in ncm_wrap_ntb() 1182 struct sk_buff *skb2; in ncm_unwrap_ntb() local [all …]
|
/linux/net/mctp/test/ |
A D | route-test.c | 167 struct sk_buff *skb2; in mctp_test_fragment() local 174 skb2 = skb_dequeue(&rt->pkts); in mctp_test_fragment() 176 if (!skb2) in mctp_test_fragment() 179 hdr2 = mctp_hdr(skb2); in mctp_test_fragment() 205 KUNIT_EXPECT_EQ(test, skb2->len, mtu); in mctp_test_fragment() 207 KUNIT_EXPECT_LE(test, skb2->len, mtu); in mctp_test_fragment() 209 kfree_skb(skb2); in mctp_test_fragment() 339 struct sk_buff *skb, *skb2; in mctp_test_route_input_sk() local 364 skb_free_datagram(sock->sk, skb2); in mctp_test_route_input_sk() 408 struct sk_buff *skb, *skb2; in mctp_test_route_input_sk_reasm() local [all …]
|
/linux/net/xfrm/ |
A 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() 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() 201 skb_push(skb2, skb2->data - skb_mac_header(skb2)); in validate_xmit_xfrm() [all …]
|
/linux/net/netfilter/ipset/ |
A D | ip_set_core.c | 1720 if (!skb2) in call_ad() 1871 if (!skb2) in ip_set_header() 1891 kfree_skb(skb2); in ip_set_header() 1925 if (!skb2) in ip_set_type() 1946 kfree_skb(skb2); in ip_set_type() 1967 if (!skb2) in ip_set_protocol() 1985 kfree_skb(skb2); in ip_set_protocol() 2009 if (!skb2) in ip_set_byname() 2027 kfree_skb(skb2); in ip_set_byname() 2057 if (!skb2) in ip_set_byindex() [all …]
|
/linux/net/sched/ |
A D | act_mirred.c | 223 struct sk_buff *skb2 = skb; in tcf_mirred_act() local 272 skb2 = skb_clone(skb, GFP_ATOMIC); in tcf_mirred_act() 273 if (!skb2) in tcf_mirred_act() 280 nf_reset_ct(skb2); in tcf_mirred_act() 282 skb_dst_drop(skb2); in tcf_mirred_act() 291 skb_pull_rcsum(skb2, mac_len); in tcf_mirred_act() 294 skb_push_rcsum(skb2, mac_len); in tcf_mirred_act() 298 skb2->skb_iif = skb->dev->ifindex; in tcf_mirred_act() 299 skb2->dev = dev; in tcf_mirred_act() 303 skb_set_redirected(skb2, skb2->tc_at_ingress); in tcf_mirred_act() [all …]
|
/linux/drivers/net/team/ |
A 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/net/decnet/netfilter/ |
A 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/net/netfilter/ |
A 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/net/ipv6/ |
A D | icmp.c | 659 struct sk_buff *skb2; in ip6_err_gen_icmpv6_unreach() local 671 if (!skb2) in ip6_err_gen_icmpv6_unreach() 674 skb_dst_drop(skb2); in ip6_err_gen_icmpv6_unreach() 675 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 676 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach() 682 skb2->dev = rt->dst.dev; in ip6_err_gen_icmpv6_unreach() 690 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 691 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach() 692 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach() 701 info, &temp_saddr, IP6CB(skb2)); in ip6_err_gen_icmpv6_unreach() [all …]
|
A 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()
|
/linux/net/mctp/ |
A D | route.c | 712 struct sk_buff *skb2; in mctp_do_fragment_route() local 733 if (!skb2) { in mctp_do_fragment_route() 739 skb2->protocol = skb->protocol; in mctp_do_fragment_route() 740 skb2->priority = skb->priority; in mctp_do_fragment_route() 741 skb2->dev = skb->dev; in mctp_do_fragment_route() 742 memcpy(skb2->cb, skb->cb, sizeof(skb2->cb)); in mctp_do_fragment_route() 749 skb_reset_network_header(skb2); in mctp_do_fragment_route() 750 skb_put(skb2, hlen + size); in mctp_do_fragment_route() 751 skb2->transport_header = skb2->network_header + hlen; in mctp_do_fragment_route() 754 hdr2 = mctp_hdr(skb2); in mctp_do_fragment_route() [all …]
|
/linux/net/decnet/ |
A 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()
|
A 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/net/mac802154/ |
A 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/net/caif/ |
A 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/drivers/net/wireless/intersil/hostap/ |
A D | hostap_80211_rx.c | 481 struct sk_buff *skb2; in hostap_rx_frame_mgmt() local 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 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() 1091 skb_reset_mac_header(skb2); in hostap_80211_rx() 1092 skb_reset_network_header(skb2); in hostap_80211_rx() [all …]
|
/linux/net/ipv4/ |
A D | ip_output.c | 672 struct sk_buff *skb2; in ip_frag_next() local 687 if (!skb2) in ip_frag_next() 694 ip_copy_metadata(skb2, skb); in ip_frag_next() 698 skb2->transport_header = skb2->network_header + state->hlen; in ip_frag_next() 724 iph = ip_hdr(skb2); in ip_frag_next() 742 return skb2; in ip_frag_next() 757 struct sk_buff *skb2; in ip_do_fragment() local 887 if (IS_ERR(skb2)) { in ip_do_fragment() 888 err = PTR_ERR(skb2); in ip_do_fragment() 896 skb2->tstamp = tstamp; in ip_do_fragment() [all …]
|
/linux/net/bridge/netfilter/ |
A 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()
|