Searched refs:needed_headroom (Results 1 – 15 of 15) sorted by relevance
/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()
|
/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 | 159 ldev->needed_headroom = LOWPAN_IPHC_MAX_HEADER_LEN + in lowpan_newlink() 160 wdev->needed_headroom; in lowpan_newlink()
|
/net/ipv4/ |
D | ip_gre.c | 490 if (skb_cow_head(skb, dev->needed_headroom)) in gre_fb_xmit() 540 if (skb_cow_head(skb, dev->needed_headroom)) in erspan_fb_xmit() 651 if (skb_cow_head(skb, dev->needed_headroom)) in ipgre_xmit() 687 if (skb_cow_head(skb, dev->needed_headroom)) in erspan_xmit() 739 if (skb_cow_head(skb, dev->needed_headroom)) in gre_tap_xmit() 764 dev->needed_headroom += len; in ipgre_link_update() 968 dev->needed_headroom = tunnel->hlen + sizeof(tunnel->parms.iph); in __gre_tunnel_init() 1013 dev->needed_headroom = 0; in ipgre_tunnel_init() 1019 dev->needed_headroom = 0; in ipgre_tunnel_init()
|
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() 560 if (headroom > READ_ONCE(dev->needed_headroom)) in ip_tunnel_adj_headroom() 561 WRITE_ONCE(dev->needed_headroom, headroom); in ip_tunnel_adj_headroom()
|
/net/l2tp/ |
D | l2tp_eth.c | 228 dev->needed_headroom += sizeof(struct udphdr); in l2tp_eth_adjust_mtu() 254 dev->needed_headroom += session->hdr_len; in l2tp_eth_adjust_mtu()
|
/net/bridge/ |
D | br_if.c | 312 br->dev->needed_headroom = new_hr; in update_headroom() 340 if (netdev_get_fwd_headroom(dev) == br->dev->needed_headroom) in del_nbp() 656 br_hr = br->dev->needed_headroom; in br_add_if()
|
/net/ipv6/ |
D | ip6_gre.c | 754 if (skb_cow_head(skb, dev->needed_headroom ?: tun_hlen + tunnel->encap_hlen)) in __gre6_xmit() 764 if (skb_cow_head(skb, dev->needed_headroom ?: tunnel->hlen)) in __gre6_xmit() 968 if (skb_cow_head(skb, dev->needed_headroom ?: t->hlen)) in ip6erspan_tunnel_xmit() 1147 dev->needed_headroom = dst_len; in ip6gre_tnl_link_config_route() 1178 tunnel->dev->needed_headroom = LL_MAX_HEADER + t_hlen; in ip6gre_calc_hlen() 1860 tunnel->dev->needed_headroom = LL_MAX_HEADER + t_hlen; in ip6erspan_calc_hlen()
|
D | sit.c | 1092 hlen = tdev->hard_header_len + tdev->needed_headroom; in ipip6_tunnel_bind_dev() 1094 dev->needed_headroom = t_hlen + hlen; in ipip6_tunnel_bind_dev()
|
D | ip6_tunnel.c | 1204 if (max_headroom > READ_ONCE(dev->needed_headroom)) in ip6_tnl_xmit() 1205 WRITE_ONCE(dev->needed_headroom, max_headroom); in ip6_tnl_xmit()
|
/net/mac80211/ |
D | rx.c | 709 int rt_hdrlen, needed_headroom; in ieee80211_make_monitor_skb() local 714 needed_headroom = rt_hdrlen - rtap_space; in ieee80211_make_monitor_skb() 728 if (skb_headroom(skb) < needed_headroom && in ieee80211_make_monitor_skb() 729 pskb_expand_head(skb, needed_headroom, 0, GFP_ATOMIC)) { in ieee80211_make_monitor_skb() 738 skb = skb_copy_expand(*origskb, needed_headroom, 0, GFP_ATOMIC); in ieee80211_make_monitor_skb() 3624 int needed_headroom; in ieee80211_rx_cooked_monitor() local 3641 needed_headroom = ieee80211_rx_radiotap_hdrlen(local, status, skb); in ieee80211_rx_cooked_monitor() 3643 if (skb_headroom(skb) < needed_headroom && in ieee80211_rx_cooked_monitor() 3644 pskb_expand_head(skb, needed_headroom, 0, GFP_ATOMIC)) in ieee80211_rx_cooked_monitor() 3648 ieee80211_add_rx_radiotap_header(local, skb, rate, needed_headroom, in ieee80211_rx_cooked_monitor()
|
D | iface.c | 1785 ndev->needed_headroom = local->tx_headroom + in ieee80211_if_add()
|
/net/8021q/ |
D | vlan_dev.c | 569 dev->needed_headroom = real_dev->needed_headroom; in vlan_dev_init()
|
/net/xfrm/ |
D | xfrm_interface_core.c | 623 dev->needed_headroom = phydev->needed_headroom; in xfrmi_dev_init()
|
/net/mac802154/ |
D | iface.c | 629 ndev->needed_headroom = local->hw.extra_tx_headroom + in ieee802154_if_add()
|