Home
last modified time | relevance | path

Searched refs:needed_headroom (Results 1 – 25 of 86) sorted by relevance

1234

/linux/net/batman-adv/
H A Dhard-interface.c543 unsigned short needed_headroom; in batadv_hardif_recalc_extra_skbroom() local
557 hard_iface->net_dev->needed_headroom); in batadv_hardif_recalc_extra_skbroom()
564 needed_headroom = lower_headroom + (lower_header_len - ETH_HLEN); in batadv_hardif_recalc_extra_skbroom()
565 needed_headroom += batadv_max_header_len(); in batadv_hardif_recalc_extra_skbroom()
568 needed_headroom += sizeof(struct batadv_frag_packet); in batadv_hardif_recalc_extra_skbroom()
570 soft_iface->needed_headroom = needed_headroom; in batadv_hardif_recalc_extra_skbroom()
/linux/net/dsa/
H A Dtag_brcm.c208 .needed_headroom = BRCM_TAG_LEN,
290 .needed_headroom = BRCM_LEG_TAG_LEN,
317 .needed_headroom = BRCM_TAG_LEN,
H A Dtag_ocelot.c161 .needed_headroom = OCELOT_TOTAL_TAG_LEN,
173 .needed_headroom = OCELOT_TOTAL_TAG_LEN,
H A Dtag_dsa.c349 .needed_headroom = DSA_HLEN,
391 .needed_headroom = EDSA_HLEN,
H A Dtag_vsc73xx_8021q.c60 .needed_headroom = VLAN_HLEN,
H A Dtag_gswip.c107 .needed_headroom = GSWIP_RX_HEADER_LEN,
H A Dtag_mtk.c102 .needed_headroom = MTK_HDR_LEN,
H A Dtag_ar9331.c89 .needed_headroom = AR9331_HDR_LEN,
H A Dtag_lan9303.c119 .needed_headroom = LAN9303_TAG_LEN,
H A Dtag_rzn1_a5psw.c110 .needed_headroom = A5PSW_TAG_LEN,
H A Dtag_rtl4_a.c120 .needed_headroom = RTL4_A_HDR_LEN,
H A Dtag_qca.c118 .needed_headroom = QCA_HDR_LEN,
H A Dtag_ocelot_8021q.c132 .needed_headroom = VLAN_HLEN,
H A Dtag_rtl8_4.c235 .needed_headroom = RTL8_4_TAG_LEN,
H A Dtag.h29 return ops->needed_headroom + ops->needed_tailroom; in dsa_tag_protocol_overhead()
/linux/net/ieee802154/6lowpan/
H A Dtx.c108 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()
H A Dcore.c168 ldev->needed_headroom = LOWPAN_IPHC_MAX_HEADER_LEN + in lowpan_newlink()
169 wdev->needed_headroom; in lowpan_newlink()
/linux/net/l2tp/
H A Dl2tp_eth.c196 dev->needed_headroom += sizeof(struct udphdr); in l2tp_eth_adjust_mtu()
222 dev->needed_headroom += session->hdr_len; in l2tp_eth_adjust_mtu()
/linux/net/ipv4/
H A Dip_gre.c509 if (skb_cow_head(skb, dev->needed_headroom)) in gre_fb_xmit()
565 if (skb_cow_head(skb, dev->needed_headroom)) in erspan_fb_xmit()
678 if (skb_cow_head(skb, dev->needed_headroom)) in ipgre_xmit()
715 if (skb_cow_head(skb, dev->needed_headroom)) in erspan_xmit()
769 if (skb_cow_head(skb, dev->needed_headroom)) in gre_tap_xmit()
794 dev->needed_headroom += len; in ipgre_link_update()
998 dev->needed_headroom = tunnel->hlen + sizeof(tunnel->parms.iph); in __gre_tunnel_init()
1040 dev->needed_headroom = 0; in ipgre_tunnel_init()
1046 dev->needed_headroom = 0; in ipgre_tunnel_init()
/linux/drivers/net/ethernet/mscc/
H A Docelot_fdma.c643 int needed_headroom = max_t(int, OCELOT_TAG_LEN - skb_headroom(skb), 0); in ocelot_fdma_prepare_skb() local
648 if (unlikely(needed_headroom || needed_tailroom || in ocelot_fdma_prepare_skb()
650 err = pskb_expand_head(skb, needed_headroom, needed_tailroom, in ocelot_fdma_prepare_skb()
793 dev->needed_headroom = OCELOT_TAG_LEN; in ocelot_fdma_netdev_init()
/linux/net/bridge/
H A Dbr_if.c321 br->dev->needed_headroom = new_hr; in update_headroom()
352 if (netdev_get_fwd_headroom(dev) == br->dev->needed_headroom) in del_nbp()
657 br_hr = br->dev->needed_headroom; in br_add_if()
/linux/drivers/net/wan/
H A Dlapbether.c401 ndev->needed_headroom = -1 + 3 + 2 + dev->hard_header_len in lapbeth_new_device()
402 + dev->needed_headroom; in lapbeth_new_device()
/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_fdma.c702 int needed_headroom; in lan966x_fdma_xmit() local
721 needed_headroom = max_t(int, IFH_LEN_BYTES - skb_headroom(skb), 0); in lan966x_fdma_xmit()
723 if (needed_headroom || needed_tailroom || skb_header_cloned(skb)) { in lan966x_fdma_xmit()
724 err = pskb_expand_head(skb, needed_headroom, needed_tailroom, in lan966x_fdma_xmit()
/linux/drivers/net/wwan/
H A Dmhi_wwan_mbim.c587 ndev->needed_headroom = sizeof(struct mbim_tx_hdr); in mhi_mbim_setup()
594 ndev->max_mtu = MHI_MAX_BUF_SZ - ndev->needed_headroom; in mhi_mbim_setup()
/linux/include/net/
H A Dmacsec.h354 unsigned int needed_headroom; member

1234