/kernel/linux/linux-5.10/net/ieee802154/6lowpan/ |
D | tx.c | 108 frag = alloc_skb(wdev->needed_headroom + wdev->needed_tailroom + size, in lowpan_alloc_frag() 114 skb_reserve(frag, wdev->needed_headroom); in lowpan_alloc_frag() 263 if (unlikely(skb_headroom(skb) < ldev->needed_headroom || in lowpan_xmit() 267 nskb = skb_copy_expand(skb, ldev->needed_headroom, in lowpan_xmit()
|
D | core.c | 167 ldev->needed_headroom = LOWPAN_IPHC_MAX_HEADER_LEN + in lowpan_newlink() 168 wdev->needed_headroom; in lowpan_newlink()
|
/kernel/linux/linux-5.10/net/batman-adv/ |
D | hard-interface.c | 544 unsigned short needed_headroom; in batadv_hardif_recalc_extra_skbroom() local 558 hard_iface->net_dev->needed_headroom); in batadv_hardif_recalc_extra_skbroom() 565 needed_headroom = lower_headroom + (lower_header_len - ETH_HLEN); in batadv_hardif_recalc_extra_skbroom() 566 needed_headroom += batadv_max_header_len(); in batadv_hardif_recalc_extra_skbroom() 569 needed_headroom += sizeof(struct batadv_frag_packet); in batadv_hardif_recalc_extra_skbroom() 571 soft_iface->needed_headroom = needed_headroom; in batadv_hardif_recalc_extra_skbroom()
|
/kernel/linux/linux-5.10/net/ipv4/ |
D | ip_tunnel.c | 315 hlen = tdev->hard_header_len + tdev->needed_headroom; in ip_tunnel_bind_dev() 319 dev->needed_headroom = t_hlen + hlen; in ip_tunnel_bind_dev() 616 if (headroom > dev->needed_headroom) in ip_md_tunnel_xmit() 617 dev->needed_headroom = headroom; in ip_md_tunnel_xmit() 619 if (skb_cow_head(skb, dev->needed_headroom)) { in ip_md_tunnel_xmit() 800 if (max_headroom > dev->needed_headroom) in ip_tunnel_xmit() 801 dev->needed_headroom = max_headroom; in ip_tunnel_xmit() 803 if (skb_cow_head(skb, dev->needed_headroom)) { in ip_tunnel_xmit()
|
D | ip_gre.c | 489 if (skb_cow_head(skb, dev->needed_headroom)) in gre_fb_xmit() 539 if (skb_cow_head(skb, dev->needed_headroom)) in erspan_fb_xmit() 647 if (skb_cow_head(skb, dev->needed_headroom)) in ipgre_xmit() 683 if (skb_cow_head(skb, dev->needed_headroom)) in erspan_xmit() 735 if (skb_cow_head(skb, dev->needed_headroom)) in gre_tap_xmit() 760 dev->needed_headroom += len; in ipgre_link_update() 957 dev->needed_headroom = tunnel->hlen + sizeof(tunnel->parms.iph); in __gre_tunnel_init() 1002 dev->needed_headroom = 0; in ipgre_tunnel_init() 1008 dev->needed_headroom = 0; in ipgre_tunnel_init()
|
/kernel/linux/linux-5.10/net/l2tp/ |
D | l2tp_eth.c | 215 dev->needed_headroom += sizeof(struct udphdr); in l2tp_eth_adjust_mtu() 241 dev->needed_headroom += session->hdr_len; in l2tp_eth_adjust_mtu()
|
/kernel/linux/linux-5.10/drivers/net/wan/ |
D | lapbether.c | 355 ndev->needed_headroom = -1 + 3 + 2 + dev->hard_header_len in lapbeth_new_device() 356 + dev->needed_headroom; in lapbeth_new_device()
|
D | hdlc.c | 241 dev->needed_headroom = 0; in hdlc_setup_dev()
|
D | hdlc_x25.c | 350 dev->needed_headroom = 3 - 1; in x25_ioctl()
|
D | x25_asy.c | 773 dev->needed_headroom = 3 - 1; in x25_asy_setup()
|
/kernel/linux/linux-5.10/net/bridge/ |
D | br_if.c | 311 br->dev->needed_headroom = new_hr; in update_headroom() 341 if (netdev_get_fwd_headroom(dev) == br->dev->needed_headroom) in del_nbp() 671 br_hr = br->dev->needed_headroom; in br_add_if()
|
/kernel/linux/linux-5.10/net/dsa/ |
D | slave.c | 553 int needed_headroom = dev->needed_headroom; in dsa_realloc_skb() local 564 needed_headroom = max_t(int, needed_headroom - skb_headroom(skb), 0); in dsa_realloc_skb() 567 if (likely(!needed_headroom && !needed_tailroom && !skb_cloned(skb))) in dsa_realloc_skb() 571 return pskb_expand_head(skb, needed_headroom, needed_tailroom, in dsa_realloc_skb() 1832 slave_dev->needed_headroom = cpu_dp->tag_ops->overhead; in dsa_slave_create() 1837 slave_dev->needed_headroom += master->needed_headroom; in dsa_slave_create()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/rmnet/ |
D | rmnet_vnd.c | 223 rmnet_dev->needed_headroom = RMNET_NEEDED_HEADROOM; in rmnet_vnd_setup()
|
/kernel/linux/linux-5.10/drivers/net/ipa/ |
D | ipa_modem.c | 156 netdev->needed_headroom = sizeof(struct rmnet_map_header); in ipa_modem_netdev_setup()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | ip6_gre.c | 763 if (skb_cow_head(skb, dev->needed_headroom ?: tun_hlen + tunnel->encap_hlen)) in __gre6_xmit() 773 if (skb_cow_head(skb, dev->needed_headroom ?: tunnel->hlen)) in __gre6_xmit() 978 if (skb_cow_head(skb, dev->needed_headroom ?: t->hlen)) in ip6erspan_tunnel_xmit() 1153 dev->needed_headroom = dst_len; in ip6gre_tnl_link_config_route() 1184 tunnel->dev->needed_headroom = LL_MAX_HEADER + t_hlen; in ip6gre_calc_hlen() 1866 tunnel->dev->needed_headroom = LL_MAX_HEADER + t_hlen; in ip6erspan_calc_hlen()
|
/kernel/linux/linux-5.10/net/mac80211/ |
D | rx.c | 696 int rt_hdrlen, needed_headroom; in ieee80211_make_monitor_skb() local 701 needed_headroom = rt_hdrlen - rtap_space; in ieee80211_make_monitor_skb() 715 if (skb_headroom(skb) < needed_headroom && in ieee80211_make_monitor_skb() 716 pskb_expand_head(skb, needed_headroom, 0, GFP_ATOMIC)) { in ieee80211_make_monitor_skb() 725 skb = skb_copy_expand(*origskb, needed_headroom, 0, GFP_ATOMIC); in ieee80211_make_monitor_skb() 3736 int needed_headroom; in ieee80211_rx_cooked_monitor() local 3753 needed_headroom = ieee80211_rx_radiotap_hdrlen(local, status, skb); in ieee80211_rx_cooked_monitor() 3755 if (skb_headroom(skb) < needed_headroom && in ieee80211_rx_cooked_monitor() 3756 pskb_expand_head(skb, needed_headroom, 0, GFP_ATOMIC)) in ieee80211_rx_cooked_monitor() 3760 ieee80211_add_rx_radiotap_header(local, skb, rate, needed_headroom, in ieee80211_rx_cooked_monitor()
|
/kernel/linux/linux-5.10/net/8021q/ |
D | vlan_dev.c | 590 dev->needed_headroom = real_dev->needed_headroom; in vlan_dev_init()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/ |
D | ldmvsw.c | 238 dev->needed_headroom = VNET_PACKET_SKIP + 8; in vsw_alloc_netdev()
|
D | sunvnet.c | 294 dev->needed_headroom = VNET_PACKET_SKIP + 8; in vnet_new()
|
/kernel/linux/linux-5.10/net/xfrm/ |
D | xfrm_interface.c | 607 dev->needed_headroom = phydev->needed_headroom; in xfrmi_dev_init()
|
/kernel/linux/linux-5.10/drivers/net/wireguard/ |
D | device.c | 272 dev->needed_headroom = DATA_PACKET_HEAD_ROOM; in wg_setup()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth.c | 1085 unsigned int needed_headroom; in __dpaa2_eth_tx() local 1094 needed_headroom = dpaa2_eth_needed_headroom(skb); in __dpaa2_eth_tx() 1113 } else if (skb_headroom(skb) < needed_headroom) { in __dpaa2_eth_tx() 2299 unsigned int needed_headroom; in dpaa2_eth_xdp_create_fd() local 2307 needed_headroom = dpaa2_eth_needed_headroom(NULL); in dpaa2_eth_xdp_create_fd() 2308 if (xdpf->headroom < needed_headroom) in dpaa2_eth_xdp_create_fd() 2315 buffer_start = xdpf->data - needed_headroom; in dpaa2_eth_xdp_create_fd()
|
/kernel/linux/linux-5.10/drivers/net/ |
D | vxlan.c | 3786 unsigned short needed_headroom = ETH_HLEN; in vxlan_config_apply() local 3812 needed_headroom = lowerdev->hard_header_len; in vxlan_config_apply() 3813 needed_headroom += lowerdev->needed_headroom; in vxlan_config_apply() 3830 needed_headroom += VXLAN6_HEADROOM; in vxlan_config_apply() 3832 needed_headroom += VXLAN_HEADROOM; in vxlan_config_apply() 3833 dev->needed_headroom = needed_headroom; in vxlan_config_apply()
|
/kernel/linux/linux-5.10/drivers/net/usb/ |
D | asix_devices.c | 269 dev->net->needed_headroom = 4; /* cf asix_tx_fixup() */ in ax88172_bind() 724 dev->net->needed_headroom = 4; /* cf asix_tx_fixup() */ in ax88772_bind()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath6kl/ |
D | main.c | 1299 dev->needed_headroom = ETH_HLEN; in init_netdev() 1300 dev->needed_headroom += roundup(sizeof(struct ath6kl_llc_snap_hdr) + in init_netdev()
|