/kernel/linux/linux-5.10/drivers/net/usb/ |
H A D | cdc_eem.c | 92 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 D | cx82310_eth.c | 245 struct sk_buff *skb2; in cx82310_rx_fixup() local 254 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup() 255 if (!skb2) in cx82310_rx_fixup() 257 skb_put(skb2, len); in cx82310_rx_fixup() 258 memcpy(skb2->data, (void *)dev->partial_data, in cx82310_rx_fixup() 260 memcpy(skb2->data + dev->partial_len, skb->data, in cx82310_rx_fixup() 262 usbnet_skb_return(dev, skb2); in cx82310_rx_fixup() 299 skb2 = alloc_skb(len, GFP_ATOMIC); in cx82310_rx_fixup() 300 if (!skb2) in cx82310_rx_fixup() 302 skb_put(skb2, le in cx82310_rx_fixup() [all...] |
H A D | kalmia.c | 160 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() [all...] |
H A D | int51x1.c | 83 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()
|
/kernel/linux/linux-6.6/drivers/net/usb/ |
H A D | cdc_eem.c | 92 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 D | cx82310_eth.c | 246 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, le in cx82310_rx_fixup() [all...] |
H A D | kalmia.c | 160 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() [all...] |
H A D | rndis_host.c | 507 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 D | int51x1.c | 83 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/microchip/wilc1000/ |
H A D | mon.c | 147 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 in wilc_wfi_mon_xmit() [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/microchip/wilc1000/ |
H A D | mon.c | 147 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 in wilc_wfi_mon_xmit() [all...] |
/kernel/linux/linux-5.10/drivers/usb/gadget/function/ |
H A D | f_eem.c | 343 struct sk_buff *skb2 = NULL; in eem_wrap() local 365 skb2 = skb_copy_expand(skb, EEM_HLEN, ETH_FCS_LEN + padlen, GFP_ATOMIC); in eem_wrap() 367 skb = skb2; in eem_wrap() 402 struct sk_buff *skb2; in eem_unwrap() local 444 skb2 = skb_clone(skb, GFP_ATOMIC); in eem_unwrap() 445 if (unlikely(!skb2)) { in eem_unwrap() 449 skb_trim(skb2, len); in eem_unwrap() 451 skb_push(skb2, 2)); in eem_unwrap() 456 dev_kfree_skb_any(skb2); in eem_unwrap() 460 req->buf = kmalloc(skb2 in eem_unwrap() [all...] |
/kernel/linux/linux-6.6/drivers/usb/gadget/function/ |
H A D | f_eem.c | 341 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 in eem_unwrap() [all...] |
/kernel/linux/linux-6.6/net/mctp/test/ |
H A D | route-test.c | 162 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() 200 KUNIT_EXPECT_EQ(test, skb2->len, mtu); in mctp_test_fragment() 202 KUNIT_EXPECT_LE(test, skb2->len, mtu); 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 355 skb2 = skb_recv_datagram(sock->sk, MSG_DONTWAIT, &rc); in mctp_test_route_input_sk() 356 KUNIT_EXPECT_NOT_ERR_OR_NULL(test, skb2); in mctp_test_route_input_sk() 404 struct sk_buff *skb, *skb2; mctp_test_route_input_sk_reasm() local 540 struct sk_buff *skb, *skb2; mctp_test_route_input_sk_keys() local [all...] |
/kernel/linux/linux-5.10/net/netfilter/ipset/ |
H A D | ip_set_core.c | 1754 struct sk_buff *skb2; in call_ad() local 1763 skb2 = nlmsg_new(payload, GFP_KERNEL); in call_ad() 1764 if (!skb2) in call_ad() 1766 rep = __nlmsg_put(skb2, NETLINK_CB(skb).portid, in call_ad() 1778 nlmsg_free(skb2); in call_ad() 1785 netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in call_ad() 1912 struct sk_buff *skb2; in ip_set_header() local 1924 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ip_set_header() 1925 if (!skb2) in ip_set_header() 1928 nlh2 = start_msg(skb2, NETLINK_C in ip_set_header() 1967 struct sk_buff *skb2; ip_set_type() local 2026 struct sk_buff *skb2; ip_set_protocol() local 2068 struct sk_buff *skb2; ip_set_byname() local 2120 struct sk_buff *skb2; ip_set_byindex() local [all...] |
/kernel/linux/linux-6.6/net/netfilter/ipset/ |
H A D | ip_set_core.c | 1742 struct sk_buff *skb2; in call_ad() local 1751 skb2 = nlmsg_new(payload, GFP_KERNEL); in call_ad() 1752 if (!skb2) in call_ad() 1754 rep = nlmsg_put(skb2, NETLINK_CB(skb).portid, in call_ad() 1768 nlmsg_free(skb2); in call_ad() 1775 nfnetlink_unicast(skb2, net, NETLINK_CB(skb).portid); in call_ad() 1893 struct sk_buff *skb2; in ip_set_header() local 1904 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in ip_set_header() 1905 if (!skb2) in ip_set_header() 1908 nlh2 = start_msg(skb2, NETLINK_C in ip_set_header() 1941 struct sk_buff *skb2; ip_set_type() local 1994 struct sk_buff *skb2; ip_set_protocol() local 2029 struct sk_buff *skb2; ip_set_byname() local 2074 struct sk_buff *skb2; ip_set_byindex() local [all...] |
/kernel/linux/linux-5.10/net/xfrm/ |
H A D | xfrm_device.c | 118 struct sk_buff *skb2, *nskb, *pskb = NULL; in validate_xmit_xfrm() local 188 skb_list_walk_safe(skb, skb2, nskb) { in validate_xmit_xfrm() 190 skb_mark_not_on_list(skb2); in validate_xmit_xfrm() 192 xo = xfrm_offload(skb2); in validate_xmit_xfrm() 195 xfrm_outer_mode_prep(x, skb2); in validate_xmit_xfrm() 197 err = x->type_offload->xmit(x, skb2, esp_features); in validate_xmit_xfrm() 199 skb2->next = nskb; in validate_xmit_xfrm() 202 skb2->next = nskb; in validate_xmit_xfrm() 203 kfree_skb_list(skb2); in validate_xmit_xfrm() 206 if (skb == skb2) in validate_xmit_xfrm() [all...] |
/kernel/linux/linux-6.6/net/xfrm/ |
H A D | xfrm_device.c | 119 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...] |
/kernel/linux/linux-5.10/drivers/net/team/ |
H A D | team_mode_broadcast.c | 19 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()
|
/kernel/linux/linux-6.6/drivers/net/team/ |
H A D | team_mode_broadcast.c | 18 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()
|
/kernel/linux/linux-5.10/net/sched/ |
H A D | act_mirred.c | 232 struct sk_buff *skb2 = skb; in tcf_mirred_act() local 281 skb2 = skb_clone(skb, GFP_ATOMIC); in tcf_mirred_act() 282 if (!skb2) in tcf_mirred_act() 289 nf_reset_ct(skb2); in tcf_mirred_act() 291 skb_dst_drop(skb2); in tcf_mirred_act() 300 skb_pull_rcsum(skb2, mac_len); in tcf_mirred_act() 303 skb_push_rcsum(skb2, mac_len); in tcf_mirred_act() 307 skb2->skb_iif = skb->dev->ifindex; in tcf_mirred_act() 308 skb2->dev = dev; in tcf_mirred_act() 312 skb_set_redirected(skb2, skb in tcf_mirred_act() [all...] |
/kernel/linux/linux-6.6/net/mac802154/ |
H A D | rx.c | 313 struct sk_buff *skb2; in __ieee802154_rx_handle_packet() local 335 skb2 = skb_clone(skb, GFP_ATOMIC); in __ieee802154_rx_handle_packet() 336 if (skb2) { in __ieee802154_rx_handle_packet() 337 skb2->dev = sdata->dev; in __ieee802154_rx_handle_packet() 338 ieee802154_subif_frame(sdata, skb2, &hdr); in __ieee802154_rx_handle_packet() 346 struct sk_buff *skb2; in ieee802154_monitors_rx() local 361 skb2 = skb_clone(skb, GFP_ATOMIC); in ieee802154_monitors_rx() 362 if (skb2) { in ieee802154_monitors_rx() 363 skb2->dev = sdata->dev; in ieee802154_monitors_rx() 364 ieee802154_deliver_skb(skb2); in ieee802154_monitors_rx() [all...] |
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nfnetlink_cttimeout.c | 258 struct sk_buff *skb2; in cttimeout_get_timeout() local 263 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_get_timeout() 264 if (skb2 == NULL) { in cttimeout_get_timeout() 269 ret = ctnl_timeout_fill_info(skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout() 274 kfree_skb(skb2); in cttimeout_get_timeout() 277 ret = netlink_unicast(ctnl, skb2, NETLINK_CB(skb).portid, in cttimeout_get_timeout() 421 struct sk_buff *skb2; in cttimeout_default_get() local 477 skb2 = nlmsg_new(NLMSG_DEFAULT_SIZE, GFP_KERNEL); in cttimeout_default_get() 478 if (skb2 == NULL) { in cttimeout_default_get() 483 ret = cttimeout_default_fill_info(net, skb2, NETLINK_C in cttimeout_default_get() [all...] |
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nfnetlink_cttimeout.c | 284 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...] |
/kernel/linux/linux-5.10/net/caif/ |
H A D | cfpkt_skbuff.c | 333 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()
|