Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/net/usb/
Dcdc_eem.c107 struct sk_buff *skb2 = NULL; in eem_tx_fixup() local
140 skb2 = skb_copy_expand(skb, EEM_HEAD, ETH_FCS_LEN + padlen, flags); in eem_tx_fixup()
141 if (!skb2) in eem_tx_fixup()
145 skb = skb2; in eem_tx_fixup()
183 struct sk_buff *skb2 = NULL; in eem_rx_fixup() local
232 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_rx_fixup()
233 if (unlikely(!skb2)) in eem_rx_fixup()
235 skb_trim(skb2, len); in eem_rx_fixup()
237 skb_push(skb2, 2)); in eem_rx_fixup()
238 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.c168 struct sk_buff *skb2 = NULL; in kalmia_tx_fixup() local
191 skb2 = skb_copy_expand(skb, KALMIA_HEADER_LENGTH, in kalmia_tx_fixup()
193 if (!skb2) in kalmia_tx_fixup()
197 skb = skb2; in kalmia_tx_fixup()
250 struct sk_buff *skb2 = NULL; in kalmia_rx_fixup() local
308 skb2 = skb; in kalmia_rx_fixup()
311 skb2 = skb_clone(skb, GFP_ATOMIC); in kalmia_rx_fixup()
312 if (unlikely(!skb2)) in kalmia_rx_fixup()
316 skb_trim(skb2, ether_packet_length); in kalmia_rx_fixup()
322 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.c502 struct sk_buff *skb2; in rndis_rx_fixup() local
528 skb2 = skb_clone(skb, GFP_ATOMIC); in rndis_rx_fixup()
529 if (unlikely(!skb2)) in rndis_rx_fixup()
532 skb_trim(skb2, data_len); in rndis_rx_fixup()
533 usbnet_skb_return(dev, skb2); in rndis_rx_fixup()
545 struct sk_buff *skb2; in rndis_tx_fixup() local
566 skb2 = skb_copy_expand(skb, sizeof *hdr, 1, flags); in rndis_tx_fixup()
568 if (unlikely(!skb2)) in rndis_tx_fixup()
569 return skb2; in rndis_tx_fixup()
570 skb = skb2; in rndis_tx_fixup()
Dgl620a.c169 struct sk_buff *skb2; in genelink_tx_fixup() local
170 skb2 = skb_copy_expand(skb, (4 + 4*1) , padlen, flags); in genelink_tx_fixup()
172 skb = skb2; in genelink_tx_fixup()
Dnet1080.c438 struct sk_buff *skb2; in net1080_tx_fixup() local
467 skb2 = skb_copy_expand(skb, in net1080_tx_fixup()
472 if (!skb2) in net1080_tx_fixup()
473 return skb2; in net1080_tx_fixup()
474 skb = skb2; in net1080_tx_fixup()
Dzaurus.c60 struct sk_buff *skb2; in zaurus_tx_fixup() local
68 skb2 = skb_copy_expand(skb, 0, 4 + padlen, flags); in zaurus_tx_fixup()
70 skb = skb2; in zaurus_tx_fixup()
Dlan78xx.c2054 struct sk_buff *skb2; in lan78xx_tx_prep() local
2056 skb2 = skb_copy_expand(skb, TX_OVERHEAD, 0, flags); in lan78xx_tx_prep()
2058 skb = skb2; in lan78xx_tx_prep()
2170 struct sk_buff *skb2 = NULL; in lan78xx_start_xmit() local
2174 skb2 = lan78xx_tx_prep(dev, skb, GFP_ATOMIC); in lan78xx_start_xmit()
2177 if (skb2) { in lan78xx_start_xmit()
2178 skb_queue_tail(&dev->txq_pend, skb2); in lan78xx_start_xmit()
2366 struct sk_buff *skb2; in lan78xx_rx() local
2402 skb2 = skb_clone(skb, GFP_ATOMIC); in lan78xx_rx()
2403 if (unlikely(!skb2)) { in lan78xx_rx()
[all …]
Dch9200.c259 struct sk_buff *skb2; in ch9200_tx_fixup() local
261 skb2 = skb_copy_expand(skb, tx_overhead, 0, flags); in ch9200_tx_fixup()
263 skb = skb2; in ch9200_tx_fixup()
Dsr9700.c460 struct sk_buff *skb2; in sr9700_tx_fixup() local
462 skb2 = skb_copy_expand(skb, SR_TX_OVERHEAD, 0, flags); in sr9700_tx_fixup()
464 skb = skb2; in sr9700_tx_fixup()
Ddm9601.c496 struct sk_buff *skb2; in dm9601_tx_fixup() local
498 skb2 = skb_copy_expand(skb, DM_TX_OVERHEAD, pad, flags); in dm9601_tx_fixup()
500 skb = skb2; in dm9601_tx_fixup()
Dasix_common.c204 struct sk_buff *skb2; in asix_tx_fixup() local
206 skb2 = skb_copy_expand(skb, 4, padlen, flags); in asix_tx_fixup()
208 skb = skb2; in asix_tx_fixup()
Dsr9800.c128 struct sk_buff *skb2; in sr_tx_fixup() local
129 skb2 = skb_copy_expand(skb, 4, padlen, flags); in sr_tx_fixup()
131 skb = skb2; in sr_tx_fixup()
Dsmsc95xx.c1839 struct sk_buff *skb2 = skb_copy_expand(skb, in smsc95xx_tx_fixup() local
1842 skb = skb2; in smsc95xx_tx_fixup()
Dsmsc75xx.c2197 struct sk_buff *skb2 = in smsc75xx_tx_fixup() local
2200 skb = skb2; in smsc75xx_tx_fixup()
/linux-4.4.14/net/bridge/
Dbr_input.c136 struct sk_buff *skb2; in br_handle_frame_finish() local
161 skb2 = NULL; in br_handle_frame_finish()
164 skb2 = skb; in br_handle_frame_finish()
172 skb2 = skb; in br_handle_frame_finish()
180 skb2 = skb; in br_handle_frame_finish()
181 br_multicast_forward(mdst, skb, skb2); in br_handle_frame_finish()
183 if (!skb2) in br_handle_frame_finish()
186 skb2 = skb; in br_handle_frame_finish()
192 skb2 = skb; in br_handle_frame_finish()
200 br_forward(dst->dst, skb, skb2); in br_handle_frame_finish()
[all …]
Dbr_forward.c247 struct sk_buff *skb2, bool unicast) in br_flood_forward() argument
249 br_flood(br, skb, skb2, __br_forward, unicast); in br_flood_forward()
311 struct sk_buff *skb, struct sk_buff *skb2) in br_multicast_forward() argument
313 br_multicast_flood(mdst, skb, skb2, __br_forward); in br_multicast_forward()
Dbr_private.h491 struct sk_buff *skb2, bool unicast);
542 struct sk_buff *skb, struct sk_buff *skb2);
651 struct sk_buff *skb2) in br_multicast_forward() argument
/linux-4.4.14/drivers/staging/wilc1000/
Dlinux_mon.c220 struct sk_buff *skb2; in WILC_WFI_mon_xmit() local
253 skb2 = dev_alloc_skb(skb->len + sizeof(struct wilc_wfi_radiotap_cb_hdr)); in WILC_WFI_mon_xmit()
255 memcpy(skb_put(skb2, skb->len), skb->data, skb->len); in WILC_WFI_mon_xmit()
257 cb_hdr = (struct wilc_wfi_radiotap_cb_hdr *) skb_push(skb2, sizeof(*cb_hdr)); in WILC_WFI_mon_xmit()
271 skb2->dev = wilc_wfi_mon; in WILC_WFI_mon_xmit()
272 skb_set_mac_header(skb2, 0); in WILC_WFI_mon_xmit()
273 skb2->ip_summed = CHECKSUM_UNNECESSARY; in WILC_WFI_mon_xmit()
274 skb2->pkt_type = PACKET_OTHERHOST; in WILC_WFI_mon_xmit()
275 skb2->protocol = htons(ETH_P_802_2); in WILC_WFI_mon_xmit()
276 memset(skb2->cb, 0, sizeof(skb2->cb)); in WILC_WFI_mon_xmit()
[all …]
/linux-4.4.14/drivers/usb/gadget/function/
Df_eem.c342 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.c891 struct sk_buff *skb2 = NULL; in package_for_tx() local
925 swap(skb2, ncm->skb_tx_data); in package_for_tx()
932 ntb_iter = (void *) skb_put(skb2, ndp_pad); in package_for_tx()
936 ntb_iter = (void *) skb_put(skb2, ncm->skb_tx_ndp->len); in package_for_tx()
942 ntb_iter = (void *) skb_put(skb2, dgram_idx_len); in package_for_tx()
945 return skb2; in package_for_tx()
952 struct sk_buff *skb2 = NULL; in ncm_wrap_ntb() local
992 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
993 if (!skb2) in ncm_wrap_ntb()
1067 skb2 = package_for_tx(ncm); in ncm_wrap_ntb()
[all …]
Du_ether.c270 struct sk_buff *skb = req->context, *skb2; in rx_complete() local
298 skb2 = skb_dequeue(&dev->rx_frames); in rx_complete()
299 while (skb2) { in rx_complete()
301 || ETH_HLEN > skb2->len in rx_complete()
302 || skb2->len > GETHER_MAX_ETH_FRAME_LEN) { in rx_complete()
305 DBG(dev, "rx length %d\n", skb2->len); in rx_complete()
306 dev_kfree_skb_any(skb2); in rx_complete()
309 skb2->protocol = eth_type_trans(skb2, dev->net); in rx_complete()
311 dev->net->stats.rx_bytes += skb2->len; in rx_complete()
316 status = netif_rx(skb2); in rx_complete()
[all …]
Df_rndis.c375 struct sk_buff *skb2; in rndis_add_header() local
377 skb2 = skb_realloc_headroom(skb, sizeof(struct rndis_packet_msg_type)); in rndis_add_header()
378 rndis_add_hdr(skb2); in rndis_add_header()
381 return skb2; in rndis_add_header()
/linux-4.4.14/net/sched/
Dact_mirred.c144 struct sk_buff *skb2; in tcf_mirred() local
167 skb2 = skb_clone(skb, GFP_ATOMIC); in tcf_mirred()
168 if (!skb2) in tcf_mirred()
173 skb_push(skb2, skb->mac_len); in tcf_mirred()
178 skb2->tc_verd = SET_TC_FROM(skb2->tc_verd, at); in tcf_mirred()
180 skb2->skb_iif = skb->dev->ifindex; in tcf_mirred()
181 skb2->dev = dev; in tcf_mirred()
182 skb_sender_cpu_clear(skb2); in tcf_mirred()
183 err = dev_queue_xmit(skb2); in tcf_mirred()
Dsch_choke.c164 struct sk_buff *skb2) in choke_match_flow() argument
168 if (skb1->protocol != skb2->protocol) in choke_match_flow()
177 if (!choke_skb_cb(skb2)->keys_valid) { in choke_match_flow()
178 choke_skb_cb(skb2)->keys_valid = 1; in choke_match_flow()
179 skb_flow_dissect_flow_keys(skb2, &temp, 0); in choke_match_flow()
180 make_flow_keys_digest(&choke_skb_cb(skb2)->keys, &temp); in choke_match_flow()
184 &choke_skb_cb(skb2)->keys, in choke_match_flow()
Dsch_netem.c428 struct sk_buff *skb2; in netem_enqueue() local
463 if (count > 1 && (skb2 = skb_clone(skb, GFP_ATOMIC)) != NULL) { in netem_enqueue()
468 rootq->enqueue(skb2, rootq); in netem_enqueue()
558 skb2 = segs->next; in netem_enqueue()
570 segs = skb2; in netem_enqueue()
/linux-4.4.14/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-4.4.14/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-4.4.14/net/netfilter/ipset/
Dip_set_core.c1467 struct sk_buff *skb2; in call_ad() local
1476 skb2 = nlmsg_new(payload, GFP_KERNEL); in call_ad()
1477 if (!skb2) in call_ad()
1479 rep = __nlmsg_put(skb2, NETLINK_CB(skb).portid, in call_ad()
1494 netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in call_ad()
1656 struct sk_buff *skb2; in ip_set_header() local
1668 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ip_set_header()
1669 if (!skb2) in ip_set_header()
1672 nlh2 = start_msg(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, 0, in ip_set_header()
1676 if (nla_put_u8(skb2, IPSET_ATTR_PROTOCOL, IPSET_PROTOCOL) || in ip_set_header()
[all …]
/linux-4.4.14/net/netfilter/
Dnfnetlink_cttimeout.c264 struct sk_buff *skb2; in cttimeout_get_timeout() local
269 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_get_timeout()
270 if (skb2 == NULL) { in cttimeout_get_timeout()
275 ret = ctnl_timeout_fill_info(skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout()
280 kfree_skb(skb2); in cttimeout_get_timeout()
283 ret = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout()
470 struct sk_buff *skb2; in cttimeout_default_get() local
486 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_default_get()
487 if (skb2 == NULL) { in cttimeout_default_get()
492 ret = cttimeout_default_fill_info(net, skb2, NETLINK_CB(skb).portid, in cttimeout_default_get()
[all …]
Dnfnetlink_acct.c288 struct sk_buff *skb2; in nfnl_acct_get() local
293 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in nfnl_acct_get()
294 if (skb2 == NULL) { in nfnl_acct_get()
299 ret = nfnl_acct_fill_info(skb2, NETLINK_CB(skb).portid, in nfnl_acct_get()
304 kfree_skb(skb2); in nfnl_acct_get()
307 ret = netlink_unicast(nfnl, skb2, NETLINK_CB(skb).portid, in nfnl_acct_get()
Dnfnetlink_cthelper.c507 struct sk_buff *skb2; in nfnl_cthelper_get() local
546 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in nfnl_cthelper_get()
547 if (skb2 == NULL) { in nfnl_cthelper_get()
552 ret = nfnl_cthelper_fill_info(skb2, NETLINK_CB(skb).portid, in nfnl_cthelper_get()
557 kfree_skb(skb2); in nfnl_cthelper_get()
561 ret = netlink_unicast(nfnl, skb2, NETLINK_CB(skb).portid, in nfnl_cthelper_get()
Dnf_tables_api.c552 struct sk_buff *skb2; in nf_tables_gettable() local
574 skb2 = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL); in nf_tables_gettable()
575 if (!skb2) in nf_tables_gettable()
578 err = nf_tables_fill_table_info(skb2, net, NETLINK_CB(skb).portid, in nf_tables_gettable()
584 return nlmsg_unicast(nlsk, skb2, NETLINK_CB(skb).portid); in nf_tables_gettable()
587 kfree_skb(skb2); in nf_tables_gettable()
1109 struct sk_buff *skb2; in nf_tables_getchain() local
1137 skb2 = alloc_skb(NLMSG_GOODSIZE, GFP_KERNEL); in nf_tables_getchain()
1138 if (!skb2) in nf_tables_getchain()
1141 err = nf_tables_fill_chain_info(skb2, net, NETLINK_CB(skb).portid, in nf_tables_getchain()
[all …]
Dnft_compat.c531 struct sk_buff *skb2; in nfnl_compat_get() local
570 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in nfnl_compat_get()
571 if (skb2 == NULL) in nfnl_compat_get()
575 if (nfnl_compat_fill_info(skb2, NETLINK_CB(skb).portid, in nfnl_compat_get()
581 kfree_skb(skb2); in nfnl_compat_get()
585 ret = netlink_unicast(nfnl, skb2, NETLINK_CB(skb).portid, in nfnl_compat_get()
Dnf_conntrack_netlink.c1180 struct sk_buff *skb2 = NULL; in ctnetlink_get_conntrack() local
1227 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ctnetlink_get_conntrack()
1228 if (skb2 == NULL) { in ctnetlink_get_conntrack()
1234 err = ctnetlink_fill_info(skb2, NETLINK_CB(skb).portid, nlh->nlmsg_seq, in ctnetlink_get_conntrack()
1241 err = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, MSG_DONTWAIT); in ctnetlink_get_conntrack()
1248 kfree_skb(skb2); in ctnetlink_get_conntrack()
2088 struct sk_buff *skb2; in ctnetlink_stat_ct() local
2091 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ctnetlink_stat_ct()
2092 if (skb2 == NULL) in ctnetlink_stat_ct()
2095 err = ctnetlink_stat_ct_fill_info(skb2, NETLINK_CB(skb).portid, in ctnetlink_stat_ct()
[all …]
/linux-4.4.14/net/caif/
Dcfpkt_skbuff.c342 struct sk_buff *skb2; in cfpkt_split() local
361 skb2 = pkt_to_skb(tmppkt); in cfpkt_split()
364 if (skb2 == NULL) in cfpkt_split()
371 memcpy(skb2->data, split, len2nd); in cfpkt_split()
372 skb2->tail += len2nd; in cfpkt_split()
373 skb2->len += len2nd; in cfpkt_split()
374 skb2->priority = skb->priority; in cfpkt_split()
375 return skb_to_pkt(skb2); in cfpkt_split()
/linux-4.4.14/net/ipv4/
Dtcp_fastopen.c192 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in tcp_fastopen_create_child() local
194 if (likely(skb2)) { in tcp_fastopen_create_child()
195 skb_dst_drop(skb2); in tcp_fastopen_create_child()
196 __skb_pull(skb2, tcp_hdrlen(skb)); in tcp_fastopen_create_child()
197 skb_set_owner_r(skb2, child); in tcp_fastopen_create_child()
198 __skb_queue_tail(&child->sk_receive_queue, skb2); in tcp_fastopen_create_child()
Dip_output.c191 struct sk_buff *skb2; in ip_finish_output2() local
193 skb2 = skb_realloc_headroom(skb, LL_RESERVED_SPACE(dev)); in ip_finish_output2()
194 if (!skb2) { in ip_finish_output2()
199 skb_set_owner_w(skb2, skb->sk); in ip_finish_output2()
201 skb = skb2; in ip_finish_output2()
528 struct sk_buff *skb2; in ip_do_fragment() local
696 skb2 = alloc_skb(len + hlen + ll_rs, GFP_ATOMIC); in ip_do_fragment()
697 if (!skb2) { in ip_do_fragment()
706 ip_copy_metadata(skb2, skb); in ip_do_fragment()
707 skb_reserve(skb2, ll_rs); in ip_do_fragment()
[all …]
Dip_input.c177 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip_call_ra_chain() local
178 if (skb2) in ip_call_ra_chain()
179 raw_rcv(last, skb2); in ip_call_ra_chain()
Dipmr.c1896 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip_mr_forward() local
1898 if (skb2) in ip_mr_forward()
1899 ipmr_queue_xmit(net, mrt, skb2, cache, in ip_mr_forward()
1908 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip_mr_forward() local
1910 if (skb2) in ip_mr_forward()
1911 ipmr_queue_xmit(net, mrt, skb2, cache, psend); in ip_mr_forward()
2009 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip_mr_input() local
2011 if (!skb2) in ip_mr_input()
2013 skb = skb2; in ip_mr_input()
2212 struct sk_buff *skb2; in ipmr_get_route() local
[all …]
Dping.c979 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ping_rcv() local
982 if (skb2) in ping_rcv()
983 ping_queue_rcv_skb(sk, skb2); in ping_rcv()
Dtcp_output.c1115 static void tcp_fragment_tstamp(struct sk_buff *skb, struct sk_buff *skb2) in tcp_fragment_tstamp() argument
1120 !before(shinfo->tskey, TCP_SKB_CB(skb2)->seq)) { in tcp_fragment_tstamp()
1121 struct skb_shared_info *shinfo2 = skb_shinfo(skb2); in tcp_fragment_tstamp()
/linux-4.4.14/net/ipv6/
Dip6_tunnel.c635 struct sk_buff *skb2; in ip4ip6_err() local
671 skb2 = skb_clone(skb, GFP_ATOMIC); in ip4ip6_err()
672 if (!skb2) in ip4ip6_err()
675 skb_dst_drop(skb2); in ip4ip6_err()
677 skb_pull(skb2, offset); in ip4ip6_err()
678 skb_reset_network_header(skb2); in ip4ip6_err()
679 eiph = ip_hdr(skb2); in ip4ip6_err()
689 skb2->dev = rt->dst.dev; in ip4ip6_err()
706 skb_dst_set(skb2, &rt->dst); in ip4ip6_err()
709 if (ip_route_input(skb2, eiph->daddr, eiph->saddr, eiph->tos, in ip4ip6_err()
[all …]
Dip6_input.c309 struct sk_buff *skb2; in ip6_mc_input() local
343 skb2 = skb_clone(skb, GFP_ATOMIC); in ip6_mc_input()
345 skb2 = skb; in ip6_mc_input()
349 if (skb2) { in ip6_mc_input()
350 ip6_mr_input(skb2); in ip6_mc_input()
Dsit.c489 struct sk_buff *skb2; in ipip6_err_gen_icmpv6_unreach() local
494 skb2 = skb_clone(skb, GFP_ATOMIC); in ipip6_err_gen_icmpv6_unreach()
496 if (!skb2) in ipip6_err_gen_icmpv6_unreach()
499 skb_dst_drop(skb2); in ipip6_err_gen_icmpv6_unreach()
500 skb_pull(skb2, ihl); in ipip6_err_gen_icmpv6_unreach()
501 skb_reset_network_header(skb2); in ipip6_err_gen_icmpv6_unreach()
503 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, NULL, 0, 0); in ipip6_err_gen_icmpv6_unreach()
506 skb2->dev = rt->dst.dev; in ipip6_err_gen_icmpv6_unreach()
508 icmpv6_send(skb2, ICMPV6_DEST_UNREACH, ICMPV6_ADDR_UNREACH, 0); in ipip6_err_gen_icmpv6_unreach()
513 kfree_skb(skb2); in ipip6_err_gen_icmpv6_unreach()
Dip6mr.c2155 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip6_mr_forward() local
2156 if (skb2) in ip6_mr_forward()
2157 ip6mr_forward2(net, mrt, skb2, cache, psend); in ip6_mr_forward()
2301 struct sk_buff *skb2; in ip6mr_get_route() local
2318 skb2 = alloc_skb(sizeof(struct ipv6hdr), GFP_ATOMIC); in ip6mr_get_route()
2319 if (!skb2) { in ip6mr_get_route()
2324 skb_reset_transport_header(skb2); in ip6mr_get_route()
2326 skb_put(skb2, sizeof(struct ipv6hdr)); in ip6mr_get_route()
2327 skb_reset_network_header(skb2); in ip6mr_get_route()
2329 iph = ipv6_hdr(skb2); in ip6mr_get_route()
[all …]
Dip6_output.c181 struct sk_buff *skb2 = skb_realloc_headroom(skb, head_room); in ip6_xmit() local
182 if (!skb2) { in ip6_xmit()
189 skb = skb2; in ip6_xmit()
263 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in ip6_call_ra_chain() local
264 if (skb2) in ip6_call_ra_chain()
265 rawv6_rcv(last, skb2); in ip6_call_ra_chain()
/linux-4.4.14/net/mac802154/
Drx.c227 struct sk_buff *skb2; in ieee802154_monitors_rx() local
242 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee802154_monitors_rx()
243 if (skb2) { in ieee802154_monitors_rx()
244 skb2->dev = sdata->dev; in ieee802154_monitors_rx()
245 ieee802154_deliver_skb(skb2); in ieee802154_monitors_rx()
/linux-4.4.14/net/decnet/
Ddn_neigh.c220 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_long_output() local
221 if (skb2 == NULL) { in dn_long_output()
227 skb = skb2; in dn_long_output()
268 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_short_output() local
269 if (skb2 == NULL) { in dn_short_output()
275 skb = skb2; in dn_short_output()
310 struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); in dn_phase3_output() local
311 if (skb2 == NULL) { in dn_phase3_output()
317 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()
384 struct sk_buff *skb2, *n, *ack = NULL; in dn_nsp_check_xmit_queue() local
392 skb_queue_walk_safe(q, skb2, n) { in dn_nsp_check_xmit_queue()
393 struct dn_skb_cb *cb2 = DN_SKB_CB(skb2); in dn_nsp_check_xmit_queue()
396 ack = skb2; in dn_nsp_check_xmit_queue()
Ddn_dev.c964 struct sk_buff *skb2 = skb_copy(skb, GFP_ATOMIC); in dn_send_router_hello() local
965 if (skb2) { in dn_send_router_hello()
966 dn_rt_finish_output(skb2, dn_rt_all_end_mcast, src); in dn_send_router_hello()
/linux-4.4.14/drivers/net/wireless/hostap/
Dhostap_80211_rx.c482 struct sk_buff *skb2; in hostap_rx_frame_mgmt() local
485 skb2 = skb_clone(skb, GFP_ATOMIC); in hostap_rx_frame_mgmt()
486 if (skb2) in hostap_rx_frame_mgmt()
487 hostap_rx(skb2->dev, skb2, rx_stats); in hostap_rx_frame_mgmt()
728 struct sk_buff *skb2 = NULL; in hostap_80211_rx() local
1075 skb2 = skb_clone(skb, GFP_ATOMIC); in hostap_80211_rx()
1076 if (skb2 == NULL) in hostap_80211_rx()
1083 skb2 = skb; in hostap_80211_rx()
1088 if (skb2 != NULL) { in hostap_80211_rx()
1090 skb2->dev = dev; in hostap_80211_rx()
[all …]
/linux-4.4.14/net/atm/
Dlec.c138 struct sk_buff *skb2; in lec_handle_bridge() local
141 skb2 = alloc_skb(sizeof(struct atmlec_msg), GFP_ATOMIC); in lec_handle_bridge()
142 if (skb2 == NULL) in lec_handle_bridge()
144 skb2->len = sizeof(struct atmlec_msg); in lec_handle_bridge()
145 mesg = (struct atmlec_msg *)skb2->data; in lec_handle_bridge()
152 atm_force_charge(priv->lecd, skb2->truesize); in lec_handle_bridge()
154 skb_queue_tail(&sk->sk_receive_queue, skb2); in lec_handle_bridge()
204 struct sk_buff *skb2; in lec_start_xmit() local
233 skb2 = skb_realloc_headroom(skb, LEC_HEADER_LEN); in lec_start_xmit()
234 if (unlikely(!skb2)) { in lec_start_xmit()
[all …]
Dbr2684.c212 struct sk_buff *skb2 = skb_realloc_headroom(skb, minheadroom); in br2684_xmit_vcc() local
215 if (skb2 == NULL) { in br2684_xmit_vcc()
219 skb = skb2; in br2684_xmit_vcc()
/linux-4.4.14/drivers/net/wireless/ipw2x00/
Dlibipw_rx.c186 struct sk_buff *skb2; in libipw_rx_frame_mgmt() local
189 skb2 = skb_clone(skb, GFP_ATOMIC); in libipw_rx_frame_mgmt()
190 if (skb2) in libipw_rx_frame_mgmt()
191 hostap_rx(skb2->dev, skb2, rx_stats); in libipw_rx_frame_mgmt()
344 struct sk_buff *skb2 = NULL; in libipw_rx() local
779 skb2 = skb_clone(skb, GFP_ATOMIC); in libipw_rx()
780 if (skb2 == NULL) in libipw_rx()
787 skb2 = skb; in libipw_rx()
792 if (skb2 != NULL) { in libipw_rx()
794 skb2->dev = dev; in libipw_rx()
[all …]
/linux-4.4.14/net/ipx/
Daf_ipx.c452 struct sk_buff *skb1 = NULL, *skb2 = NULL; in ipxitf_demux_socket() local
510 skb2 = skb_clone(skb1, GFP_ATOMIC); in ipxitf_demux_socket()
512 skb2 = skb1; in ipxitf_demux_socket()
517 if (!skb2) in ipxitf_demux_socket()
521 ipxitf_def_skb_handler(sock2, skb2); in ipxitf_demux_socket()
537 struct sk_buff *skb2; in ipxitf_adjust_skbuff() local
548 skb2 = alloc_skb(len, GFP_ATOMIC); in ipxitf_adjust_skbuff()
549 if (skb2) { in ipxitf_adjust_skbuff()
550 skb_reserve(skb2, out_offset); in ipxitf_adjust_skbuff()
551 skb_reset_network_header(skb2); in ipxitf_adjust_skbuff()
[all …]
/linux-4.4.14/drivers/net/ethernet/octeon/
Docteon_mgmt.c394 struct sk_buff *skb2; in octeon_mgmt_receive_one() local
429 re2.d64 = octeon_mgmt_dequeue_rx_buffer(p, &skb2); in octeon_mgmt_receive_one()
433 skb_put(skb2, re2.s.len); in octeon_mgmt_receive_one()
434 skb_new = skb_copy_expand(skb, 0, skb2->len, in octeon_mgmt_receive_one()
438 if (skb_copy_bits(skb2, 0, skb_tail_pointer(skb_new), in octeon_mgmt_receive_one()
439 skb2->len)) in octeon_mgmt_receive_one()
441 skb_put(skb_new, skb2->len); in octeon_mgmt_receive_one()
443 dev_kfree_skb_any(skb2); in octeon_mgmt_receive_one()
458 dev_kfree_skb_any(skb2); in octeon_mgmt_receive_one()
460 re2.d64 = octeon_mgmt_dequeue_rx_buffer(p, &skb2); in octeon_mgmt_receive_one()
[all …]
/linux-4.4.14/drivers/isdn/pcbit/
Ddrv.c472 struct sk_buff *skb2; in pcbit_l3_receive() local
491 if (capi_tdata_resp(chan, &skb2) > 0) in pcbit_l3_receive()
493 skb2, skb2->len); in pcbit_l3_receive()
537 if ((len = capi_disc_req(*(ushort *)(skb->data), &skb2, CAUSE_NOCHAN)) > 0) in pcbit_l3_receive()
538 pcbit_l2_write(dev, MSG_DISC_REQ, refnum, skb2, len); in pcbit_l3_receive()
/linux-4.4.14/net/netlink/
Daf_netlink.c1994 struct sk_buff *skb, *skb2; member
2030 if (p->skb2 == NULL) { in do_one_broadcast()
2032 p->skb2 = skb_clone(p->skb, p->allocation); in do_one_broadcast()
2034 p->skb2 = skb_get(p->skb); in do_one_broadcast()
2039 skb_orphan(p->skb2); in do_one_broadcast()
2042 if (p->skb2 == NULL) { in do_one_broadcast()
2050 if (p->tx_filter && p->tx_filter(sk, p->skb2, p->tx_data)) { in do_one_broadcast()
2051 kfree_skb(p->skb2); in do_one_broadcast()
2052 p->skb2 = NULL; in do_one_broadcast()
2055 if (sk_filter(sk, p->skb2)) { in do_one_broadcast()
[all …]
/linux-4.4.14/drivers/net/wan/
Dz85230.c800 c->skb2 = NULL; in z8530_sync_open()
866 c->skb2 = NULL; in z8530_sync_dma_open()
1061 c->skb2 = NULL; in z8530_sync_txdma_open()
1668 c->skb = c->skb2; in z8530_rx_done()
1680 c->skb2 = dev_alloc_skb(c->mtu); in z8530_rx_done()
1681 if (c->skb2 == NULL) in z8530_rx_done()
1684 skb_put(c->skb2, c->mtu); in z8530_rx_done()
Dz85230.h274 struct sk_buff *skb2; /* Pending buffer */ member
Dhdlc_fr.c309 struct sk_buff *skb2 = skb_realloc_headroom(skb, in fr_hard_header() local
311 if (!skb2) in fr_hard_header()
314 skb = *skb_p = skb2; in fr_hard_header()
/linux-4.4.14/drivers/staging/gdm72xx/
Dgdm_wimax.c62 struct sk_buff *skb2; in gdm_wimax_header() local
64 skb2 = skb_realloc_headroom(skb, HCI_HEADER_SIZE); in gdm_wimax_header()
65 if (!skb2) in gdm_wimax_header()
68 skb_set_owner_w(skb2, skb->sk); in gdm_wimax_header()
70 skb = skb2; in gdm_wimax_header()
/linux-4.4.14/net/core/
Dskbuff.c268 kmemcheck_annotate_bitfield(&fclones->skb2, flags1); in __alloc_skb()
272 fclones->skb2.fclone = SKB_FCLONE_CLONE; in __alloc_skb()
273 fclones->skb2.pfmemalloc = pfmemalloc; in __alloc_skb()
629 fclones = container_of(skb, struct sk_buff_fclones, skb2); in kfree_skbmem()
950 n = &fclones->skb2; in skb_clone()
1200 struct sk_buff *skb2; in skb_realloc_headroom() local
1204 skb2 = pskb_copy(skb, GFP_ATOMIC); in skb_realloc_headroom()
1206 skb2 = skb_clone(skb, GFP_ATOMIC); in skb_realloc_headroom()
1207 if (skb2 && pskb_expand_head(skb2, SKB_DATA_ALIGN(delta), 0, in skb_realloc_headroom()
1209 kfree_skb(skb2); in skb_realloc_headroom()
[all …]
Dfilter.c1412 struct sk_buff *skb = (struct sk_buff *) (long) r1, *skb2; in bpf_clone_redirect() local
1419 skb2 = skb_clone(skb, GFP_ATOMIC); in bpf_clone_redirect()
1420 if (unlikely(!skb2)) in bpf_clone_redirect()
1424 return dev_forward_skb(dev, skb2); in bpf_clone_redirect()
1426 skb2->dev = dev; in bpf_clone_redirect()
1427 skb_sender_cpu_clear(skb2); in bpf_clone_redirect()
1428 return dev_queue_xmit(skb2); in bpf_clone_redirect()
Ddev.c1838 struct sk_buff *skb2 = NULL; in dev_queue_xmit_nit() local
1852 deliver_skb(skb2, pt_prev, skb->dev); in dev_queue_xmit_nit()
1858 skb2 = skb_clone(skb, GFP_ATOMIC); in dev_queue_xmit_nit()
1859 if (!skb2) in dev_queue_xmit_nit()
1862 net_timestamp_set(skb2); in dev_queue_xmit_nit()
1868 skb_reset_mac_header(skb2); in dev_queue_xmit_nit()
1870 if (skb_network_header(skb2) < skb2->data || in dev_queue_xmit_nit()
1871 skb_network_header(skb2) > skb_tail_pointer(skb2)) { in dev_queue_xmit_nit()
1873 ntohs(skb2->protocol), in dev_queue_xmit_nit()
1875 skb_reset_network_header(skb2); in dev_queue_xmit_nit()
[all …]
/linux-4.4.14/net/mac80211/
Dstatus.c678 struct sk_buff *skb2; in ieee80211_tx_monitor() local
712 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee80211_tx_monitor()
713 if (skb2) { in ieee80211_tx_monitor()
714 skb2->dev = prev_dev; in ieee80211_tx_monitor()
715 netif_rx(skb2); in ieee80211_tx_monitor()
Drx.c481 struct sk_buff *skb, *skb2; in ieee80211_rx_monitor() local
574 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee80211_rx_monitor()
575 if (skb2) { in ieee80211_rx_monitor()
576 skb2->dev = prev_dev; in ieee80211_rx_monitor()
577 netif_receive_skb(skb2); in ieee80211_rx_monitor()
3066 struct sk_buff *skb = rx->skb, *skb2; in ieee80211_rx_cooked_monitor() local
3110 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee80211_rx_cooked_monitor()
3111 if (skb2) { in ieee80211_rx_cooked_monitor()
3112 skb2->dev = prev_dev; in ieee80211_rx_cooked_monitor()
3113 netif_receive_skb(skb2); in ieee80211_rx_cooked_monitor()
Dtx.c1521 struct sk_buff *skb2; in ieee80211_tx_prepare_skb() local
1541 skb2 = __skb_dequeue(&tx.skbs); in ieee80211_tx_prepare_skb()
1542 if (WARN_ON(skb2 != skb || !skb_queue_empty(&tx.skbs))) { in ieee80211_tx_prepare_skb()
1543 ieee80211_free_txskb(hw, skb2); in ieee80211_tx_prepare_skb()
/linux-4.4.14/drivers/net/
Dvrf.c526 struct sk_buff *skb2; in vrf_finish_output() local
528 skb2 = skb_realloc_headroom(skb, LL_RESERVED_SPACE(dev)); in vrf_finish_output()
529 if (!skb2) { in vrf_finish_output()
534 skb_set_owner_w(skb2, skb->sk); in vrf_finish_output()
537 skb = skb2; in vrf_finish_output()
/linux-4.4.14/Documentation/networking/
Dx25-iface.txt79 netif_rx(skb2), skb2 might be delivered to the network layer
/linux-4.4.14/net/llc/
Dllc_conn.c355 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in llc_conn_send_pdus() local
358 if (!skb2) in llc_conn_send_pdus()
360 skb = skb2; in llc_conn_send_pdus()
/linux-4.4.14/net/key/
Daf_key.c190 static int pfkey_broadcast_one(struct sk_buff *skb, struct sk_buff **skb2, in pfkey_broadcast_one() argument
196 if (*skb2 == NULL) { in pfkey_broadcast_one()
198 *skb2 = skb_clone(skb, allocation); in pfkey_broadcast_one()
200 *skb2 = skb; in pfkey_broadcast_one()
204 if (*skb2 != NULL) { in pfkey_broadcast_one()
206 skb_set_owner_r(*skb2, sk); in pfkey_broadcast_one()
207 skb_queue_tail(&sk->sk_receive_queue, *skb2); in pfkey_broadcast_one()
209 *skb2 = NULL; in pfkey_broadcast_one()
228 struct sk_buff *skb2 = NULL; in pfkey_broadcast() local
247 pfkey_broadcast_one(skb, &skb2, GFP_ATOMIC, sk); in pfkey_broadcast()
[all …]
/linux-4.4.14/drivers/net/ethernet/qlogic/
Dqla3xxx.c2041 struct sk_buff *skb1 = NULL, *skb2; in ql_process_macip_rx_intr() local
2063 skb2 = lrg_buf_cb2->skb; in ql_process_macip_rx_intr()
2065 skb_put(skb2, length); /* Just the second buffer length here. */ in ql_process_macip_rx_intr()
2070 prefetch(skb2->data); in ql_process_macip_rx_intr()
2072 skb_checksum_none_assert(skb2); in ql_process_macip_rx_intr()
2079 skb_push(skb2, size), size); in ql_process_macip_rx_intr()
2093 skb2->ip_summed = CHECKSUM_UNNECESSARY; in ql_process_macip_rx_intr()
2096 skb2->protocol = eth_type_trans(skb2, qdev->ndev); in ql_process_macip_rx_intr()
2098 netif_receive_skb(skb2); in ql_process_macip_rx_intr()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Dtxrx.c1005 struct sk_buff *skb2; in wil_find_tx_bcast_2() local
1054 skb2 = skb_copy(skb, GFP_ATOMIC); in wil_find_tx_bcast_2()
1055 if (skb2) { in wil_find_tx_bcast_2()
1057 wil_set_da_for_vring(wil, skb2, i); in wil_find_tx_bcast_2()
1058 wil_tx_vring(wil, v2, skb2); in wil_find_tx_bcast_2()
/linux-4.4.14/drivers/net/wireless/brcm80211/brcmfmac/
Dcore.c237 struct sk_buff *skb2; in brcmf_netdev_start_xmit() local
242 skb2 = skb_realloc_headroom(skb, drvr->hdrlen); in brcmf_netdev_start_xmit()
244 skb = skb2; in brcmf_netdev_start_xmit()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_rx.c250 struct sk_buff *skb2; in ieee80211_rx_frame_mgmt() local
253 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee80211_rx_frame_mgmt()
254 if (skb2) in ieee80211_rx_frame_mgmt()
255 hostap_rx(skb2->dev, skb2, rx_stats); in ieee80211_rx_frame_mgmt()
900 struct sk_buff *skb2 = NULL; in ieee80211_rx() local
/linux-4.4.14/drivers/net/ethernet/tehuti/
Dtehuti.c1209 struct sk_buff *skb, *skb2; in bdx_rx_receive() local
1273 (skb2 = netdev_alloc_skb(priv->ndev, len + NET_IP_ALIGN))) { in bdx_rx_receive()
1274 skb_reserve(skb2, NET_IP_ALIGN); in bdx_rx_receive()
1279 memcpy(skb2->data, skb->data, len); in bdx_rx_receive()
1281 skb = skb2; in bdx_rx_receive()
/linux-4.4.14/net/appletalk/
Dddp.c1679 struct sk_buff *skb2 = skb_copy(skb, GFP_KERNEL); in atalk_sendmsg() local
1681 if (skb2) { in atalk_sendmsg()
1687 aarp_send_ddp(dev, skb2, &usat->sat_addr, NULL); in atalk_sendmsg()
/linux-4.4.14/include/linux/
Dskbuff.h828 struct sk_buff skb2; member
850 fclones->skb2.sk == sk; in skb_fclone_busy()
/linux-4.4.14/drivers/net/bonding/
Dbond_main.c3910 struct sk_buff *skb2 = skb_clone(skb, GFP_ATOMIC); in bond_xmit_broadcast() local
3912 if (!skb2) { in bond_xmit_broadcast()
3917 bond_dev_queue_xmit(bond, skb2, slave->dev); in bond_xmit_broadcast()