| /linux/drivers/net/usb/ |
| H A 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 …]
|
| H 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() 261 memcpy(skb2->data + dev->partial_len, skb->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() [all …]
|
| H A D | kalmia.c | 167 struct sk_buff *skb2 = NULL; in kalmia_tx_fixup() local 190 skb2 = skb_copy_expand(skb, KALMIA_HEADER_LENGTH, in kalmia_tx_fixup() 192 if (!skb2) in kalmia_tx_fixup() 196 skb = skb2; in kalmia_tx_fixup() 249 struct sk_buff *skb2 = NULL; in kalmia_rx_fixup() local 307 skb2 = skb; in kalmia_rx_fixup() 310 skb2 = skb_clone(skb, GFP_ATOMIC); in kalmia_rx_fixup() 311 if (unlikely(!skb2)) in kalmia_rx_fixup() 315 skb_trim(skb2, ether_packet_length); in kalmia_rx_fixup() 321 usbnet_skb_return(dev, skb2); in kalmia_rx_fixup()
|
| H A D | rndis_host.c | 507 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 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/drivers/usb/gadget/function/ |
| H A D | f_eem.c | 341 struct sk_buff *skb2 = NULL; in eem_wrap() local 363 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap() 365 skb = skb2; in eem_wrap() 400 struct sk_buff *skb2; in eem_unwrap() local 442 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_unwrap() 443 if (unlikely(!skb2)) { in eem_unwrap() 447 skb_trim(skb2, len); in eem_unwrap() 449 skb_push(skb2, 2)); in eem_unwrap() 454 dev_kfree_skb_any(skb2); in eem_unwrap() 458 req->buf = kmalloc(skb2->len, GFP_KERNEL); in eem_unwrap() [all …]
|
| H A D | f_ncm.c | 960 struct sk_buff *skb2 = NULL; in package_for_tx() local 994 swap(skb2, ncm->skb_tx_data); in package_for_tx() 1001 skb_put_zero(skb2, ndp_pad); in package_for_tx() 1004 skb_put_data(skb2, ncm->skb_tx_ndp->data, ncm->skb_tx_ndp->len); in package_for_tx() 1009 skb_put_zero(skb2, dgram_idx_len); in package_for_tx() 1011 return skb2; in package_for_tx() 1018 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local 1056 skb2 = package_for_tx(ncm); in ncm_wrap_ntb() 1057 if (!skb2) in ncm_wrap_ntb() 1131 skb2 = package_for_tx(ncm); in ncm_wrap_ntb() [all …]
|
| /linux/drivers/net/wireless/microchip/wilc1000/ |
| H A 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/net/netfilter/ipset/ |
| H A D | ip_set_core.c | 1764 struct sk_buff *skb2; in call_ad() local 1773 skb2 = nlmsg_new(payload, GFP_KERNEL); in call_ad() 1774 if (!skb2) in call_ad() 1776 rep = nlmsg_put(skb2, NETLINK_CB(skb).portid, in call_ad() 1790 nlmsg_free(skb2); in call_ad() 1797 nfnetlink_unicast(skb2, net, NETLINK_CB(skb).portid); in call_ad() 1915 struct sk_buff *skb2; in ip_set_header() local 1926 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ip_set_header() 1927 if (!skb2) in ip_set_header() 1930 nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, info->nlh->nlmsg_seq, 0, in ip_set_header() [all …]
|
| /linux/net/xfrm/ |
| H A D | xfrm_device.c | 121 struct sk_buff *skb2, *nskb, *pskb = NULL; in validate_xmit_xfrm() local 197 skb_list_walk_safe(skb, skb2, nskb) { in validate_xmit_xfrm() 199 skb_mark_not_on_list(skb2); in validate_xmit_xfrm() 201 xo = xfrm_offload(skb2); in validate_xmit_xfrm() 204 xfrm_outer_mode_prep(x, skb2); in validate_xmit_xfrm() 206 err = x->type_offload->xmit(x, skb2, esp_features); in validate_xmit_xfrm() 208 skb2->next = nskb; in validate_xmit_xfrm() 211 skb2->next = nskb; in validate_xmit_xfrm() 212 kfree_skb_list(skb2); in validate_xmit_xfrm() 215 if (skb == skb2) in validate_xmit_xfrm() [all …]
|
| H A D | xfrm_iptfs.c | 2173 struct sk_buff *skb, *skb2, **nextp; in iptfs_output_queued() local 2247 while ((skb2 = skb_peek(list))) { in iptfs_output_queued() 2248 trace_iptfs_ingress_nth_peek(skb2, remaining); in iptfs_output_queued() 2249 if (skb2->len > remaining) in iptfs_output_queued() 2252 __skb_unlink(skb2, list); in iptfs_output_queued() 2260 if (skb2->ip_summed == CHECKSUM_PARTIAL) { in iptfs_output_queued() 2261 if (skb_checksum_help(skb2)) { in iptfs_output_queued() 2263 kfree_skb(skb2); in iptfs_output_queued() 2272 shi2 = skb_shinfo(skb2); in iptfs_output_queued() 2275 (!skb2->head_frag && skb_headlen(skb)) || in iptfs_output_queued() [all …]
|
| /linux/drivers/net/team/ |
| H A D | team_mode_broadcast.c | 18 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/net/mctp/test/ |
| H A D | route-test.c | 55 struct sk_buff *skb2; in mctp_test_fragment() 62 skb2 = skb_dequeue(&dev->pkts); in mctp_test_fragment() 63 if (!skb2) in mctp_test_fragment() 66 hdr2 = mctp_hdr(skb2); in mctp_test_fragment() 92 KUNIT_EXPECT_EQ(test, skb2->len, mtu); in mctp_test_fragment() 94 KUNIT_EXPECT_LE(test, skb2->len, mtu); in mctp_test_fragment() 96 kfree_skb(skb2); in mctp_test_fragment() 225 struct sk_buff *skb, *skb2; 245 skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc); in mctp_test_route_input_sk() 246 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, skb2); in mctp_test_route_input_sk() 57 struct sk_buff *skb2; mctp_test_fragment() local 236 struct sk_buff *skb, *skb2; mctp_test_route_input_sk() local 307 struct sk_buff *skb, *skb2; mctp_test_route_input_sk_reasm() local 442 struct sk_buff *skb, *skb2; mctp_test_route_input_sk_keys() local 978 struct sk_buff *skb, *skb2; mctp_test_packet_flow() local 1141 struct sk_buff *skb, *skb2; mctp_test_route_extaddr_input() local [all...] |
| /linux/net/mac802154/ |
| H A D | rx.c | 341 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/net/netfilter/ |
| H A D | nfnetlink_cttimeout.c | 283 struct sk_buff *skb2; in cttimeout_get_timeout() local 288 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_get_timeout() 289 if (skb2 == NULL) { in cttimeout_get_timeout() 294 ret = ctnl_timeout_fill_info(skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout() 299 kfree_skb(skb2); in cttimeout_get_timeout() 303 ret = nfnetlink_unicast(skb2, info->net, NETLINK_CB(skb).portid); in cttimeout_get_timeout() 437 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) in cttimeout_default_get() 491 ret = cttimeout_default_fill_info(info->net, skb2, in cttimeout_default_get() [all …]
|
| H A D | nfnetlink_acct.c | 298 struct sk_buff *skb2; in nfnl_acct_get() local 303 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in nfnl_acct_get() 304 if (skb2 == NULL) { in nfnl_acct_get() 309 ret = nfnl_acct_fill_info(skb2, NETLINK_CB(skb).portid, in nfnl_acct_get() 314 kfree_skb(skb2); in nfnl_acct_get() 318 ret = nfnetlink_unicast(skb2, info->net, NETLINK_CB(skb).portid); in nfnl_acct_get()
|
| /linux/drivers/net/mctp/ |
| H A D | mctp-usb.c | 184 struct sk_buff *skb2 = NULL; in mctp_usb_in_complete() local 219 skb2 = skb_clone(skb, GFP_ATOMIC); in mctp_usb_in_complete() 220 if (skb2) { in mctp_usb_in_complete() 221 if (!skb_pull(skb2, pkt_len)) { in mctp_usb_in_complete() 222 kfree_skb(skb2); in mctp_usb_in_complete() 223 skb2 = NULL; in mctp_usb_in_complete() 237 skb = skb2; in mctp_usb_in_complete()
|
| /linux/net/ipv6/ |
| H A D | icmp.c | 863 struct sk_buff *skb2; in ip6_err_gen_icmpv6_unreach() local 873 skb2 = data_len ? skb_copy(skb, GFP_ATOMIC) : skb_clone(skb, GFP_ATOMIC); in ip6_err_gen_icmpv6_unreach() 875 if (!skb2) in ip6_err_gen_icmpv6_unreach() 878 skb_dst_drop(skb2); in ip6_err_gen_icmpv6_unreach() 879 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 880 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach() 882 rt = rt6_lookup(dev_net_rcu(skb->dev), &ipv6_hdr(skb2)->saddr, in ip6_err_gen_icmpv6_unreach() 886 skb2->dev = rt->dst.dev; in ip6_err_gen_icmpv6_unreach() 894 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 895 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach() [all …]
|
| H A D | ip6_tunnel.c | 565 struct sk_buff *skb2; in ip4ip6_err() local 600 skb2 = skb_clone(skb, GFP_ATOMIC); in ip4ip6_err() 601 if (!skb2) in ip4ip6_err() 604 skb_dst_drop(skb2); in ip4ip6_err() 606 skb_pull(skb2, offset); in ip4ip6_err() 607 skb_reset_network_header(skb2); in ip4ip6_err() 608 eiph = ip_hdr(skb2); in ip4ip6_err() 617 skb2->dev = rt->dst.dev; in ip4ip6_err() 631 skb_dst_set(skb2, &rt->dst); in ip4ip6_err() 633 if (ip_route_input(skb2, eiph->daddr, eiph->saddr, in ip4ip6_err() [all …]
|
| /linux/net/caif/ |
| H A D | cfpkt_skbuff.c | 324 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/net/ipv4/ |
| H A D | ip_output.c | 681 struct sk_buff *skb2; in ip_frag_next() local 694 skb2 = alloc_skb(len + state->hlen + state->ll_rs, GFP_ATOMIC); in ip_frag_next() 695 if (!skb2) in ip_frag_next() 702 ip_copy_metadata(skb2, skb); in ip_frag_next() 703 skb_reserve(skb2, state->ll_rs); in ip_frag_next() 704 skb_put(skb2, len + state->hlen); in ip_frag_next() 705 skb_reset_network_header(skb2); in ip_frag_next() 706 skb2->transport_header = skb2->network_header + state->hlen; in ip_frag_next() 714 skb_set_owner_w(skb2, sk in ip_frag_next() 765 struct sk_buff *skb2; ip_do_fragment() local [all...] |
| /linux/net/bridge/netfilter/ |
| H A D | nf_conntrack_bridge.c | 107 struct sk_buff *skb2; in nf_br_ip_fragment() 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 skb_set_delivery_time(skb2, tstamp, tstamp_type); in nf_br_ip_fragment() 116 err = output(net, sk, data, skb2); in nf_br_ip_fragment() 108 struct sk_buff *skb2; nf_br_ip_fragment() local
|
| /linux/net/mctp/ |
| H A D | route.c | 1024 struct sk_buff *skb2; in mctp_do_fragment_route() local 1047 skb2 = alloc_skb(headroom + hlen + size, GFP_KERNEL); in mctp_do_fragment_route() 1048 if (!skb2) { in mctp_do_fragment_route() 1054 skb2->protocol = skb->protocol; in mctp_do_fragment_route() 1055 skb2->priority = skb->priority; in mctp_do_fragment_route() 1056 skb2->dev = skb->dev; in mctp_do_fragment_route() 1057 memcpy(skb2->cb, skb->cb, sizeof(skb2->cb)); in mctp_do_fragment_route() 1060 skb_set_owner_w(skb2, skb->sk); in mctp_do_fragment_route() 1063 skb_reserve(skb2, headroom); in mctp_do_fragment_route() 1064 skb_reset_network_header(skb2); in mctp_do_fragment_route() [all …]
|
| /linux/net/sched/ |
| H A D | sch_choke.c | 149 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()
|
| /linux/net/atm/ |
| H A D | lec.c | 143 struct sk_buff *skb2; in lec_handle_bridge() local 146 skb2 = alloc_skb(sizeof(struct atmlec_msg), GFP_ATOMIC); in lec_handle_bridge() 147 if (skb2 == NULL) in lec_handle_bridge() 149 skb2->len = sizeof(struct atmlec_msg); in lec_handle_bridge() 150 mesg = (struct atmlec_msg *)skb2->data; in lec_handle_bridge() 157 atm_force_charge(priv->lecd, skb2->truesize); in lec_handle_bridge() 159 skb_queue_tail(&sk->sk_receive_queue, skb2); in lec_handle_bridge() 209 struct sk_buff *skb2; in lec_start_xmit() local 238 skb2 = skb_realloc_headroom(skb, LEC_HEADER_LEN); in lec_start_xmit() 239 if (unlikely(!skb2)) { in lec_start_xmit() [all …]
|