Home
last modified time | relevance | path

Searched refs:max_headroom (Results 1 – 5 of 5) sorted by relevance

/net/netfilter/ipvs/
Dip_vs_xmit.c825 unsigned int max_headroom; /* The extra header space needed */ in ip_vs_tunnel_xmit() local
852 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct iphdr); in ip_vs_tunnel_xmit()
854 if (skb_headroom(skb) < max_headroom || skb_cloned(skb)) { in ip_vs_tunnel_xmit()
856 skb_realloc_headroom(skb, max_headroom); in ip_vs_tunnel_xmit()
919 unsigned int max_headroom; /* The extra header space needed */ in ip_vs_tunnel_xmit_v6() local
943 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct ipv6hdr); in ip_vs_tunnel_xmit_v6()
945 if (skb_headroom(skb) < max_headroom || skb_cloned(skb)) { in ip_vs_tunnel_xmit_v6()
947 skb_realloc_headroom(skb, max_headroom); in ip_vs_tunnel_xmit_v6()
/net/ipv6/
Dip6_gre.c625 unsigned int max_headroom; /* The extra header space needed */ in ip6gre_xmit2() local
675 max_headroom += 8; in ip6gre_xmit2()
698 max_headroom = LL_RESERVED_SPACE(tdev) + gre_hlen + dst->header_len; in ip6gre_xmit2()
700 if (skb_headroom(skb) < max_headroom || skb_shared(skb) || in ip6gre_xmit2()
702 new_skb = skb_realloc_headroom(skb, max_headroom); in ip6gre_xmit2()
703 if (max_headroom > dev->needed_headroom) in ip6gre_xmit2()
704 dev->needed_headroom = max_headroom; in ip6gre_xmit2()
Dip6_tunnel.c956 unsigned int max_headroom = sizeof(struct ipv6hdr); in ip6_tnl_xmit2() local
986 max_headroom += 8; in ip6_tnl_xmit2()
1002 max_headroom += LL_RESERVED_SPACE(tdev); in ip6_tnl_xmit2()
1004 if (skb_headroom(skb) < max_headroom || skb_shared(skb) || in ip6_tnl_xmit2()
1008 if (!(new_skb = skb_realloc_headroom(skb, max_headroom))) in ip6_tnl_xmit2()
Dsit.c694 unsigned int max_headroom; /* The extra header space needed */ in ipip6_tunnel_xmit() local
825 max_headroom = LL_RESERVED_SPACE(tdev)+sizeof(struct iphdr); in ipip6_tunnel_xmit()
827 if (skb_headroom(skb) < max_headroom || skb_shared(skb) || in ipip6_tunnel_xmit()
829 struct sk_buff *new_skb = skb_realloc_headroom(skb, max_headroom); in ipip6_tunnel_xmit()
/net/ipv4/
Dip_tunnel.c500 unsigned int max_headroom; /* The extra header space needed */ in ip_tunnel_xmit() local
649 max_headroom = LL_RESERVED_SPACE(tdev) + sizeof(struct iphdr) in ip_tunnel_xmit()
651 if (max_headroom > dev->needed_headroom) { in ip_tunnel_xmit()
652 dev->needed_headroom = max_headroom; in ip_tunnel_xmit()