/openbmc/linux/drivers/net/usb/ |
H 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 …]
|
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() 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 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()
|
H 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()
|
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()
|
/openbmc/linux/drivers/net/wireless/microchip/wilc1000/ |
H 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 …]
|
/openbmc/linux/drivers/usb/gadget/function/ |
H A D | f_eem.c | 365 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 D | f_ncm.c | 940 struct sk_buff *skb2 = NULL; in package_for_tx() local 974 swap(skb2, ncm->skb_tx_data); in package_for_tx() 981 skb_put_zero(skb2, ndp_pad); in package_for_tx() 991 return skb2; in package_for_tx() 998 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local 1037 if (!skb2) in ncm_wrap_ntb() 1111 skb2 = package_for_tx(ncm); in ncm_wrap_ntb() 1112 if (!skb2) in ncm_wrap_ntb() 1116 return skb2; in ncm_wrap_ntb() 1166 struct sk_buff *skb2; in ncm_unwrap_ntb() local [all …]
|
H A D | u_ether.c | 223 struct sk_buff *skb = req->context, *skb2; in rx_complete() local 251 skb2 = skb_dequeue(&dev->rx_frames); in rx_complete() 252 while (skb2) { in rx_complete() 254 || ETH_HLEN > skb2->len in rx_complete() 255 || skb2->len > GETHER_MAX_ETH_FRAME_LEN) { in rx_complete() 258 DBG(dev, "rx length %d\n", skb2->len); in rx_complete() 259 dev_kfree_skb_any(skb2); in rx_complete() 262 skb2->protocol = eth_type_trans(skb2, dev->net); in rx_complete() 264 dev->net->stats.rx_bytes += skb2->len; in rx_complete() 269 status = netif_rx(skb2); in rx_complete() [all …]
|
/openbmc/linux/net/mctp/test/ |
H A D | route-test.c | 162 struct sk_buff *skb2; in mctp_test_fragment() local 169 skb2 = skb_dequeue(&rt->pkts); in mctp_test_fragment() 171 if (!skb2) in mctp_test_fragment() 174 hdr2 = mctp_hdr(skb2); in mctp_test_fragment() 204 kfree_skb(skb2); in mctp_test_fragment() 334 struct sk_buff *skb, *skb2; in mctp_test_route_input_sk() local 364 KUNIT_EXPECT_NULL(test, skb2); in mctp_test_route_input_sk() 404 struct sk_buff *skb, *skb2; in mctp_test_route_input_sk_reasm() local 434 KUNIT_EXPECT_NULL(test, skb2); in mctp_test_route_input_sk_reasm() 540 struct sk_buff *skb, *skb2; in mctp_test_route_input_sk_keys() local [all …]
|
/openbmc/linux/net/netfilter/ipset/ |
H A D | ip_set_core.c | 1769 if (!skb2) in call_ad() 1922 if (!skb2) in ip_set_header() 1942 kfree_skb(skb2); in ip_set_header() 1976 if (!skb2) in ip_set_type() 1997 kfree_skb(skb2); in ip_set_type() 2018 if (!skb2) in ip_set_protocol() 2036 kfree_skb(skb2); in ip_set_protocol() 2060 if (!skb2) in ip_set_byname() 2078 kfree_skb(skb2); in ip_set_byname() 2108 if (!skb2) in ip_set_byindex() [all …]
|
/openbmc/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()
|
/openbmc/linux/net/xfrm/ |
H A D | xfrm_device.c | 119 struct sk_buff *skb2, *nskb, *pskb = NULL; in validate_xmit_xfrm() local 199 skb_list_walk_safe(skb, skb2, nskb) { in validate_xmit_xfrm() 201 skb_mark_not_on_list(skb2); in validate_xmit_xfrm() 203 xo = xfrm_offload(skb2); in validate_xmit_xfrm() 206 xfrm_outer_mode_prep(x, skb2); in validate_xmit_xfrm() 210 skb2->next = nskb; in validate_xmit_xfrm() 213 skb2->next = nskb; in validate_xmit_xfrm() 214 kfree_skb_list(skb2); in validate_xmit_xfrm() 217 if (skb == skb2) in validate_xmit_xfrm() 225 skb_push(skb2, skb2->data - skb_mac_header(skb2)); in validate_xmit_xfrm() [all …]
|
/openbmc/linux/net/mac802154/ |
H A D | rx.c | 313 struct sk_buff *skb2; in __ieee802154_rx_handle_packet() local 335 skb2 = skb_clone(skb, GFP_ATOMIC); in __ieee802154_rx_handle_packet() 336 if (skb2) { in __ieee802154_rx_handle_packet() 337 skb2->dev = sdata->dev; in __ieee802154_rx_handle_packet() 338 ieee802154_subif_frame(sdata, skb2, &hdr); in __ieee802154_rx_handle_packet() 346 struct sk_buff *skb2; in ieee802154_monitors_rx() local 361 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee802154_monitors_rx() 362 if (skb2) { in ieee802154_monitors_rx() 363 skb2->dev = sdata->dev; in ieee802154_monitors_rx() 364 ieee802154_deliver_skb(skb2); in ieee802154_monitors_rx()
|
/openbmc/linux/net/netfilter/ |
H A D | nfnetlink_cttimeout.c | 284 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() 439 struct sk_buff *skb2; in cttimeout_default_get() local 494 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_default_get() 495 if (!skb2) in cttimeout_default_get() 498 ret = cttimeout_default_fill_info(info->net, skb2, in cttimeout_default_get() [all …]
|
/openbmc/linux/net/ipv6/ |
H A D | netfilter.c | 220 struct sk_buff *skb2; in br_ip6_fragment() local 222 skb2 = ip6_frag_next(skb, &state); in br_ip6_fragment() 223 if (IS_ERR(skb2)) { in br_ip6_fragment() 224 err = PTR_ERR(skb2); in br_ip6_fragment() 228 skb_set_delivery_time(skb2, tstamp, mono_delivery_time); in br_ip6_fragment() 229 err = output(net, sk, data, skb2); in br_ip6_fragment()
|
H A D | icmp.c | 663 struct sk_buff *skb2; in ip6_err_gen_icmpv6_unreach() local 675 if (!skb2) in ip6_err_gen_icmpv6_unreach() 678 skb_dst_drop(skb2); in ip6_err_gen_icmpv6_unreach() 679 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 680 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach() 686 skb2->dev = rt->dst.dev; in ip6_err_gen_icmpv6_unreach() 694 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 695 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach() 696 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach() 705 info, &temp_saddr, IP6CB(skb2)); in ip6_err_gen_icmpv6_unreach() [all …]
|
H A D | ip6_tunnel.c | 565 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() 632 skb2->dev) || in ip4ip6_err() 648 kfree_skb(skb2); in ip4ip6_err() 670 if (!skb2) in ip6ip6_err() 673 skb_dst_drop(skb2); in ip6ip6_err() 679 NULL, 0, skb2, 0); in ip6ip6_err() [all …]
|
/openbmc/linux/net/mctp/ |
H A D | route.c | 783 struct sk_buff *skb2; in mctp_do_fragment_route() local 807 if (!skb2) { in mctp_do_fragment_route() 813 skb2->protocol = skb->protocol; in mctp_do_fragment_route() 815 skb2->dev = skb->dev; in mctp_do_fragment_route() 816 memcpy(skb2->cb, skb->cb, sizeof(skb2->cb)); in mctp_do_fragment_route() 822 skb_reserve(skb2, headroom); in mctp_do_fragment_route() 824 skb_put(skb2, hlen + size); in mctp_do_fragment_route() 825 skb2->transport_header = skb2->network_header + hlen; in mctp_do_fragment_route() 828 hdr2 = mctp_hdr(skb2); in mctp_do_fragment_route() 847 skb_ext_copy(skb2, skb); in mctp_do_fragment_route() [all …]
|
/openbmc/linux/net/caif/ |
H 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()
|
/openbmc/linux/drivers/net/wireless/intersil/hostap/ |
H 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 …]
|
/openbmc/linux/net/bridge/netfilter/ |
H A D | nf_conntrack_bridge.c | 108 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, mono_delivery_time); in nf_br_ip_fragment() 117 err = output(net, sk, data, skb2); in nf_br_ip_fragment()
|
/openbmc/linux/net/ipv4/ |
H A D | ip_output.c | 682 struct sk_buff *skb2; in ip_frag_next() local 696 if (!skb2) in ip_frag_next() 703 ip_copy_metadata(skb2, skb); in ip_frag_next() 706 skb_reset_network_header(skb2); in ip_frag_next() 707 skb2->transport_header = skb2->network_header + state->hlen; in ip_frag_next() 733 iph = ip_hdr(skb2); in ip_frag_next() 751 return skb2; in ip_frag_next() 766 struct sk_buff *skb2; in ip_do_fragment() local 906 if (IS_ERR(skb2)) { in ip_do_fragment() 907 err = PTR_ERR(skb2); in ip_do_fragment() [all …]
|
/openbmc/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()
|