Home
last modified time | relevance | path

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

123

/linux/drivers/net/usb/
H A 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()
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 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()
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 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()
H 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 …]
H 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()
H 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/drivers/net/wireless/microchip/wilc1000/
H A Dmon.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/drivers/usb/gadget/function/
H A Df_eem.c341 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 Df_ncm.c949 struct sk_buff *skb2 = NULL; in package_for_tx() local
983 swap(skb2, ncm->skb_tx_data); in package_for_tx()
990 skb_put_zero(skb2, ndp_pad); in package_for_tx()
993 skb_put_data(skb2, ncm->skb_tx_ndp->data, ncm->skb_tx_ndp->len); in package_for_tx()
998 skb_put_zero(skb2, dgram_idx_len); in package_for_tx()
1000 return skb2; in package_for_tx()
1007 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local
1045 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
1046 if (!skb2) in ncm_wrap_ntb()
1120 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
[all …]
H A Du_ether.c223 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 …]
/linux/net/netfilter/ipset/
H A Dip_set_core.c1759 struct sk_buff *skb2; in call_ad() local
1768 skb2 = nlmsg_new(payload, GFP_KERNEL); in call_ad()
1769 if (!skb2) in call_ad()
1771 rep = nlmsg_put(skb2, NETLINK_CB(skb).portid, in call_ad()
1785 nlmsg_free(skb2); in call_ad()
1792 nfnetlink_unicast(skb2, net, NETLINK_CB(skb).portid); in call_ad()
1910 struct sk_buff *skb2; in ip_set_header() local
1921 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ip_set_header()
1922 if (!skb2) in ip_set_header()
1925 nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, info->nlh->nlmsg_seq, 0, in ip_set_header()
[all …]
/linux/net/mctp/test/
H A Droute-test.c174 struct sk_buff *skb2; in mctp_test_fragment() local
181 skb2 = skb_dequeue(&rt->pkts); in mctp_test_fragment()
183 if (!skb2) in mctp_test_fragment()
186 hdr2 = mctp_hdr(skb2); in mctp_test_fragment()
212 KUNIT_EXPECT_EQ(test, skb2->len, mtu); in mctp_test_fragment()
214 KUNIT_EXPECT_LE(test, skb2->len, mtu); in mctp_test_fragment()
216 kfree_skb(skb2); in mctp_test_fragment()
347 struct sk_buff *skb, *skb2; in mctp_test_route_input_sk() local
367 skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc); in mctp_test_route_input_sk()
368 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, skb2); in mctp_test_route_input_sk()
[all …]
/linux/drivers/net/team/
H A Dteam_mode_broadcast.c18 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/xfrm/
H A Dxfrm_device.c119 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()
208 err = x->type_offload->xmit(x, skb2, esp_features); 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()
[all …]
/linux/net/mac802154/
H A Drx.c341 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 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()
438 struct sk_buff *skb2; in cttimeout_default_get() local
493 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_default_get()
494 if (!skb2) in cttimeout_default_get()
497 ret = cttimeout_default_fill_info(info->net, skb2, in cttimeout_default_get()
[all …]
/linux/net/ipv6/
H A Dnetfilter.c221 struct sk_buff *skb2; in br_ip6_fragment() local
223 skb2 = ip6_frag_next(skb, &state); in br_ip6_fragment()
224 if (IS_ERR(skb2)) { in br_ip6_fragment()
225 err = PTR_ERR(skb2); in br_ip6_fragment()
229 skb_set_delivery_time(skb2, tstamp, tstamp_type); in br_ip6_fragment()
230 err = output(net, sk, data, skb2); in br_ip6_fragment()
H A Dicmp.c663 struct sk_buff *skb2; in ip6_err_gen_icmpv6_unreach() local
673 skb2 = data_len ? skb_copy(skb, GFP_ATOMIC) : skb_clone(skb, GFP_ATOMIC); in ip6_err_gen_icmpv6_unreach()
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()
682 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, NULL, 0, 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()
[all …]
H A Dip6_tunnel.c565 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, eiph->tos, in ip4ip6_err()
[all …]
/linux/net/mctp/
H A Droute.c845 struct sk_buff *skb2; in mctp_do_fragment_route() local
868 skb2 = alloc_skb(headroom + hlen + size, GFP_KERNEL); in mctp_do_fragment_route()
869 if (!skb2) { in mctp_do_fragment_route()
875 skb2->protocol = skb->protocol; in mctp_do_fragment_route()
876 skb2->priority = skb->priority; in mctp_do_fragment_route()
877 skb2->dev = skb->dev; in mctp_do_fragment_route()
878 memcpy(skb2->cb, skb->cb, sizeof(skb2->cb)); in mctp_do_fragment_route()
881 skb_set_owner_w(skb2, skb->sk); in mctp_do_fragment_route()
884 skb_reserve(skb2, headroom); in mctp_do_fragment_route()
885 skb_reset_network_header(skb2); in mctp_do_fragment_route()
[all …]
/linux/net/caif/
H A Dcfpkt_skbuff.c324 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 Dip_output.c683 struct sk_buff *skb2; in ip_frag_next() local
696 skb2 = alloc_skb(len + state->hlen + state->ll_rs, GFP_ATOMIC); in ip_frag_next()
697 if (!skb2) in ip_frag_next()
704 ip_copy_metadata(skb2, skb); in ip_frag_next()
705 skb_reserve(skb2, state->ll_rs); in ip_frag_next()
706 skb_put(skb2, len + state->hlen); in ip_frag_next()
707 skb_reset_network_header(skb2); in ip_frag_next()
708 skb2->transport_header = skb2->network_header + state->hlen; in ip_frag_next()
716 skb_set_owner_w(skb2, skb->sk); in ip_frag_next()
722 skb_copy_from_linear_data(skb, skb_network_header(skb2), state->hlen); in ip_frag_next()
[all …]
/linux/net/bridge/netfilter/
H 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, tstamp_type); in nf_br_ip_fragment()
117 err = output(net, sk, data, skb2); in nf_br_ip_fragment()
/linux/net/sched/
H 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/net/atm/
H A Dlec.c142 struct sk_buff *skb2; in lec_handle_bridge() local
145 skb2 = alloc_skb(sizeof(struct atmlec_msg), GFP_ATOMIC); in lec_handle_bridge()
146 if (skb2 == NULL) in lec_handle_bridge()
148 skb2->len = sizeof(struct atmlec_msg); in lec_handle_bridge()
149 mesg = (struct atmlec_msg *)skb2->data; in lec_handle_bridge()
156 atm_force_charge(priv->lecd, skb2->truesize); in lec_handle_bridge()
158 skb_queue_tail(&sk->sk_receive_queue, skb2); in lec_handle_bridge()
207 struct sk_buff *skb2; in lec_start_xmit() local
236 skb2 = skb_realloc_headroom(skb, LEC_HEADER_LEN); in lec_start_xmit()
237 if (unlikely(!skb2)) { in lec_start_xmit()
[all …]

123