Home
last modified time | relevance | path

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

123

/Linux-v5.4/drivers/net/usb/
Dcdc_eem.c92 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 …]
Dcx82310_eth.c213 struct sk_buff *skb2; in cx82310_rx_fixup() local
221 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup()
222 if (!skb2) in cx82310_rx_fixup()
224 skb_put(skb2, len); in cx82310_rx_fixup()
225 memcpy(skb2->data, (void *)dev->partial_data, in cx82310_rx_fixup()
227 memcpy(skb2->data + dev->partial_len, skb->data, in cx82310_rx_fixup()
229 usbnet_skb_return(dev, skb2); in cx82310_rx_fixup()
264 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup()
265 if (!skb2) in cx82310_rx_fixup()
267 skb_put(skb2, len); in cx82310_rx_fixup()
[all …]
Dkalmia.c160 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()
Dint51x1.c83 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()
Drndis_host.c495 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()
Dgl620a.c156 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.4/drivers/staging/wilc1000/
Dwilc_mon.c147 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.4/net/xfrm/
Dxfrm_device.c81 struct sk_buff *skb2; in validate_xmit_xfrm() local
151 skb2 = skb; in validate_xmit_xfrm()
154 struct sk_buff *nskb = skb2->next; in validate_xmit_xfrm()
157 skb_mark_not_on_list(skb2); in validate_xmit_xfrm()
159 xo = xfrm_offload(skb2); in validate_xmit_xfrm()
162 xfrm_outer_mode_prep(x, skb2); in validate_xmit_xfrm()
164 err = x->type_offload->xmit(x, skb2, esp_features); in validate_xmit_xfrm()
166 skb2->next = nskb; in validate_xmit_xfrm()
169 skb2->next = nskb; in validate_xmit_xfrm()
170 kfree_skb_list(skb2); in validate_xmit_xfrm()
[all …]
/Linux-v5.4/drivers/usb/gadget/function/
Df_eem.c337 struct sk_buff *skb2 = NULL; in eem_wrap() local
359 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap()
361 skb = skb2; in eem_wrap()
396 struct sk_buff *skb2; in eem_unwrap() local
436 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_unwrap()
437 if (unlikely(!skb2)) { in eem_unwrap()
441 skb_trim(skb2, len); in eem_unwrap()
443 skb_push(skb2, 2)); in eem_unwrap()
444 skb_copy_bits(skb2, 0, req->buf, skb2->len); in eem_unwrap()
445 req->length = skb2->len; in eem_unwrap()
[all …]
Df_ncm.c955 struct sk_buff *skb2 = NULL; in package_for_tx() local
989 swap(skb2, ncm->skb_tx_data); in package_for_tx()
996 skb_put_zero(skb2, ndp_pad); in package_for_tx()
999 skb_put_data(skb2, ncm->skb_tx_ndp->data, ncm->skb_tx_ndp->len); in package_for_tx()
1004 skb_put_zero(skb2, dgram_idx_len); in package_for_tx()
1006 return skb2; in package_for_tx()
1013 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local
1053 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
1054 if (!skb2) in ncm_wrap_ntb()
1125 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
[all …]
/Linux-v5.4/net/netfilter/ipset/
Dip_set_core.c1538 struct sk_buff *skb2; in call_ad() local
1547 skb2 = nlmsg_new(payload, GFP_KERNEL); in call_ad()
1548 if (!skb2) in call_ad()
1550 rep = __nlmsg_put(skb2, NETLINK_CB(skb).portid, in call_ad()
1562 nlmsg_free(skb2); in call_ad()
1569 netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in call_ad()
1695 struct sk_buff *skb2; in ip_set_header() local
1707 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ip_set_header()
1708 if (!skb2) in ip_set_header()
1711 nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0, in ip_set_header()
[all …]
/Linux-v5.4/net/sched/
Dact_mirred.c214 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, skb->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 skb2->tc_redirected = 1; in tcf_mirred_act()
286 skb2->tc_from_ingress = skb2->tc_at_ingress; in tcf_mirred_act()
287 if (skb2->tc_from_ingress) in tcf_mirred_act()
[all …]
Dsch_choke.c156 struct sk_buff *skb2) in choke_match_flow() argument
160 if (skb1->protocol != skb2->protocol) in choke_match_flow()
169 if (!choke_skb_cb(skb2)->keys_valid) { in choke_match_flow()
170 choke_skb_cb(skb2)->keys_valid = 1; in choke_match_flow()
171 skb_flow_dissect_flow_keys(skb2, &temp, 0); in choke_match_flow()
172 make_flow_keys_digest(&choke_skb_cb(skb2)->keys, &temp); in choke_match_flow()
176 &choke_skb_cb(skb2)->keys, in choke_match_flow()
/Linux-v5.4/drivers/net/team/
Dteam_mode_broadcast.c19 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.4/net/decnet/netfilter/
Ddn_rtmsg.c64 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.4/net/netfilter/
Dnfnetlink_cttimeout.c263 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.4/net/ipv6/
Dnetfilter.c212 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()
Dicmp.c617 struct sk_buff *skb2; in ip6_err_gen_icmpv6_unreach() local
627 skb2 = data_len ? skb_copy(skb, GFP_ATOMIC) : skb_clone(skb, GFP_ATOMIC); in ip6_err_gen_icmpv6_unreach()
629 if (!skb2) in ip6_err_gen_icmpv6_unreach()
632 skb_dst_drop(skb2); in ip6_err_gen_icmpv6_unreach()
633 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
634 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach()
636 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, NULL, 0, in ip6_err_gen_icmpv6_unreach()
640 skb2->dev = rt->dst.dev; in ip6_err_gen_icmpv6_unreach()
648 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
649 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach()
[all …]
/Linux-v5.4/net/ipv4/
Dip_output.c201 struct sk_buff *skb2; in ip_finish_output2() local
203 skb2 = skb_realloc_headroom(skb, LL_RESERVED_SPACE(dev)); in ip_finish_output2()
204 if (!skb2) { in ip_finish_output2()
209 skb_set_owner_w(skb2, skb->sk); in ip_finish_output2()
211 skb = skb2; in ip_finish_output2()
685 struct sk_buff *skb2; in ip_frag_next() local
699 skb2 = alloc_skb(len + state->hlen + state->ll_rs, GFP_ATOMIC); in ip_frag_next()
700 if (!skb2) in ip_frag_next()
707 ip_copy_metadata(skb2, skb); in ip_frag_next()
708 skb_reserve(skb2, state->ll_rs); in ip_frag_next()
[all …]
/Linux-v5.4/net/mac802154/
Drx.c223 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.4/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.c207 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.4/net/caif/
Dcfpkt_skbuff.c333 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.4/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-v5.4/net/bridge/netfilter/
Dnf_conntrack_bridge.c101 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()

123