Home
last modified time | relevance | path

Searched refs:skb2 (Results 1 – 25 of 71) sorted by relevance

123

/Linux-v4.19/drivers/net/usb/
Dcdc_eem.c104 struct sk_buff *skb2 = NULL; in eem_tx_fixup() local
137 skb2 = skb_copy_expand(skb, EEM_HEAD, ETH_FCS_LEN + padlen, flags); in eem_tx_fixup()
138 if (!skb2) in eem_tx_fixup()
142 skb = skb2; in eem_tx_fixup()
180 struct sk_buff *skb2 = NULL; in eem_rx_fixup() local
229 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_rx_fixup()
230 if (unlikely(!skb2)) in eem_rx_fixup()
232 skb_trim(skb2, len); in eem_rx_fixup()
234 skb_push(skb2, 2)); in eem_rx_fixup()
235 eem_linkcmd(dev, skb2); in eem_rx_fixup()
[all …]
Dcx82310_eth.c224 struct sk_buff *skb2; in cx82310_rx_fixup() local
232 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup()
233 if (!skb2) in cx82310_rx_fixup()
235 skb_put(skb2, len); in cx82310_rx_fixup()
236 memcpy(skb2->data, (void *)dev->partial_data, in cx82310_rx_fixup()
238 memcpy(skb2->data + dev->partial_len, skb->data, in cx82310_rx_fixup()
240 usbnet_skb_return(dev, skb2); in cx82310_rx_fixup()
275 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup()
276 if (!skb2) in cx82310_rx_fixup()
278 skb_put(skb2, len); in cx82310_rx_fixup()
[all …]
Dkalmia.c164 struct sk_buff *skb2 = NULL; in kalmia_tx_fixup() local
187 skb2 = skb_copy_expand(skb, KALMIA_HEADER_LENGTH, in kalmia_tx_fixup()
189 if (!skb2) in kalmia_tx_fixup()
193 skb = skb2; in kalmia_tx_fixup()
246 struct sk_buff *skb2 = NULL; in kalmia_rx_fixup() local
304 skb2 = skb; in kalmia_rx_fixup()
307 skb2 = skb_clone(skb, GFP_ATOMIC); in kalmia_rx_fixup()
308 if (unlikely(!skb2)) in kalmia_rx_fixup()
312 skb_trim(skb2, ether_packet_length); in kalmia_rx_fixup()
318 usbnet_skb_return(dev, skb2); in kalmia_rx_fixup()
Dint51x1.c94 struct sk_buff *skb2; in int51x1_tx_fixup() local
96 skb2 = skb_copy_expand(skb, in int51x1_tx_fixup()
101 if (!skb2) in int51x1_tx_fixup()
103 skb = skb2; in int51x1_tx_fixup()
Drndis_host.c507 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()
538 usbnet_skb_return(dev, skb2); in rndis_rx_fixup()
550 struct sk_buff *skb2; in rndis_tx_fixup() local
571 skb2 = skb_copy_expand(skb, sizeof *hdr, 1, flags); in rndis_tx_fixup()
573 if (unlikely(!skb2)) in rndis_tx_fixup()
574 return skb2; in rndis_tx_fixup()
575 skb = skb2; in rndis_tx_fixup()
Dgl620a.c168 struct sk_buff *skb2; in genelink_tx_fixup() local
169 skb2 = skb_copy_expand(skb, (4 + 4*1) , padlen, flags); in genelink_tx_fixup()
171 skb = skb2; in genelink_tx_fixup()
/Linux-v4.19/drivers/staging/wilc1000/
Dlinux_mon.c156 struct sk_buff *skb2; in wilc_wfi_mon_xmit() local
172 skb2 = dev_alloc_skb(skb->len + sizeof(*cb_hdr)); in wilc_wfi_mon_xmit()
173 if (!skb2) in wilc_wfi_mon_xmit()
176 skb_put_data(skb2, skb->data, skb->len); in wilc_wfi_mon_xmit()
178 cb_hdr = skb_push(skb2, sizeof(*cb_hdr)); in wilc_wfi_mon_xmit()
190 skb2->dev = wilc_wfi_mon; in wilc_wfi_mon_xmit()
191 skb_reset_mac_header(skb2); in wilc_wfi_mon_xmit()
192 skb2->ip_summed = CHECKSUM_UNNECESSARY; in wilc_wfi_mon_xmit()
193 skb2->pkt_type = PACKET_OTHERHOST; in wilc_wfi_mon_xmit()
194 skb2->protocol = htons(ETH_P_802_2); in wilc_wfi_mon_xmit()
[all …]
/Linux-v4.19/net/xfrm/
Dxfrm_device.c31 struct sk_buff *skb2; in validate_xmit_xfrm() local
98 skb2 = skb; in validate_xmit_xfrm()
101 struct sk_buff *nskb = skb2->next; in validate_xmit_xfrm()
102 skb2->next = NULL; in validate_xmit_xfrm()
104 xo = xfrm_offload(skb2); in validate_xmit_xfrm()
107 x->outer_mode->xmit(x, skb2); in validate_xmit_xfrm()
109 err = x->type_offload->xmit(x, skb2, esp_features); in validate_xmit_xfrm()
111 skb2->next = nskb; in validate_xmit_xfrm()
114 skb2->next = nskb; in validate_xmit_xfrm()
115 kfree_skb_list(skb2); in validate_xmit_xfrm()
[all …]
/Linux-v4.19/drivers/usb/gadget/function/
Df_eem.c338 struct sk_buff *skb2 = NULL; in eem_wrap() local
360 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap()
362 skb = skb2; in eem_wrap()
397 struct sk_buff *skb2; in eem_unwrap() local
437 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_unwrap()
438 if (unlikely(!skb2)) { in eem_unwrap()
442 skb_trim(skb2, len); in eem_unwrap()
444 skb_push(skb2, 2)); in eem_unwrap()
445 skb_copy_bits(skb2, 0, req->buf, skb2->len); in eem_unwrap()
446 req->length = skb2->len; in eem_unwrap()
[all …]
Df_ncm.c958 struct sk_buff *skb2 = NULL; in package_for_tx() local
992 swap(skb2, ncm->skb_tx_data); in package_for_tx()
999 skb_put_zero(skb2, ndp_pad); in package_for_tx()
1002 skb_put_data(skb2, ncm->skb_tx_ndp->data, ncm->skb_tx_ndp->len); in package_for_tx()
1007 skb_put_zero(skb2, dgram_idx_len); in package_for_tx()
1009 return skb2; in package_for_tx()
1016 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()
1128 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
[all …]
Du_ether.c253 struct sk_buff *skb = req->context, *skb2; in rx_complete() local
281 skb2 = skb_dequeue(&dev->rx_frames); in rx_complete()
282 while (skb2) { in rx_complete()
284 || ETH_HLEN > skb2->len in rx_complete()
285 || skb2->len > GETHER_MAX_ETH_FRAME_LEN) { in rx_complete()
288 DBG(dev, "rx length %d\n", skb2->len); in rx_complete()
289 dev_kfree_skb_any(skb2); in rx_complete()
292 skb2->protocol = eth_type_trans(skb2, dev->net); in rx_complete()
294 dev->net->stats.rx_bytes += skb2->len; in rx_complete()
299 status = netif_rx(skb2); in rx_complete()
[all …]
/Linux-v4.19/drivers/net/team/
Dteam_mode_broadcast.c23 struct sk_buff *skb2; in bc_transmit() local
30 skb2 = skb_clone(skb, GFP_ATOMIC); in bc_transmit()
31 if (skb2) { in bc_transmit()
33 skb2); in bc_transmit()
/Linux-v4.19/net/sched/
Dact_mirred.c197 struct sk_buff *skb2 = skb; in tcf_mirred_act() local
233 skb2 = skb_clone(skb, GFP_ATOMIC); in tcf_mirred_act()
234 if (!skb2) in tcf_mirred_act()
247 skb_pull_rcsum(skb2, mac_len); in tcf_mirred_act()
250 skb_push_rcsum(skb2, skb->mac_len); in tcf_mirred_act()
254 skb2->skb_iif = skb->dev->ifindex; in tcf_mirred_act()
255 skb2->dev = dev; in tcf_mirred_act()
259 skb2->tc_redirected = 1; in tcf_mirred_act()
260 skb2->tc_from_ingress = skb2->tc_at_ingress; in tcf_mirred_act()
271 err = dev_queue_xmit(skb2); in tcf_mirred_act()
[all …]
Dsch_choke.c160 struct sk_buff *skb2) in choke_match_flow() argument
164 if (skb1->protocol != skb2->protocol) in choke_match_flow()
173 if (!choke_skb_cb(skb2)->keys_valid) { in choke_match_flow()
174 choke_skb_cb(skb2)->keys_valid = 1; in choke_match_flow()
175 skb_flow_dissect_flow_keys(skb2, &temp, 0); in choke_match_flow()
176 make_flow_keys_digest(&choke_skb_cb(skb2)->keys, &temp); in choke_match_flow()
180 &choke_skb_cb(skb2)->keys, in choke_match_flow()
/Linux-v4.19/net/decnet/netfilter/
Ddn_rtmsg.c66 struct sk_buff *skb2; in dnrmg_send_peer() local
82 skb2 = dnrmg_build_message(skb, &status); in dnrmg_send_peer()
83 if (skb2 == NULL) in dnrmg_send_peer()
85 NETLINK_CB(skb2).dst_group = group; in dnrmg_send_peer()
86 netlink_broadcast(dnrmg, skb2, 0, group, GFP_ATOMIC); in dnrmg_send_peer()
/Linux-v4.19/net/netfilter/ipset/
Dip_set_core.c1512 struct sk_buff *skb2; in call_ad() local
1521 skb2 = nlmsg_new(payload, GFP_KERNEL); in call_ad()
1522 if (!skb2) in call_ad()
1524 rep = __nlmsg_put(skb2, NETLINK_CB(skb).portid, in call_ad()
1538 netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in call_ad()
1700 struct sk_buff *skb2; in ip_set_header() local
1712 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ip_set_header()
1713 if (!skb2) in ip_set_header()
1716 nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0, in ip_set_header()
1720 if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, IPSET_PROTOCOL) || in ip_set_header()
[all …]
/Linux-v4.19/net/netfilter/
Dnfnetlink_cttimeout.c272 struct sk_buff *skb2; in cttimeout_get_timeout() local
277 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_get_timeout()
278 if (skb2 == NULL) { in cttimeout_get_timeout()
283 ret = ctnl_timeout_fill_info(skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout()
288 kfree_skb(skb2); in cttimeout_get_timeout()
291 ret = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout()
447 struct sk_buff *skb2; in cttimeout_default_get() local
465 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_default_get()
466 if (skb2 == NULL) { in cttimeout_default_get()
471 ret = cttimeout_default_fill_info(net, skb2, NETLINK_CB(skb).portid, in cttimeout_default_get()
[all …]
/Linux-v4.19/net/caif/
Dcfpkt_skbuff.c337 struct sk_buff *skb2; in cfpkt_split() local
356 skb2 = pkt_to_skb(tmppkt); in cfpkt_split()
359 if (skb2 == NULL) in cfpkt_split()
366 memcpy(skb2->data, split, len2nd); in cfpkt_split()
367 skb2->tail += len2nd; in cfpkt_split()
368 skb2->len += len2nd; in cfpkt_split()
369 skb2->priority = skb->priority; in cfpkt_split()
370 return skb_to_pkt(skb2); in cfpkt_split()
/Linux-v4.19/net/ipv6/
Dicmp.c611 struct sk_buff *skb2; in ip6_err_gen_icmpv6_unreach() local
621 skb2 = data_len ? skb_copy(skb, GFP_ATOMIC) : skb_clone(skb, GFP_ATOMIC); in ip6_err_gen_icmpv6_unreach()
623 if (!skb2) in ip6_err_gen_icmpv6_unreach()
626 skb_dst_drop(skb2); in ip6_err_gen_icmpv6_unreach()
627 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
628 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach()
630 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, NULL, 0, in ip6_err_gen_icmpv6_unreach()
634 skb2->dev = rt->dst.dev; in ip6_err_gen_icmpv6_unreach()
642 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
643 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach()
[all …]
Dip6_tunnel.c571 struct sk_buff *skb2; in ip4ip6_err() local
606 skb2 = skb_clone(skb, GFP_ATOMIC); in ip4ip6_err()
607 if (!skb2) in ip4ip6_err()
610 skb_dst_drop(skb2); in ip4ip6_err()
612 skb_pull(skb2, offset); in ip4ip6_err()
613 skb_reset_network_header(skb2); in ip4ip6_err()
614 eiph = ip_hdr(skb2); in ip4ip6_err()
622 skb2->dev = rt->dst.dev; in ip4ip6_err()
635 skb_dst_set(skb2, &rt->dst); in ip4ip6_err()
637 if (ip_route_input(skb2, eiph->daddr, eiph->saddr, eiph->tos, in ip4ip6_err()
[all …]
/Linux-v4.19/net/mac802154/
Drx.c231 struct sk_buff *skb2; in ieee802154_monitors_rx() local
246 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee802154_monitors_rx()
247 if (skb2) { in ieee802154_monitors_rx()
248 skb2->dev = sdata->dev; in ieee802154_monitors_rx()
249 ieee802154_deliver_skb(skb2); in ieee802154_monitors_rx()
/Linux-v4.19/net/decnet/
Ddn_neigh.c221 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()
Ddn_nsp_out.c215 struct sk_buff *skb2; in dn_nsp_clone_and_send() local
218 if ((skb2 = skb_clone(skb, gfp)) != NULL) { in dn_nsp_clone_and_send()
222 skb2->sk = skb->sk; in dn_nsp_clone_and_send()
223 dn_nsp_send(skb2); in dn_nsp_clone_and_send()
381 struct sk_buff *skb2, *n, *ack = NULL; in dn_nsp_check_xmit_queue() local
389 skb_queue_walk_safe(q, skb2, n) { in dn_nsp_check_xmit_queue()
390 struct dn_skb_cb *cb2 = DN_SKB_CB(skb2); in dn_nsp_check_xmit_queue()
393 ack = skb2; in dn_nsp_check_xmit_queue()
/Linux-v4.19/drivers/net/wireless/intersil/hostap/
Dhostap_80211_rx.c481 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-v4.19/net/ipv4/
Dip_output.c200 struct sk_buff *skb2; in ip_finish_output2() local
202 skb2 = skb_realloc_headroom(skb, LL_RESERVED_SPACE(dev)); in ip_finish_output2()
203 if (!skb2) { in ip_finish_output2()
208 skb_set_owner_w(skb2, skb->sk); in ip_finish_output2()
210 skb = skb2; in ip_finish_output2()
576 struct sk_buff *skb2; in ip_do_fragment() local
742 skb2 = alloc_skb(len + hlen + ll_rs, GFP_ATOMIC); in ip_do_fragment()
743 if (!skb2) { in ip_do_fragment()
752 ip_copy_metadata(skb2, skb); in ip_do_fragment()
753 skb_reserve(skb2, ll_rs); in ip_do_fragment()
[all …]

123