Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/net/usb/
A Dcdc_eem.c92 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 Dcx82310_eth.c246 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 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()
A 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()
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 …]
A 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()
A 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-6.3-rc2/drivers/net/wireless/microchip/wilc1000/
A Dmon.c147 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-6.3-rc2/drivers/usb/gadget/function/
A Df_eem.c367 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 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()
1006 return skb2; in package_for_tx()
1013 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local
1052 if (!skb2) in ncm_wrap_ntb()
1126 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
1127 if (!skb2) in ncm_wrap_ntb()
1131 return skb2; in ncm_wrap_ntb()
1180 struct sk_buff *skb2; in ncm_unwrap_ntb() local
[all …]
/linux-6.3-rc2/net/mctp/test/
A Droute-test.c162 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 …]
/linux-6.3-rc2/net/netfilter/ipset/
A Dip_set_core.c1721 if (!skb2) in call_ad()
1874 if (!skb2) in ip_set_header()
1894 kfree_skb(skb2); in ip_set_header()
1928 if (!skb2) in ip_set_type()
1949 kfree_skb(skb2); in ip_set_type()
1970 if (!skb2) in ip_set_protocol()
1988 kfree_skb(skb2); in ip_set_protocol()
2012 if (!skb2) in ip_set_byname()
2030 kfree_skb(skb2); in ip_set_byname()
2060 if (!skb2) in ip_set_byindex()
[all …]
/linux-6.3-rc2/net/mac802154/
A Drx.c245 struct sk_buff *skb2; in __ieee802154_rx_handle_packet() local
267 skb2 = skb_clone(skb, GFP_ATOMIC); in __ieee802154_rx_handle_packet()
268 if (skb2) { in __ieee802154_rx_handle_packet()
269 skb2->dev = sdata->dev; in __ieee802154_rx_handle_packet()
270 ieee802154_subif_frame(sdata, skb2, &hdr); in __ieee802154_rx_handle_packet()
278 struct sk_buff *skb2; in ieee802154_monitors_rx() local
293 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee802154_monitors_rx()
294 if (skb2) { in ieee802154_monitors_rx()
295 skb2->dev = sdata->dev; in ieee802154_monitors_rx()
296 ieee802154_deliver_skb(skb2); in ieee802154_monitors_rx()
/linux-6.3-rc2/drivers/net/team/
A 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-6.3-rc2/net/xfrm/
A Dxfrm_device.c118 struct sk_buff *skb2, *nskb, *pskb = NULL; in validate_xmit_xfrm() local
198 skb_list_walk_safe(skb, skb2, nskb) { in validate_xmit_xfrm()
200 skb_mark_not_on_list(skb2); in validate_xmit_xfrm()
202 xo = xfrm_offload(skb2); in validate_xmit_xfrm()
205 xfrm_outer_mode_prep(x, skb2); in validate_xmit_xfrm()
209 skb2->next = nskb; in validate_xmit_xfrm()
212 skb2->next = nskb; in validate_xmit_xfrm()
213 kfree_skb_list(skb2); in validate_xmit_xfrm()
216 if (skb == skb2) in validate_xmit_xfrm()
224 skb_push(skb2, skb2->data - skb_mac_header(skb2)); in validate_xmit_xfrm()
[all …]
/linux-6.3-rc2/net/sched/
A Dact_mirred.c233 struct sk_buff *skb2 = skb; in tcf_mirred_act() local
282 skb2 = skb_clone(skb, GFP_ATOMIC); in tcf_mirred_act()
283 if (!skb2) in tcf_mirred_act()
290 nf_reset_ct(skb2); in tcf_mirred_act()
292 skb_dst_drop(skb2); in tcf_mirred_act()
301 skb_pull_rcsum(skb2, mac_len); in tcf_mirred_act()
304 skb_push_rcsum(skb2, mac_len); in tcf_mirred_act()
308 skb2->skb_iif = skb->dev->ifindex; in tcf_mirred_act()
309 skb2->dev = dev; in tcf_mirred_act()
313 skb_set_redirected(skb2, skb2->tc_at_ingress); in tcf_mirred_act()
[all …]
A Dsch_choke.c149 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-6.3-rc2/net/netfilter/
A Dnfnetlink_cttimeout.c284 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 …]
/linux-6.3-rc2/net/ipv6/
A Dnetfilter.c220 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()
A Dicmp.c653 struct sk_buff *skb2; in ip6_err_gen_icmpv6_unreach() local
665 if (!skb2) in ip6_err_gen_icmpv6_unreach()
668 skb_dst_drop(skb2); in ip6_err_gen_icmpv6_unreach()
669 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
670 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach()
676 skb2->dev = rt->dst.dev; in ip6_err_gen_icmpv6_unreach()
684 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
685 skb_reset_network_header(skb2); in ip6_err_gen_icmpv6_unreach()
686 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach()
695 info, &temp_saddr, IP6CB(skb2)); in ip6_err_gen_icmpv6_unreach()
[all …]
A Dip6_tunnel.c565 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 …]
/linux-6.3-rc2/net/mctp/
A Droute.c773 struct sk_buff *skb2; in mctp_do_fragment_route() local
797 if (!skb2) { in mctp_do_fragment_route()
803 skb2->protocol = skb->protocol; in mctp_do_fragment_route()
804 skb2->priority = skb->priority; in mctp_do_fragment_route()
805 skb2->dev = skb->dev; in mctp_do_fragment_route()
806 memcpy(skb2->cb, skb->cb, sizeof(skb2->cb)); in mctp_do_fragment_route()
812 skb_reserve(skb2, headroom); in mctp_do_fragment_route()
814 skb_put(skb2, hlen + size); in mctp_do_fragment_route()
815 skb2->transport_header = skb2->network_header + hlen; in mctp_do_fragment_route()
818 hdr2 = mctp_hdr(skb2); in mctp_do_fragment_route()
[all …]
/linux-6.3-rc2/net/bridge/netfilter/
A Dnf_conntrack_bridge.c108 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()
/linux-6.3-rc2/net/caif/
A 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-6.3-rc2/drivers/net/wireless/intersil/hostap/
A Dhostap_80211_rx.c481 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-6.3-rc2/net/ipv4/
A Dip_output.c679 struct sk_buff *skb2; in ip_frag_next() local
693 if (!skb2) in ip_frag_next()
700 ip_copy_metadata(skb2, skb); in ip_frag_next()
703 skb_reset_network_header(skb2); in ip_frag_next()
704 skb2->transport_header = skb2->network_header + state->hlen; in ip_frag_next()
730 iph = ip_hdr(skb2); in ip_frag_next()
748 return skb2; in ip_frag_next()
763 struct sk_buff *skb2; in ip_do_fragment() local
903 if (IS_ERR(skb2)) { in ip_do_fragment()
904 err = PTR_ERR(skb2); in ip_do_fragment()
[all …]

Completed in 58 milliseconds

123